1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/device.h>
7 #include <linux/topology.h>
8 #include <linux/nodemask.h>
9 #include <linux/percpu.h>
13 extern void prefill_possible_map(void);
15 #else /* CONFIG_SMP */
17 static inline void prefill_possible_map(void) {}
19 #define cpu_physical_id(cpu) boot_cpu_physical_apicid
20 #define cpu_acpi_id(cpu) 0
21 #define safe_smp_processor_id() 0
23 #endif /* CONFIG_SMP */
29 #ifdef CONFIG_HOTPLUG_CPU
30 extern int arch_register_cpu(int num);
31 extern void arch_unregister_cpu(int);
32 extern void start_cpu0(void);
33 #ifdef CONFIG_DEBUG_HOTPLUG_CPU0
34 extern int _debug_hotplug_cpu(int cpu, int action);
38 int mwait_usable(const struct cpuinfo_x86 *);
40 unsigned int x86_family(unsigned int sig);
41 unsigned int x86_model(unsigned int sig);
42 unsigned int x86_stepping(unsigned int sig);
43 #ifdef CONFIG_CPU_SUP_INTEL
44 extern void __init sld_setup(struct cpuinfo_x86 *c);
45 extern void switch_to_sld(unsigned long tifn);
46 extern bool handle_user_split_lock(struct pt_regs *regs, long error_code);
47 extern bool handle_guest_split_lock(unsigned long ip);
48 extern void handle_bus_lock(struct pt_regs *regs);
49 u8 get_this_hybrid_cpu_type(void);
51 static inline void __init sld_setup(struct cpuinfo_x86 *c) {}
52 static inline void switch_to_sld(unsigned long tifn) {}
53 static inline bool handle_user_split_lock(struct pt_regs *regs, long error_code)
58 static inline bool handle_guest_split_lock(unsigned long ip)
63 static inline void handle_bus_lock(struct pt_regs *regs) {}
65 static inline u8 get_this_hybrid_cpu_type(void)
70 #ifdef CONFIG_IA32_FEAT_CTL
71 void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
73 static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {}
75 #endif /* _ASM_X86_CPU_H */