x86, mce: fix boot logging logic
authorAndi Kleen <andi@firstfloor.org>
Tue, 7 Apr 2009 15:06:55 +0000 (17:06 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 22 Apr 2009 20:56:25 +0000 (13:56 -0700)
commit5679af4c1625a1534a4321e1ecc3c48a1cf65eb8
treef8cba967d0d80a1c184e785c08a972c08e8ae7a2
parent6298c512bc1007c3ff5c9ce20e6996781651cc45
x86, mce: fix boot logging logic

The earlier patch to change the poller to a separate function subtly
broke the boot logging logic. This could lead to machine checks
getting logged at boot even when disabled or defaulting to off
on some systems. Fix that.

[ Impact: bug fix - avoid spurious MCE in log ]

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce_64.c