• P
    sched/fair: Restructure nohz_balance_kick() · 4550487a
    Peter Zijlstra 提交于
    The current:
    
    	if (nohz_kick_needed())
    		nohz_balancer_kick()
    
    is pointless complexity, fold them into a single call and avoid the
    various conditions at the call site.
    
    When we introduce multiple different needs to kick the ilb, the above
    construct also becomes a problem.
    Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: NIngo Molnar <mingo@kernel.org>
    4550487a
fair.c 263.9 KB