From: Thomas Petazzoni Date: Mon, 18 Aug 2008 10:33:21 +0000 (+0200) Subject: x86: move cmpxchg fallbacks to a generic place X-Git-Tag: v2.6.28-rc1~699^2^8~5^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=774400a3ba23b63f4de39e67ce6c4e48935809dc;p=pandora-kernel.git x86: move cmpxchg fallbacks to a generic place arch/x86/kernel/cpu/intel.c defines a few fallback functions (cmpxchg_*()) that are used when the CPU doesn't support cmpxchg and/or cmpxchg64 natively. However, while defined in an Intel-specific file, these functions are also used for CPUs from other vendors when they don't support cmpxchg and/or cmpxchg64. This breaks the compilation when support for Intel CPUs is disabled. This patch moves these functions to a new arch/x86/kernel/cpu/cmpxchg.c file, unconditionally compiled when X86_32 is enabled. Signed-off-by: Thomas Petazzoni Cc: michael@free-electrons.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed