Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / cpu.h
1 #ifndef _ASM_X86_CPU_H
2 #define _ASM_X86_CPU_H
3
4 #include <linux/device.h>
5 #include <linux/cpu.h>
6 #include <linux/topology.h>
7 #include <linux/nodemask.h>
8 #include <linux/percpu.h>
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
21 #endif /* CONFIG_SMP */
22
23 struct x86_cpu {
24         struct cpu cpu;
25 };
26
27 #ifdef CONFIG_HOTPLUG_CPU
28 extern int arch_register_cpu(int num);
29 extern void arch_unregister_cpu(int);
30 extern void start_cpu0(void);
31 #ifdef CONFIG_DEBUG_HOTPLUG_CPU0
32 extern int _debug_hotplug_cpu(int cpu, int action);
33 #endif
34 #endif
35
36 int mwait_usable(const struct cpuinfo_x86 *);
37
38 unsigned int x86_family(unsigned int sig);
39 unsigned int x86_model(unsigned int sig);
40 unsigned int x86_stepping(unsigned int sig);
41 #endif /* _ASM_X86_CPU_H */