Dominique Martinet
3e3ccf377c
compiler.h: add READ_ONCE/WRITE_ONCE macro
...
These macros are needed to make sure the compiler does not optimize away
atomic constructs such as "while (!READ_ONCE(foo))" loops that do not
modify foo within the loop
Also move the barrier() define where it belongs while we are here, it is
needed for READ_ONCE/WRITE_ONCE and including ihk/cpu.h here causes
include loops
Change-Id: Ia533a849ed674719ccbc0495be47d22a3c47b8f8
2018-10-11 08:54:13 +00:00
..
2018-10-11 08:54:13 +00:00
2018-08-22 06:17:56 +00:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-08-30 02:13:51 +00:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-08-01 15:11:05 +09:00
2018-07-26 14:16:31 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-07-26 14:16:31 +09:00
2018-07-26 14:16:31 +09:00
2017-10-18 09:20:51 +09:00
2017-09-11 15:29:53 +09:00
2017-09-05 15:06:27 +09:00
2018-08-30 02:18:37 +00:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-07-26 14:16:31 +09:00
2018-08-22 06:14:15 +00:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-07-26 14:16:31 +09:00
2018-08-30 02:13:51 +00:00
2017-09-05 15:06:27 +09:00
2018-09-04 19:53:03 +09:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-07-26 14:16:31 +09:00
2017-09-11 15:29:53 +09:00