diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-02-24 16:19:02 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-02-24 16:41:01 -0500 |
commit | df20e2eb3e59b8625021a1bc8b1b53a4edc6008b (patch) | |
tree | ccf1456de1a7d3aaa6ad44e2cea4608863700ae8 /arch/x86 | |
parent | 88ccbedd9ca85d1aca6a6f99df48dce87b7c02d4 (diff) |
x86, mce, cmci: remove incorrect __cpuinit/__cpuexit annotations
Impact: Bug fix on UP
The MCE code is reinitialized from resume, so we can't use
__cpuinit/__cpuexit for most of the code. Remove those annotations
for anything downstream of mce_init().
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_intel_64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c index a518ec8c6f89..7a2e10fcfa34 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c | |||
@@ -104,7 +104,7 @@ static DEFINE_SPINLOCK(cmci_discover_lock); | |||
104 | 104 | ||
105 | #define CMCI_THRESHOLD 1 | 105 | #define CMCI_THRESHOLD 1 |
106 | 106 | ||
107 | static __cpuinit int cmci_supported(int *banks) | 107 | static int cmci_supported(int *banks) |
108 | { | 108 | { |
109 | u64 cap; | 109 | u64 cap; |
110 | 110 | ||
@@ -147,7 +147,7 @@ static void print_update(char *type, int *hdr, int num) | |||
147 | * on this CPU. Use the algorithm recommended in the SDM to discover shared | 147 | * on this CPU. Use the algorithm recommended in the SDM to discover shared |
148 | * banks. | 148 | * banks. |
149 | */ | 149 | */ |
150 | static __cpuinit void cmci_discover(int banks, int boot) | 150 | static void cmci_discover(int banks, int boot) |
151 | { | 151 | { |
152 | unsigned long *owned = (void *)&__get_cpu_var(mce_banks_owned); | 152 | unsigned long *owned = (void *)&__get_cpu_var(mce_banks_owned); |
153 | int hdr = 0; | 153 | int hdr = 0; |
@@ -192,7 +192,7 @@ static __cpuinit void cmci_discover(int banks, int boot) | |||
192 | * Just in case we missed an event during initialization check | 192 | * Just in case we missed an event during initialization check |
193 | * all the CMCI owned banks. | 193 | * all the CMCI owned banks. |
194 | */ | 194 | */ |
195 | __cpuinit void cmci_recheck(void) | 195 | void cmci_recheck(void) |
196 | { | 196 | { |
197 | unsigned long flags; | 197 | unsigned long flags; |
198 | int banks; | 198 | int banks; |
@@ -208,7 +208,7 @@ __cpuinit void cmci_recheck(void) | |||
208 | * Disable CMCI on this CPU for all banks it owns when it goes down. | 208 | * Disable CMCI on this CPU for all banks it owns when it goes down. |
209 | * This allows other CPUs to claim the banks on rediscovery. | 209 | * This allows other CPUs to claim the banks on rediscovery. |
210 | */ | 210 | */ |
211 | void __cpuexit cmci_clear(void) | 211 | void cmci_clear(void) |
212 | { | 212 | { |
213 | int i; | 213 | int i; |
214 | int banks; | 214 | int banks; |
@@ -233,7 +233,7 @@ void __cpuexit cmci_clear(void) | |||
233 | * After a CPU went down cycle through all the others and rediscover | 233 | * After a CPU went down cycle through all the others and rediscover |
234 | * Must run in process context. | 234 | * Must run in process context. |
235 | */ | 235 | */ |
236 | void __cpuexit cmci_rediscover(int dying) | 236 | void cmci_rediscover(int dying) |
237 | { | 237 | { |
238 | int banks; | 238 | int banks; |
239 | int cpu; | 239 | int cpu; |