From: Andi Kleen Date: Mon, 26 Jun 2006 11:58:59 +0000 (+0200) Subject: [PATCH] x86_64: Mark mce_amd cpu notifier __cpuinit/__cpuinitdata X-Git-Tag: v2.6.18-rc1~612^2~23 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=b633237e9c1b91b86c431c5d41266b47408b4642;p=safe%2Fjmp%2Flinux-2.6 [PATCH] x86_64: Mark mce_amd cpu notifier __cpuinit/__cpuinitdata Cc: Jacob Shin Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/mce_amd.c b/arch/x86_64/kernel/mce_amd.c index 3f967d4..335200a 100644 --- a/arch/x86_64/kernel/mce_amd.c +++ b/arch/x86_64/kernel/mce_amd.c @@ -636,7 +636,7 @@ static void threshold_remove_device(unsigned int cpu) #endif /* get notified when a cpu comes on/off */ -static int threshold_cpu_callback(struct notifier_block *nfb, +static int __cpuinit threshold_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { /* cpu was unsigned int to begin with */ @@ -659,7 +659,7 @@ static int threshold_cpu_callback(struct notifier_block *nfb, return NOTIFY_OK; } -static struct notifier_block threshold_cpu_notifier = { +static struct notifier_block threshold_cpu_notifier __cpuinitdata = { .notifier_call = threshold_cpu_callback, };