diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-02-12 07:43:22 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-02-19 17:51:39 -0500 |
commit | b5f2fa4ea00a179ac1c2ff342ceeee261dd75e53 (patch) | |
tree | 08fcd00fe45ba442d4bf51cc9fdc34e8b16238b3 /arch/x86/include/asm/mce.h | |
parent | 0d7482e3d76522157c9d741d79fce22c401fa0c5 (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.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; | |||
90 | 90 | ||
91 | #include <asm/atomic.h> | 91 | #include <asm/atomic.h> |
92 | 92 | ||
93 | void mce_setup(struct mce *m); | ||
93 | void mce_log(struct mce *m); | 94 | void mce_log(struct mce *m); |
94 | DECLARE_PER_CPU(struct sys_device, device_mce); | 95 | DECLARE_PER_CPU(struct sys_device, device_mce); |
95 | extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu); | 96 | extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu); |
@@ -106,7 +107,7 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c); | |||
106 | static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } | 107 | static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } |
107 | #endif | 108 | #endif |
108 | 109 | ||
109 | void mce_log_therm_throt_event(unsigned int cpu, __u64 status); | 110 | void mce_log_therm_throt_event(__u64 status); |
110 | 111 | ||
111 | extern atomic_t mce_entry; | 112 | extern atomic_t mce_entry; |
112 | 113 | ||