summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mce.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-02-12 13:49:30 +0100
committerH. Peter Anvin <hpa@zytor.com>2009-02-24 22:24:42 +0100
commit41fdff322e26c4a86fe65cf577f2556a650cb7bc (patch)
treed7865f0b5026c9ef23a101d9f8eae4322f6dbc65 /arch/x86/include/asm/mce.h
parentMerge branch 'x86/urgent' into x86/mce2 (diff)
downloadlinux-41fdff322e26c4a86fe65cf577f2556a650cb7bc.tar.xz
linux-41fdff322e26c4a86fe65cf577f2556a650cb7bc.zip
x86, mce, cmci: export MAX_NR_BANKS
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>
Diffstat (limited to 'arch/x86/include/asm/mce.h')
-rw-r--r--arch/x86/include/asm/mce.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index 225cdb5d2bfc..39136c497c5e 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -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