• H. Peter Anvin's avatar
    x86, mce: remove incorrect __cpuinit for mce_cpu_features() · cc3ca220
    H. Peter Anvin authored
    Impact: Bug fix on UP
    
    Checkin 6ec68bff:
        x86, mce: reinitialize per cpu features on resume
    
    introduced a call to mce_cpu_features() in the resume path, in order
    for the MCE machinery to get properly reinitialized after a resume.
    However, this function (and its successors) was flagged __cpuinit,
    which becomes __init on UP configurations (on SMP suspend/resume
    requires CPU hotplug and so this would not be seen.)
    
    Remove the offending __cpuinit annotations for mce_cpu_features() and
    its successor functions.
    
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    cc3ca220
mce_64.c 21.8 KB