• Robert Love's avatar
    [PATCH] make smp.c preempt-safe · 373c84d2
    Robert Love authored
    The attached patch cleans up some per-CPU code in arch/i386/kernel/smp.c
    that could be problematic under preemption.
    
    The first I solve with the new get_cpu interface, for the second two I
    explicitly disable preemption.  I also changed 1 to 1UL in the shift to
    properly match the type.
    373c84d2
smp.c 16.1 KB