• Peter Zijlstra's avatar
    sched: Unify load_balance{,_newidle}() · 1af3ed3d
    Peter Zijlstra authored
    load_balance() and load_balance_newidle() look remarkably similar, one
    key point they differ in is the condition on when to active balance.
    
    So split out that logic into a separate function.
    
    One side effect is that previously load_balance_newidle() used to fail
    and return -1 under these conditions, whereas now it doesn't. I've not
    yet fully figured out the whole -1 return case for either
    load_balance{,_newidle}().
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    1af3ed3d
sched_fair.c 97.2 KB