From: Andi Kleen Date: Thu, 12 Feb 2009 12:39:32 +0000 (+0100) Subject: x86, mce: disable machine checks on suspend X-Git-Tag: v2.6.30-rc1~2^2~50^2~5^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973a2dd1d50a11d380086601f14e59116f93e8c5;p=pandora-kernel.git x86, mce: disable machine checks on suspend Impact: Bug fix During suspend it is not reliable to process machine check exceptions, because CPUs disappear but can still get machine check broadcasts. Also the system is slightly more likely to machine check them, but the handler is typically not a position to handle them in a meaningfull way. So disable them during suspend and enable them during resume. Also make sure they are always disabled on hot-unplugged CPUs. This new code assumes that suspend always hotunplugs all non BP CPUs. v2: Remove the WARN_ONs Thomas objected to. Signed-off-by: Andi Kleen Acked-by: Thomas Gleixner Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed