Commit | Line | Data |
---|---|---|
1da177e4 | 1 | #include <linux/init.h> |
105fddb8 | 2 | #include <asm/mce.h> |
1da177e4 | 3 | |
4efc0670 | 4 | #ifdef CONFIG_X86_OLD_MCE |
1da177e4 LT |
5 | void amd_mcheck_init(struct cpuinfo_x86 *c); |
6 | void intel_p4_mcheck_init(struct cpuinfo_x86 *c); | |
1da177e4 | 7 | void intel_p6_mcheck_init(struct cpuinfo_x86 *c); |
4efc0670 | 8 | #endif |
1da177e4 | 9 | |
4efc0670 AK |
10 | #ifdef CONFIG_X86_ANCIENT_MCE |
11 | void intel_p5_mcheck_init(struct cpuinfo_x86 *c); | |
12 | void winchip_mcheck_init(struct cpuinfo_x86 *c); | |
13 | extern int mce_p5_enable; | |
14 | static inline int mce_p5_enabled(void) { return mce_p5_enable; } | |
15 | static inline void enable_p5_mce(void) { mce_p5_enable = 1; } | |
16 | #else | |
17 | static inline void intel_p5_mcheck_init(struct cpuinfo_x86 *c) {} | |
18 | static inline void winchip_mcheck_init(struct cpuinfo_x86 *c) {} | |
19 | static inline int mce_p5_enabled(void) { return 0; } | |
20 | static inline void enable_p5_mce(void) { } | |
21 | #endif | |
711c2e48 | 22 | |
1da177e4 | 23 | /* Call the installed machine check handler for this CPU setup. */ |
75604d7f | 24 | extern void (*machine_check_vector)(struct pt_regs *, long error_code); |
1da177e4 | 25 | |
4efc0670 | 26 | #ifdef CONFIG_X86_OLD_MCE |
5d727926 | 27 | |
1da177e4 LT |
28 | extern int nr_mce_banks; |
29 | ||
a65d0862 TG |
30 | void intel_set_thermal_handler(void); |
31 | ||
32 | #else | |
33 | ||
34 | static inline void intel_set_thermal_handler(void) { } | |
35 | ||
36 | #endif | |
37 | ||
38 | void intel_init_thermal(struct cpuinfo_x86 *c); |