• B
    powerpc/pmac/smp: Properly NAP offlined CPU on G5 · 62cc67b9
    Benjamin Herrenschmidt 提交于
    The current code soft-disables, and then goes to NAP mode which
    turns interrupts on. That means that if an interrupt occurs, we
    will hit the masked interrupt code path which isn't what we want,
    as it will return with EE off, which will either get us out of
    NAP mode, or fail to enter it (according to spec).
    
    Instead, let's just rely on the fact that it is safe to take
    decrementer interrupts on an offline CPU and leave interrupts
    enabled. We can also get rid of the special case in asm for
    power4_cpu_offline_powersave() and just use power4_idle().
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    62cc67b9
head_64.S 19.5 KB