sched/debug: Properly format runnable tasks in /proc/sched_debug
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Mon, 8 Jun 2015 08:10:39 +0000 (13:40 +0530)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Jun 2015 08:03:10 +0000 (10:03 +0200)
commit33d6176eb12d1b0ae6d2f672b47367fd90726b91
tree17e1c375d40acb309a57621c61d280ed901712c6
parent6f9aad0bc37286c0441b57f0ba8cffee50715426
sched/debug: Properly format runnable tasks in /proc/sched_debug

With !CONFIG_SCHEDSTATS, runnable tasks in /proc/sched_debug has too
many columns than required. Fix this by printing appropriate columns.

While at this, print sum_exec_runtime, since this information is
available even in !CONFIG_SCHEDSTATS case.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/debug.c