• Peter Zijlstra's avatar
    sched/fair: Explicitly generate __update_load_avg() instances · 0ccb977f
    Peter Zijlstra authored
    The __update_load_avg() function is an __always_inline because its
    used with constant propagation to generate different variants of the
    code without having to duplicate it (which would be prone to bugs).
    
    Explicitly instantiate the 3 variants.
    
    Note that most of this is called from rather hot paths, so reducing
    branches is good.
    Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    0ccb977f
fair.c 250 KB