Commit 3013449243adc3421b507696e5d247a3d292ee0c

Authored by Jeff Dike
Committed by Linus Torvalds
1 parent 2030c0fd3d

[PATCH] uml: UML/i386 cmpxchg fix

Using native cmpxchg offers a slight performance improvement in uml/i386.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff

arch/um/Kconfig.i386
... ... @@ -42,4 +42,8 @@
42 42 config ARCH_REUSE_HOST_VSYSCALL_AREA
43 43 bool
44 44 default y
  45 +
  46 +config X86_CMPXCHG
  47 + bool
  48 + default y
include/asm-um/system-i386.h
... ... @@ -3,7 +3,5 @@
3 3  
4 4 #include "asm/system-generic.h"
5 5  
6   -#define __HAVE_ARCH_CMPXCHG 1
7   -
8 6 #endif