x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / x86 / include / asm / cpu.h
blob9b7fa6313f1a6d28608943b9a40f0838f8b80389
1 #ifndef _ASM_X86_CPU_H
2 #define _ASM_X86_CPU_H
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>
10 #ifdef CONFIG_SMP
12 extern void prefill_possible_map(void);
14 #else /* CONFIG_SMP */
16 static inline void prefill_possible_map(void) {}
18 #define cpu_physical_id(cpu) boot_cpu_physical_apicid
19 #define cpu_acpi_id(cpu) 0
20 #define safe_smp_processor_id() 0
22 #endif /* CONFIG_SMP */
24 struct x86_cpu {
25 struct cpu cpu;
28 #ifdef CONFIG_HOTPLUG_CPU
29 extern int arch_register_cpu(int num);
30 extern void arch_unregister_cpu(int);
31 extern void start_cpu0(void);
32 #ifdef CONFIG_DEBUG_HOTPLUG_CPU0
33 extern int _debug_hotplug_cpu(int cpu, int action);
34 #endif
35 #endif
37 int mwait_usable(const struct cpuinfo_x86 *);
39 unsigned int x86_family(unsigned int sig);
40 unsigned int x86_model(unsigned int sig);
41 unsigned int x86_stepping(unsigned int sig);
42 #endif /* _ASM_X86_CPU_H */