Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_CPU_H |
2 | #define _ASM_X86_CPU_H | |
1da177e4 LT |
3 | |
4 | #include <linux/device.h> | |
5 | #include <linux/cpu.h> | |
6 | #include <linux/topology.h> | |
7 | #include <linux/nodemask.h> | |
f3705136 | 8 | #include <linux/percpu.h> |
1da177e4 | 9 | |
6e5385d4 JSR |
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 | ||
f472cdba JSR |
18 | #define stack_smp_processor_id() 0 |
19 | ||
6e5385d4 JSR |
20 | #endif /* CONFIG_SMP */ |
21 | ||
30964d54 | 22 | struct x86_cpu { |
1da177e4 LT |
23 | struct cpu cpu; |
24 | }; | |
d9874026 | 25 | |
1da177e4 | 26 | #ifdef CONFIG_HOTPLUG_CPU |
d9874026 | 27 | extern int arch_register_cpu(int num); |
1da177e4 LT |
28 | extern void arch_unregister_cpu(int); |
29 | #endif | |
30 | ||
f3705136 | 31 | DECLARE_PER_CPU(int, cpu_state); |
1965aae3 | 32 | #endif /* _ASM_X86_CPU_H */ |