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
2013-11-14 17:40:59 +09:00
2013-11-14 17:30:43 +09:00
2012-05-08 18:32:43 +09:00
2017-09-05 15:06:27 +09:00
2018-09-04 19:52:10 +09:00
2018-07-26 14:16:31 +09:00
2017-10-18 09:20:52 +09:00
2017-09-07 22:20:22 +09:00
2018-09-04 19:52:10 +09:00
2016-03-23 19:14:27 +09:00
2014-07-22 12:24:07 +09:00
2018-07-26 14:16:31 +09:00
2013-11-14 16:20:08 +09:00
2018-07-03 09:18:25 +00:00
2017-09-20 15:25:19 +09:00
2018-10-11 08:54:13 +00:00
2015-03-19 16:36:57 +09:00
2017-08-17 12:49:34 +09:00
2018-05-14 17:46:52 +09:00
2013-05-10 14:23:14 +09:00
2015-02-19 11:46:03 -08:00
2018-10-04 01:01:19 +00:00
2017-07-23 19:00:00 +09:00
2017-07-08 18:12:01 +09:00
2017-09-11 15:49:04 +09:00
2018-07-26 03:50:44 +00:00
2017-09-20 15:11:57 +09:00
2018-09-12 18:03:25 +09:00
2017-08-29 15:04:58 +09:00
2018-10-04 14:31:02 +09:00
2016-02-29 19:23:01 +09:00
2016-02-29 19:23:01 +09:00
2018-09-04 19:52:10 +09:00
2015-10-13 23:04:08 +09:00
2012-04-23 14:25:21 +09:00
2017-01-30 07:24:09 +09:00
2018-07-26 14:16:31 +09:00
2017-09-20 15:11:57 +09:00