hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/cpu.h
....@@ -40,4 +40,27 @@
4040 unsigned int x86_family(unsigned int sig);
4141 unsigned int x86_model(unsigned int sig);
4242 unsigned int x86_stepping(unsigned int sig);
43
+#ifdef CONFIG_CPU_SUP_INTEL
44
+extern void __init cpu_set_core_cap_bits(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
+#else
49
+static inline void __init cpu_set_core_cap_bits(struct cpuinfo_x86 *c) {}
50
+static inline void switch_to_sld(unsigned long tifn) {}
51
+static inline bool handle_user_split_lock(struct pt_regs *regs, long error_code)
52
+{
53
+ return false;
54
+}
55
+
56
+static inline bool handle_guest_split_lock(unsigned long ip)
57
+{
58
+ return false;
59
+}
60
+#endif
61
+#ifdef CONFIG_IA32_FEAT_CTL
62
+void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
63
+#else
64
+static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {}
65
+#endif
4366 #endif /* _ASM_X86_CPU_H */