diff options
Diffstat (limited to 'arch/x86/include/asm/cpu.h')
| -rw-r--r-- | arch/x86/include/asm/cpu.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index bae482df6039..b185091bf19c 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h | |||
| @@ -7,6 +7,20 @@ | |||
| 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 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid | ||
| 19 | #define safe_smp_processor_id() 0 | ||
| 20 | #define stack_smp_processor_id() 0 | ||
| 21 | |||
| 22 | #endif /* CONFIG_SMP */ | ||
| 23 | |||
| 10 | struct x86_cpu { | 24 | struct x86_cpu { |
| 11 | struct cpu cpu; | 25 | struct cpu cpu; |
| 12 | }; | 26 | }; |
| @@ -17,4 +31,7 @@ extern void arch_unregister_cpu(int); | |||
| 17 | #endif | 31 | #endif |
| 18 | 32 | ||
| 19 | DECLARE_PER_CPU(int, cpu_state); | 33 | DECLARE_PER_CPU(int, cpu_state); |
| 34 | |||
| 35 | extern unsigned int boot_cpu_id; | ||
| 36 | |||
| 20 | #endif /* _ASM_X86_CPU_H */ | 37 | #endif /* _ASM_X86_CPU_H */ |
