X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Frcupdate.h;h=b12bdd9d8f6d144559769acbbe13c9f84ae9a33e;hb=9e1bf581d67d87a1d7fc0ea500729e3a03643a26;hp=91057d6fafd06f84218bec1068f9771266d5549c;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 91057d6fa..b12bdd9d8 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -238,24 +238,6 @@ static inline int rcu_pending(int cpu) (_________p1); \ }) -/** - * rcu_assign_pointer - assign (publicize) a pointer to a newly - * initialized structure that will be dereferenced by RCU read-side - * critical sections. Returns the value assigned. - * - * Inserts memory barriers on architectures that require them - * (pretty much all of them other than x86), and also prevents - * the compiler from reordering the code that initializes the - * structure after the pointer assignment. More importantly, this - * call documents which pointers will be dereferenced by RCU read-side - * code. - */ - -#define rcu_assign_pointer(p, v) ({ \ - smp_wmb(); \ - (p) = (v); \ - }) - extern void rcu_init(void); extern void rcu_check_callbacks(int cpu, int user); extern void rcu_restart_cpu(int cpu);