]> git.baikalelectronics.ru Git - kernel.git/commit
x86, asm: Clean up and simplify <asm/cmpxchg.h>
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Jul 2010 22:18:35 +0000 (15:18 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Jul 2010 22:24:09 +0000 (15:24 -0700)
commit341251b6d6891ae486f94b4b0fc37a4b77dc9b8e
treee4f9e4d78385dc45ab2456edf02ab515442f1cc1
parent691aeb97857d53e2a9d1c24ed77387513931d0f2
x86, asm: Clean up and simplify <asm/cmpxchg.h>

Remove the __xg() hack to create a memory barrier near xchg and
cmpxchg; it has been there since 1.3.11 but should not be necessary
with "asm volatile" and a "memory" clobber, neither of which were
there in the original implementation.

However, we *should* make this a volatile reference.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
LKML-Reference: <AANLkTikAmaDPji-TVDarmG1yD=fwbffcsmEU=YEuP+8r@mail.gmail.com>
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h