mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[PATCH] use smp_mb/wmb/rmb where possible
Replace a number of memory barriers with smp_ variants. This means we won't take the unnecessary hit on UP machines. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0d8d4d42f2
commit
d59dd4620f
11 changed files with 31 additions and 31 deletions
|
@ -1007,7 +1007,7 @@ asmlinkage long sys_getppid(void)
|
|||
* Make sure we read the pid before re-reading the
|
||||
* parent pointer:
|
||||
*/
|
||||
rmb();
|
||||
smp_rmb();
|
||||
parent = me->group_leader->real_parent;
|
||||
if (old != parent)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue