diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2009-01-07 11:05:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-07 15:48:25 -0500 |
commit | 96b89dc6598a50e3aac8e2c6d826ae3795b7d030 (patch) | |
tree | b33e20b98a9bac49908f169cd8978f74534dbda9 | |
parent | f472cdba849cc3d838f3788469316e8572463a8c (diff) |
x86: smp.h move safe_smp_processor_id declartion to cpu.h
Impact: cleanup
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 | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/smp.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/crash.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/reboot.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-voyager/setup.c | 1 |
5 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index f958e7e49c05..4c16888ffa3f 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h | |||
@@ -15,6 +15,7 @@ extern void prefill_possible_map(void); | |||
15 | 15 | ||
16 | static inline void prefill_possible_map(void) {} | 16 | static inline void prefill_possible_map(void) {} |
17 | 17 | ||
18 | #define safe_smp_processor_id() 0 | ||
18 | #define stack_smp_processor_id() 0 | 19 | #define stack_smp_processor_id() 0 |
19 | 20 | ||
20 | #endif /* CONFIG_SMP */ | 21 | #endif /* CONFIG_SMP */ |
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index ed4af9a89cfd..c92b93594ab3 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h | |||
@@ -172,7 +172,6 @@ extern int safe_smp_processor_id(void); | |||
172 | 172 | ||
173 | #else /* !CONFIG_X86_32_SMP && !CONFIG_X86_64_SMP */ | 173 | #else /* !CONFIG_X86_32_SMP && !CONFIG_X86_64_SMP */ |
174 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid | 174 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid |
175 | #define safe_smp_processor_id() 0 | ||
176 | #endif | 175 | #endif |
177 | 176 | ||
178 | #ifdef CONFIG_X86_LOCAL_APIC | 177 | #ifdef CONFIG_X86_LOCAL_APIC |
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index c689d19e35ab..11b93cabdf78 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <asm/apic.h> | 24 | #include <asm/apic.h> |
25 | #include <asm/hpet.h> | 25 | #include <asm/hpet.h> |
26 | #include <linux/kdebug.h> | 26 | #include <linux/kdebug.h> |
27 | #include <asm/smp.h> | 27 | #include <asm/cpu.h> |
28 | #include <asm/reboot.h> | 28 | #include <asm/reboot.h> |
29 | #include <asm/virtext.h> | 29 | #include <asm/virtext.h> |
30 | 30 | ||
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 2b46eb41643b..f8536fee5c12 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <asm/reboot.h> | 14 | #include <asm/reboot.h> |
15 | #include <asm/pci_x86.h> | 15 | #include <asm/pci_x86.h> |
16 | #include <asm/virtext.h> | 16 | #include <asm/virtext.h> |
17 | #include <asm/cpu.h> | ||
17 | 18 | ||
18 | #ifdef CONFIG_X86_32 | 19 | #ifdef CONFIG_X86_32 |
19 | # include <linux/dmi.h> | 20 | # include <linux/dmi.h> |
diff --git a/arch/x86/mach-voyager/setup.c b/arch/x86/mach-voyager/setup.c index a580b9562e76..0ade62555ff3 100644 --- a/arch/x86/mach-voyager/setup.c +++ b/arch/x86/mach-voyager/setup.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <asm/e820.h> | 9 | #include <asm/e820.h> |
10 | #include <asm/io.h> | 10 | #include <asm/io.h> |
11 | #include <asm/setup.h> | 11 | #include <asm/setup.h> |
12 | #include <asm/cpu.h> | ||
12 | 13 | ||
13 | void __init pre_intr_init_hook(void) | 14 | void __init pre_intr_init_hook(void) |
14 | { | 15 | { |