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 | ||
af8968ab | 18 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid |
96b89dc6 | 19 | #define safe_smp_processor_id() 0 |
f472cdba JSR |
20 | #define stack_smp_processor_id() 0 |
21 | ||
6e5385d4 JSR |
22 | #endif /* CONFIG_SMP */ |
23 | ||
30964d54 | 24 | struct x86_cpu { |
1da177e4 LT |
25 | struct cpu cpu; |
26 | }; | |
d9874026 | 27 | |
1da177e4 | 28 | #ifdef CONFIG_HOTPLUG_CPU |
d9874026 | 29 | extern int arch_register_cpu(int num); |
1da177e4 | 30 | extern void arch_unregister_cpu(int); |
148f9bb8 | 31 | extern void start_cpu0(void); |
a71c8bc5 FY |
32 | #ifdef CONFIG_DEBUG_HOTPLUG_CPU0 |
33 | extern int _debug_hotplug_cpu(int cpu, int action); | |
34 | #endif | |
1da177e4 LT |
35 | #endif |
36 | ||
f3705136 | 37 | DECLARE_PER_CPU(int, cpu_state); |
6d652ea1 | 38 | |
1c9d16e3 | 39 | int mwait_usable(const struct cpuinfo_x86 *); |
6d652ea1 | 40 | |
1965aae3 | 41 | #endif /* _ASM_X86_CPU_H */ |