diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2009-01-07 07:41:35 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-07 07:51:21 -0500 |
commit | 6e5385d44b2df05e50a8d07ba0e14d3e32685237 (patch) | |
tree | 12bff175cedd16bc0420cc8d2132d2093358cfb8 | |
parent | dacf7333571d770366bff74d10b56aa545434605 (diff) |
x86: smp.h move prefill_possible_map declartion to cpu.h
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>
-rw-r--r-- | arch/x86/include/asm/cpu.h | 10 | ||||
-rw-r--r-- | arch/x86/include/asm/smp.h | 6 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 1 |
4 files changed, 11 insertions, 8 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index bae482df6039..29aa6d0752b9 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h | |||
@@ -7,6 +7,16 @@ | |||
7 | #include <linux/nodemask.h> | 7 | #include <linux/nodemask.h> |
8 | #include <linux/percpu.h> | 8 | #include <linux/percpu.h> |
9 | 9 | ||
10 | #ifdef CONFIG_SMP | ||
11 | |||
12 | extern void prefill_possible_map(void); | ||
13 | |||
14 | #else /* CONFIG_SMP */ | ||
15 | |||
16 | static inline void prefill_possible_map(void) {} | ||
17 | |||
18 | #endif /* CONFIG_SMP */ | ||
19 | |||
10 | struct x86_cpu { | 20 | struct x86_cpu { |
11 | struct cpu cpu; | 21 | struct cpu cpu; |
12 | }; | 22 | }; |
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index 64c9e848f137..62bd3f68269a 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h | |||
@@ -138,8 +138,6 @@ void play_dead_common(void); | |||
138 | void native_send_call_func_ipi(const struct cpumask *mask); | 138 | void native_send_call_func_ipi(const struct cpumask *mask); |
139 | void native_send_call_func_single_ipi(int cpu); | 139 | void native_send_call_func_single_ipi(int cpu); |
140 | 140 | ||
141 | extern void prefill_possible_map(void); | ||
142 | |||
143 | void smp_store_cpu_info(int id); | 141 | void smp_store_cpu_info(int id); |
144 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) | 142 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) |
145 | 143 | ||
@@ -148,10 +146,6 @@ static inline int num_booting_cpus(void) | |||
148 | { | 146 | { |
149 | return cpus_weight(cpu_callout_map); | 147 | return cpus_weight(cpu_callout_map); |
150 | } | 148 | } |
151 | #else | ||
152 | static inline void prefill_possible_map(void) | ||
153 | { | ||
154 | } | ||
155 | #endif /* CONFIG_SMP */ | 149 | #endif /* CONFIG_SMP */ |
156 | 150 | ||
157 | extern unsigned disabled_cpus __cpuinitdata; | 151 | extern unsigned disabled_cpus __cpuinitdata; |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index ae0d8042cf69..f41c4486c270 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -89,7 +89,7 @@ | |||
89 | 89 | ||
90 | #include <asm/system.h> | 90 | #include <asm/system.h> |
91 | #include <asm/vsyscall.h> | 91 | #include <asm/vsyscall.h> |
92 | #include <asm/smp.h> | 92 | #include <asm/cpu.h> |
93 | #include <asm/desc.h> | 93 | #include <asm/desc.h> |
94 | #include <asm/dma.h> | 94 | #include <asm/dma.h> |
95 | #include <asm/iommu.h> | 95 | #include <asm/iommu.h> |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 07576bee03ef..f8c885bed18c 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -53,7 +53,6 @@ | |||
53 | #include <asm/nmi.h> | 53 | #include <asm/nmi.h> |
54 | #include <asm/irq.h> | 54 | #include <asm/irq.h> |
55 | #include <asm/idle.h> | 55 | #include <asm/idle.h> |
56 | #include <asm/smp.h> | ||
57 | #include <asm/trampoline.h> | 56 | #include <asm/trampoline.h> |
58 | #include <asm/cpu.h> | 57 | #include <asm/cpu.h> |
59 | #include <asm/numa.h> | 58 | #include <asm/numa.h> |