Commit 9d5a23ac authored by Alfredo Alvarez Fernandez's avatar Alfredo Alvarez Fernandez Committed by Ingo Molnar

tools/lib/lockdep: Add userspace version of READ_ONCE()

This was added to the kernel code in <1658d35e> ("list: Use
READ_ONCE() when testing for empty lists").

There's nothing special we need to do about it in userspace.
Signed-off-by: default avatarAlfredo Alvarez Fernandez <alfredoalvarezfernandez@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1455864533-7536-2-git-send-email-alfredoalvarezernandez@gmail.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent b2ed0998
......@@ -3,6 +3,7 @@
#define __used __attribute__((__unused__))
#define unlikely
#define READ_ONCE(x) (x)
#define WRITE_ONCE(x, val) x=(val)
#define RCU_INIT_POINTER(p, v) p=(v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment