]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
sched/core: Optimize ttwu_stat()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 16 Jan 2018 19:51:06 +0000 (20:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 6 Feb 2018 09:20:31 +0000 (10:20 +0100)
commitb85c8b71bf8de36a88f338f406f02a8cb48c5c3b
treed9df9a5f4ad7b07e139adeb9655adabb010cf675
parent460e8c3340a265d1d70fa1ee05c42afd68b2efa0
sched/core: Optimize ttwu_stat()

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: Peter 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: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/stats.h