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
..
2017-10-18 09:20:51 +09:00
2017-10-18 09:20:52 +09:00
2017-10-18 09:23:08 +09:00
2017-09-05 15:06:27 +09:00
2017-10-24 10:29:11 +09:00
2018-10-11 08:54:13 +00:00
2017-10-18 09:20:50 +09:00
2018-08-22 06:04:08 +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-10-18 09:20:51 +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
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-10-18 09:20:51 +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
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
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
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-22 05:54:31 +00:00
2017-09-05 15:06:27 +09:00
2017-09-05 15:06:27 +09:00
2018-08-22 06:03:12 +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