From: Nick Piggin Date: Fri, 19 Oct 2007 05:13:02 +0000 (+0200) Subject: x86: lock bitops X-Git-Tag: v2.6.24-rc1~18^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418ccbe37f70f5021c4cd1cdcb0ce7f98d05f2dd;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed