mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] futex: remove unneeded barrier
When disassembling a kernel I found around over 90 sync Instructions from mb, rmb and wmb calls in the kernel and only few of those make any sense to me. So here's the first one - I think the wmb() in kernel/futex.c is not needed on uniprocessors so should become an smb_wmb(). Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e384bd1692
commit
ccdea2f88b
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ static void wake_futex(struct futex_q *q)
|
||||||
* at the end of wake_up_all() does not prevent this store from
|
* at the end of wake_up_all() does not prevent this store from
|
||||||
* moving.
|
* moving.
|
||||||
*/
|
*/
|
||||||
wmb();
|
smp_wmb();
|
||||||
q->lock_ptr = NULL;
|
q->lock_ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue