x86: lock bitops
authorNick Piggin <npiggin@suse.de>
Fri, 19 Oct 2007 05:13:02 +0000 (07:13 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 23 Oct 2007 20:37:22 +0000 (22:37 +0200)
commit418ccbe37f70f5021c4cd1cdcb0ce7f98d05f2dd
treed5b968d92b0051ae18b32940d4d7d4da15bcf031
parentea5806559f92a3e7439bc7a4f2c0d04692e68931
x86: lock bitops

I missed an obvious one!

x86 CPUs are defined not to reorder stores past earlier loads, so there is
no hardware memory barrier required to implement a release-consistent store
(all stores are, by definition).

So ditch the generic lock bitops, and implement optimised versions for x86,
which removes the mfence from __clear_bit_unlock (which is already a useful
primitive for SLUB).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/bitops_32.h
include/asm-x86/bitops_64.h