]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86, asm: Move cmpxchg emulation code to arch/x86/lib
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Jul 2010 23:53:49 +0000 (16:53 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Jul 2010 23:53:49 +0000 (16:53 -0700)
Move cmpxchg emulation code from arch/x86/kernel/cpu (which is
otherwise CPU identification) to arch/x86/lib, where other emulation
code lives already.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
LKML-Reference: <AANLkTikAmaDPji-TVDarmG1yD=fwbffcsmEU=YEuP+8r@mail.gmail.com>

arch/x86/kernel/cpu/Makefile
arch/x86/lib/Makefile
arch/x86/lib/cmpxchg.c [moved from arch/x86/kernel/cpu/cmpxchg.c with 100% similarity]

index 3a785da34b6f981dd678f217c5f75f728a30d8ae..c47c43914ba72949674d57e7c5e93294e9d70ed7 100644 (file)
@@ -16,7 +16,7 @@ obj-y                 := intel_cacheinfo.o addon_cpuid_features.o
 obj-y                  += proc.o capflags.o powerflags.o common.o
 obj-y                  += vmware.o hypervisor.o sched.o mshyperv.o
 
-obj-$(CONFIG_X86_32)   += bugs.o cmpxchg.o
+obj-$(CONFIG_X86_32)   += bugs.o
 obj-$(CONFIG_X86_64)   += bugs_64.o
 
 obj-$(CONFIG_CPU_SUP_INTEL)            += intel.o
index f871e04b6965b828045b08d183dadd0c2aaa487f..e10cf070ede0bbb6b169dbd76289054c32becc18 100644 (file)
@@ -30,6 +30,7 @@ ifeq ($(CONFIG_X86_32),y)
         lib-y += checksum_32.o
         lib-y += strstr_32.o
         lib-y += semaphore_32.o string_32.o
+        lib-y += cmpxchg.o
 ifneq ($(CONFIG_X86_CMPXCHG64),y)
         lib-y += cmpxchg8b_emu.o atomic64_386_32.o
 endif