Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110775
b: refs/heads/master
c: ded00a5
h: refs/heads/master
i:
  110773: 979830b
  110771: bab4db4
  110767: 763a56d
v: v3
  • Loading branch information
Paul E. McKenney authored and Ingo Molnar committed Aug 18, 2008
1 parent ab88314 commit 6e43a8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd95851785bcfe95fdf73689e8ecb5a1c5959231
refs/heads/master: ded00a56e99555c3f4000ef3eebfd5fe0d574565
4 changes: 3 additions & 1 deletion trunk/include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
* ACCESS_ONCE() in different C statements.
*
* This macro does absolutely -nothing- to prevent the CPU from reordering,
* merging, or refetching absolutely anything at any time.
* merging, or refetching absolutely anything at any time. Its main intended
* use is to mediate communication between process-level code and irq/NMI
* handlers, all running on the same CPU.
*/
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))

Expand Down
8 changes: 0 additions & 8 deletions trunk/kernel/rcupreempt.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@
#include <linux/cpumask.h>
#include <linux/rcupreempt_trace.h>

/*
* Macro that prevents the compiler from reordering accesses, but does
* absolutely -nothing- to prevent CPUs from reordering. This is used
* only to mediate communication between mainline code and hardware
* interrupt and NMI handlers.
*/
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))

/*
* PREEMPT_RCU data structures.
*/
Expand Down

0 comments on commit 6e43a8b

Please sign in to comment.