diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-02-12 13:43:22 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-02-19 14:51:39 -0800 |
commit | b5f2fa4ea00a179ac1c2ff342ceeee261dd75e53 (patch) | |
tree | 08fcd00fe45ba442d4bf51cc9fdc34e8b16238b3 /arch/x86/include/asm/mce.h | |
parent | 0d7482e3d76522157c9d741d79fce22c401fa0c5 (diff) | |
download | blackbird-obmc-linux-b5f2fa4ea00a179ac1c2ff342ceeee261dd75e53.tar.gz blackbird-obmc-linux-b5f2fa4ea00a179ac1c2ff342ceeee261dd75e53.zip |
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.h | 3 |
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; #include <asm/atomic.h> +void mce_setup(struct mce *m); void mce_log(struct mce *m); DECLARE_PER_CPU(struct sys_device, device_mce); extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu); @@ -106,7 +107,7 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c); static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } #endif -void mce_log_therm_throt_event(unsigned int cpu, __u64 status); +void mce_log_therm_throt_event(__u64 status); extern atomic_t mce_entry; |