.. | .. |
---|
40 | 40 | unsigned int x86_family(unsigned int sig); |
---|
41 | 41 | unsigned int x86_model(unsigned int sig); |
---|
42 | 42 | 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 |
---|
43 | 66 | #endif /* _ASM_X86_CPU_H */ |
---|