[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:

committed by
Linus Torvalds

parent
0d8d4d42f2
commit
d59dd4620f
@@ -522,7 +522,7 @@ static int __init create_hash_tables(void)
|
||||
return 0;
|
||||
out_cleanup:
|
||||
prof_on = 0;
|
||||
mb();
|
||||
smp_mb();
|
||||
on_each_cpu(profile_nop, NULL, 0, 1);
|
||||
for_each_online_cpu(cpu) {
|
||||
struct page *page;
|
||||
|
Reference in New Issue
Block a user