• Peter Zijlstra's avatar
    sched/core: Optimize ttwu_stat() · b85c8b71
    Peter Zijlstra authored
    The whole of ttwu_stat() is guarded by a single schedstat_enabled(),
    there is absolutely no point in then issuing another static_branch for
    every single schedstat_inc() in there.
    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>
    b85c8b71
core.c 173 KB