aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mce.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-02-12 07:43:22 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-19 17:51:39 -0500
commitb5f2fa4ea00a179ac1c2ff342ceeee261dd75e53 (patch)
tree08fcd00fe45ba442d4bf51cc9fdc34e8b16238b3 /arch/x86/include/asm/mce.h
parent0d7482e3d76522157c9d741d79fce22c401fa0c5 (diff)
x86, mce: factor out duplicated struct mce setup into one function
Impact: cleanup This merely factors out duplicated code to set up the initial struct mce state into a single function. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/mce.h')
-rw-r--r--arch/x86/include/asm/mce.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index 5522273a3ad8..048b71d9387a 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -90,6 +90,7 @@ extern int mce_disabled;
90 90
91#include <asm/atomic.h> 91#include <asm/atomic.h>
92 92
93void mce_setup(struct mce *m);
93void mce_log(struct mce *m); 94void mce_log(struct mce *m);
94DECLARE_PER_CPU(struct sys_device, device_mce); 95DECLARE_PER_CPU(struct sys_device, device_mce);
95extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu); 96extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu);
@@ -106,7 +107,7 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c);
106static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } 107static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { }
107#endif 108#endif
108 109
109void mce_log_therm_throt_event(unsigned int cpu, __u64 status); 110void mce_log_therm_throt_event(__u64 status);
110 111
111extern atomic_t mce_entry; 112extern atomic_t mce_entry;
112 113