aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mce.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-02-12 07:49:34 -0500
committerH. Peter Anvin <hpa@zytor.com>2009-02-24 16:26:05 -0500
commitee031c31d6381d004bfd386c2e45821211507499 (patch)
tree91f5dd04b594bccae8e89eb52dff4ba0eea5041e /arch/x86/include/asm/mce.h
parent8457c84d68678cbfd4167a9073b89da58e48c037 (diff)
x86, mce, cmci: use polled banks bitmap in machine check poller
Define a per cpu bitmap that contains the banks polled by the machine check poller. This is needed for the CMCI code in the next patches to be able to disable polling on specific banks. The bank by default contains all banks, so there is no behaviour change. Only future code will remove some banks from the polling set. 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index 125cd8714622..9b9523699dbc 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -119,11 +119,14 @@ extern atomic_t mce_entry;
119 119
120extern void do_machine_check(struct pt_regs *, long); 120extern void do_machine_check(struct pt_regs *, long);
121 121
122typedef DECLARE_BITMAP(mce_banks_t, MAX_NR_BANKS);
123DECLARE_PER_CPU(mce_banks_t, mce_poll_banks);
124
122enum mcp_flags { 125enum mcp_flags {
123 MCP_TIMESTAMP = (1 << 0), /* log time stamp */ 126 MCP_TIMESTAMP = (1 << 0), /* log time stamp */
124 MCP_UC = (1 << 1), /* log uncorrected errors */ 127 MCP_UC = (1 << 1), /* log uncorrected errors */
125}; 128};
126extern void machine_check_poll(enum mcp_flags flags); 129extern void machine_check_poll(enum mcp_flags flags, mce_banks_t *b);
127 130
128extern int mce_notify_user(void); 131extern int mce_notify_user(void);
129 132