x86, mce: use 64bit machine check code on 32bit
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / kernel / cpu / mcheck / mce.h
blob84a552b458c8368140c5a5a2fc3b96a5db12036c
1 #include <linux/init.h>
2 #include <asm/mce.h>
4 #ifdef CONFIG_X86_OLD_MCE
5 void amd_mcheck_init(struct cpuinfo_x86 *c);
6 void intel_p4_mcheck_init(struct cpuinfo_x86 *c);
7 void intel_p6_mcheck_init(struct cpuinfo_x86 *c);
8 #endif
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
23 /* Call the installed machine check handler for this CPU setup. */
24 extern void (*machine_check_vector)(struct pt_regs *, long error_code);
26 #ifdef CONFIG_X86_OLD_MCE
28 extern int nr_mce_banks;
30 void intel_set_thermal_handler(void);
32 #else
34 static inline void intel_set_thermal_handler(void) { }
36 #endif
38 void intel_init_thermal(struct cpuinfo_x86 *c);