]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: make movsl_mask definition non-CPU specific
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Aug 2008 10:33:20 +0000 (12:33 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Aug 2008 14:05:45 +0000 (16:05 +0200)
movsl_mask is currently defined in arch/x86/kernel/cpu/intel.c, which
contains code specific to Intel CPUs. However, movsl_mask is used in
the non-CPU specific code in arch/x86/lib/usercopy_32.c, which breaks
the compilation when support for Intel CPUs is compiled out.

This patch solves this problem by moving movsl_mask's definition close
to its users in arch/x86/lib/usercopy_32.c.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: michael@free-electrons.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/intel.c
arch/x86/lib/usercopy_32.c

index b75f2569b8f8ba1940d55ce3616f25a91c7c6d75..5c8959b8a42eb86edfa6aaa7f5e984e19b24266d 100644 (file)
 #include <mach_apic.h>
 #endif
 
-#ifdef CONFIG_X86_INTEL_USERCOPY
-/*
- * Alignment at which movsl is preferred for bulk memory copies.
- */
-struct movsl_mask movsl_mask __read_mostly;
-#endif
-
 static void __cpuinit early_init_intel(struct cpuinfo_x86 *c)
 {
        /* Netburst reports 64 bytes clflush size, but does IO in 128 bytes */
index 24e60944971a60522d615bf9dc912851beb32b86..9e68075544f6dbb5e9a6fbc002e3a2df3091dc6c 100644 (file)
 #include <asm/uaccess.h>
 #include <asm/mmx.h>
 
+#ifdef CONFIG_X86_INTEL_USERCOPY
+/*
+ * Alignment at which movsl is preferred for bulk memory copies.
+ */
+struct movsl_mask movsl_mask __read_mostly;
+#endif
+
 static inline int __movsl_is_ok(unsigned long a1, unsigned long a2, unsigned long n)
 {
 #ifdef CONFIG_X86_INTEL_USERCOPY