• Andi Kleen's avatar
    [PATCH] Fix idle notifiers · a15da49d
    Andi Kleen authored
    Previously exit_idle would be called more often than enter_idle
    
    Now instead of using complicated tests just keep track of it
    using the per CPU variable as a flip flop.  I moved the idle state into the
    PDA to make the access more efficient.
    
    Original bug report and an initial patch from Stephane Eranian,
    but redone by AK.
    
    Cc: Stephane Eranian <eranian@hpl.hp.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    a15da49d
process.c 20.6 KB