|
@@ -854,8 +854,8 @@ static void mce_remove_device(unsigned int cpu)
|
|
|
}
|
|
|
|
|
|
/* Get notified when a cpu comes on/off. Be hotplug friendly. */
|
|
|
-static int
|
|
|
-mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
|
|
|
+static int __cpuinit mce_cpu_callback(struct notifier_block *nfb,
|
|
|
+ unsigned long action, void *hcpu)
|
|
|
{
|
|
|
unsigned int cpu = (unsigned long)hcpu;
|
|
|
|
|
@@ -872,7 +872,7 @@ mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
|
|
|
return NOTIFY_OK;
|
|
|
}
|
|
|
|
|
|
-static struct notifier_block mce_cpu_notifier = {
|
|
|
+static struct notifier_block mce_cpu_notifier __cpuinitdata = {
|
|
|
.notifier_call = mce_cpu_callback,
|
|
|
};
|
|
|
|