Messages in this thread Patch in this message | | | From | Luca Barbieri <> | Subject | [PATCH 2/4] x86-32: allow UP/SMP lock replacement in cmpxchg64 (v2) | Date | Wed, 24 Feb 2010 10:54:23 +0100 |
| |
Changes in v2: - Naming change
Use the functionality just introduced in the previous patch.
Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> --- arch/x86/include/asm/cmpxchg_32.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/cmpxchg_32.h b/arch/x86/include/asm/cmpxchg_32.h index ffb9bb6..8859e12 100644 --- a/arch/x86/include/asm/cmpxchg_32.h +++ b/arch/x86/include/asm/cmpxchg_32.h @@ -271,7 +271,8 @@ extern unsigned long long cmpxchg_486_u64(volatile void *, u64, u64); __typeof__(*(ptr)) __ret; \ __typeof__(*(ptr)) __old = (o); \ __typeof__(*(ptr)) __new = (n); \ - alternative_io("call cmpxchg8b_emu", \ + alternative_io(LOCK_PREFIX_HERE \ + "call cmpxchg8b_emu", \ "lock; cmpxchg8b (%%esi)" , \ X86_FEATURE_CX8, \ "=A" (__ret), \ -- 1.6.6.1.476.g01ddb
| |