Skip to contentSkip to conversation

mce: add missing __cpuinit tags

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Jul 28, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mce: add missing __cpuinit tags

From: Bartlomiej Zolnierkiewicz <[email protected]>
Subject: [PATCH] mce: add missing __cpuinit tags

mce_cap_init() and mce_cpu_quirks() can be tagged with __cpuinit.

---
 arch/x86/kernel/cpu/mcheck/mce.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mcheck/mce.c +2 -2
Index: b/arch/x86/kernel/cpu/mcheck/mce.c
===================================================================
@@ -1162,7 +1162,7 @@ EXPORT_SYMBOL_GPL(mce_notify_irq);
 /*
  * Initialize Machine Checks for a CPU.
  */
-static int mce_cap_init(void)
+static int __cpuinit mce_cap_init(void)
 {
 	unsigned b;
 	u64 cap;
@@ -1226,7 +1226,7 @@ static void mce_init(void)
 }
 
 /* Add per CPU specific workarounds here */
-static void mce_cpu_quirks(struct cpuinfo_x86 *c)
+static void __cpuinit mce_cpu_quirks(struct cpuinfo_x86 *c)
 {
 	/* This should be disabled by the BIOS, but isn't always */
 	if (c->x86_vendor == X86_VENDOR_AMD) {