sched/debug: Print out idle balance values even on !CONFIG_SCHEDSTATS kernels
authorWanpeng Li <wanpeng.li@hotmail.com>
Tue, 3 May 2016 04:38:25 +0000 (12:38 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 May 2016 07:41:09 +0000 (09:41 +0200)
commitdb6ea2fb094fb3a6afc36d3e4229bc162638ad24
tree327c9321379b4b205f8d528c31a1833cabbf0f0d
parent7b20b916e953cabef569541f991a0a583bc344cb
sched/debug: Print out idle balance values even on !CONFIG_SCHEDSTATS kernels

The max_idle_balance_cost and avg_idle values which are tracked and ar used to
capture short idle incidents, are not associated with schedstats, however the
information of these two values isn't printed out on !CONFIG_SCHEDSTATS kernels.

Fix this by moving the value printout out of the CONFIG_SCHEDSTATS section.

Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
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>
Link: http://lkml.kernel.org/r/1462250305-4523-1-git-send-email-wanpeng.li@hotmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/debug.c