• Vincent Guittot's avatar
    sched/fair: Fix unnecessary increase of balance interval · 46a745d9
    Vincent Guittot authored
    In case of active balancing, we increase the balance interval to cover
    pinned tasks cases not covered by all_pinned logic. Neverthless, the
    active migration triggered by asym packing should be treated as the normal
    unbalanced case and reset the interval to default value, otherwise active
    migration for asym_packing can be easily delayed for hundreds of ms
    because of this pinned task detection mechanism.
    
    The same happens to other conditions tested in need_active_balance() like
    misfit task and when the capacity of src_cpu is reduced compared to
    dst_cpu (see comments in need_active_balance() for details).
    Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: valentin.schneider@arm.com
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    46a745d9
fair.c 281 KB