]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86, mce, cmci: export MAX_NR_BANKS
authorAndi Kleen <andi@firstfloor.org>
Thu, 12 Feb 2009 12:49:30 +0000 (13:49 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Feb 2009 21:24:42 +0000 (13:24 -0800)
Impact: Cleanup (code movement)

Move MAX_NR_BANKS into mce.h because it's needed there
for followup patches.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce_64.c

index 225cdb5d2bfca18a70b5683a10f48328a4b8d252..39136c497c5e5e8f06d086018742a07e2c42baca 100644 (file)
@@ -95,6 +95,12 @@ void mce_log(struct mce *m);
 DECLARE_PER_CPU(struct sys_device, device_mce);
 extern void (*threshold_cpu_callback)(unsigned long action, unsigned int cpu);
 
+/*
+ * To support more than 128 would need to escape the predefined
+ * Linux defined extended banks first.
+ */
+#define MAX_NR_BANKS (MCE_EXTENDED_BANK - 1)
+
 #ifdef CONFIG_X86_MCE_INTEL
 void mce_intel_feature_init(struct cpuinfo_x86 *c);
 #else
index a4a7c686ce90bf45a0a1e543281db6fa1570d0c2..39f8bb525a74afa7bac0949d7a248a50a21c4988 100644 (file)
 
 #define MISC_MCELOG_MINOR 227
 
-/*
- * To support more than 128 would need to escape the predefined
- * Linux defined extended banks first.
- */
-#define MAX_NR_BANKS (MCE_EXTENDED_BANK - 1)
-
 atomic_t mce_entry;
 
 static int mce_dont_init;