]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: smp.h move prefill_possible_map declartion to cpu.h
authorJaswinder Singh Rajput <jaswinder@infradead.org>
Wed, 7 Jan 2009 12:41:35 +0000 (18:11 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 7 Jan 2009 12:51:21 +0000 (13:51 +0100)
Impact: cleanup, moving NON-SMP stuff from smp.h

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/cpu.h
arch/x86/include/asm/smp.h
arch/x86/kernel/setup.c
arch/x86/kernel/smpboot.c

index bae482df6039a5122617bbc781db52fbf8ae56e2..29aa6d0752b9130219ae4a339d5423a9bef12baa 100644 (file)
@@ -7,6 +7,16 @@
 #include <linux/nodemask.h>
 #include <linux/percpu.h>
 
+#ifdef CONFIG_SMP
+
+extern void prefill_possible_map(void);
+
+#else /* CONFIG_SMP */
+
+static inline void prefill_possible_map(void) {}
+
+#endif /* CONFIG_SMP */
+
 struct x86_cpu {
        struct cpu cpu;
 };
index 64c9e848f1371510e5850225e8707b6e2e03f572..62bd3f68269ab6f78818d69d4ca09338ae4b7c1d 100644 (file)
@@ -138,8 +138,6 @@ void play_dead_common(void);
 void native_send_call_func_ipi(const struct cpumask *mask);
 void native_send_call_func_single_ipi(int cpu);
 
-extern void prefill_possible_map(void);
-
 void smp_store_cpu_info(int id);
 #define cpu_physical_id(cpu)   per_cpu(x86_cpu_to_apicid, cpu)
 
@@ -148,10 +146,6 @@ static inline int num_booting_cpus(void)
 {
        return cpus_weight(cpu_callout_map);
 }
-#else
-static inline void prefill_possible_map(void)
-{
-}
 #endif /* CONFIG_SMP */
 
 extern unsigned disabled_cpus __cpuinitdata;
index ae0d8042cf69527542b4e554d4567eea154eff45..f41c4486c27064f670b98d67ee1d5362b0d5a049 100644 (file)
@@ -89,7 +89,7 @@
 
 #include <asm/system.h>
 #include <asm/vsyscall.h>
-#include <asm/smp.h>
+#include <asm/cpu.h>
 #include <asm/desc.h>
 #include <asm/dma.h>
 #include <asm/iommu.h>
index 07576bee03ef420cf6492682f216ded903f4ea5f..f8c885bed18c9cc0a1772ad285389f6d5b3f124f 100644 (file)
@@ -53,7 +53,6 @@
 #include <asm/nmi.h>
 #include <asm/irq.h>
 #include <asm/idle.h>
-#include <asm/smp.h>
 #include <asm/trampoline.h>
 #include <asm/cpu.h>
 #include <asm/numa.h>