• Andrew Morton's avatar
    [PATCH] ppc64: SMT snooze fix in idle loop · b0887c1c
    Andrew Morton authored
    From: Olof Johansson <olof@austin.ibm.com>
    
    A smt_snooze_delay of 0 is supposed to mean "disabled", but current idle
    loop logic doesn't take that into account and snoozes immediately instead.
    
    Below patch fixes the logic in the idle loop, as well as cleans up the test
    a bit.  An idling processor might no longer see a snooze change
    immediately, but that's not needed anyway.
    b0887c1c
idle.c 7.08 KB