• A
    x86, mce: disable machine checks on suspend · 973a2dd1
    Andi Kleen 提交于
    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: NAndi Kleen <ak@linux.intel.com>
    Acked-by: NThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
    973a2dd1
mce_64.c 22.3 KB