Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83440
b: refs/heads/master
c: d99c4f6
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney authored and Linus Torvalds committed Feb 6, 2008
1 parent 891af32 commit 0be0af9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: ba6f867f114760d4e43f0f93abe280ee0a0d696e
refs/heads/master: d99c4f6b13b3149bc83703ab1493beaeaaaf8a2d
11 changes: 7 additions & 4 deletions trunk/include/linux/rcupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ struct rcu_head {
* code.
*/

#define rcu_assign_pointer(p, v) ({ \
smp_wmb(); \
(p) = (v); \
})
#define rcu_assign_pointer(p, v) \
({ \
if (!__builtin_constant_p(v) || \
((v) != NULL)) \
smp_wmb(); \
(p) = (v); \
})

/**
* synchronize_sched - block until all CPUs have exited any non-preemptive
Expand Down

0 comments on commit 0be0af9

Please sign in to comment.