diff options
author | Andi Kleen <ak@suse.de> | 2006-06-26 07:58:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 13:48:20 -0400 |
commit | b633237e9c1b91b86c431c5d41266b47408b4642 (patch) | |
tree | 3be108c43b239736596e10b28609115a0a6b66ea | |
parent | 2903ee85ce462d66955b800a0c48e26e51de0aae (diff) |
[PATCH] x86_64: Mark mce_amd cpu notifier __cpuinit/__cpuinitdata
Cc: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/x86_64/kernel/mce_amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/mce_amd.c b/arch/x86_64/kernel/mce_amd.c index 3f967d4fe199..335200aa2737 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) | |||
636 | #endif | 636 | #endif |
637 | 637 | ||
638 | /* get notified when a cpu comes on/off */ | 638 | /* get notified when a cpu comes on/off */ |
639 | static int threshold_cpu_callback(struct notifier_block *nfb, | 639 | static int __cpuinit threshold_cpu_callback(struct notifier_block *nfb, |
640 | unsigned long action, void *hcpu) | 640 | unsigned long action, void *hcpu) |
641 | { | 641 | { |
642 | /* cpu was unsigned int to begin with */ | 642 | /* cpu was unsigned int to begin with */ |
@@ -659,7 +659,7 @@ static int threshold_cpu_callback(struct notifier_block *nfb, | |||
659 | return NOTIFY_OK; | 659 | return NOTIFY_OK; |
660 | } | 660 | } |
661 | 661 | ||
662 | static struct notifier_block threshold_cpu_notifier = { | 662 | static struct notifier_block threshold_cpu_notifier __cpuinitdata = { |
663 | .notifier_call = threshold_cpu_callback, | 663 | .notifier_call = threshold_cpu_callback, |
664 | }; | 664 | }; |
665 | 665 | ||