summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-05-27 21:56:51 +0200
committerH. Peter Anvin <hpa@zytor.com>2009-05-28 09:24:14 -0700
commit88921be30296e126896ee4d30758f989d1c4ddfb (patch)
tree4af6f9a4e8fa2532fb240a02c780879917ad08c7
parent5706001aacba5d3db5f224ca135e5e91a30be39c (diff)
downloadblackbird-op-linux-88921be30296e126896ee4d30758f989d1c4ddfb.tar.gz
blackbird-op-linux-88921be30296e126896ee4d30758f989d1c4ddfb.zip
x86, mce: synchronize core after machine check handling
The example code in the IA32 SDM recommends to synchronize the CPU after machine check handling. So do that here. [ Impact: Spec compliance ] Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 156cdf6d9181..495c96808668 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -328,6 +328,8 @@ void machine_check_poll(enum mcp_flags flags, mce_banks_t *b)
* Don't clear MCG_STATUS here because it's only defined for
* exceptions.
*/
+
+ sync_core();
}
EXPORT_SYMBOL_GPL(machine_check_poll);
@@ -501,6 +503,7 @@ void do_machine_check(struct pt_regs *regs, long error_code)
mce_wrmsrl(MSR_IA32_MCG_STATUS, 0);
out2:
atomic_dec(&mce_entry);
+ sync_core();
}
EXPORT_SYMBOL_GPL(do_machine_check);
OpenPOWER on IntegriCloud