• Andi Kleen's avatar
    [PATCH] Remove safe_smp_processor_id() · 151f8cc1
    Andi Kleen authored
    And replace all users with ordinary smp_processor_id.  The function
    was originally added to get some basic oops information out even
    if the GS register was corrupted. However that didn't
    work for some anymore because printk is needed to print the oops
    and it uses smp_processor_id() already. Also GS register corruptions
    are not particularly common anymore.
    
    This also helps the Xen port which would otherwise need to
    do this in a special way because it can't access the local APIC.
    
    Cc: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    151f8cc1
mce.c 16.1 KB