diff options
| author | Matt Wagantall <mattw@codeaurora.org> | 2013-12-05 20:01:32 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 19:58:37 -0700 |
| commit | 5f10bd75eb0ef27794e28674c3b72865d846c385 (patch) | |
| tree | 0426ddb3f2bd2cb0522cb60150d3336b0f519bec /kernel/sched/debug.c | |
| parent | 521a572defaba88bef6d44ebf05c71aad9abd821 (diff) | |
sched/debug: Make sysrq prints of sched debug data optional
Calls to sysrq_sched_debug_show() can yield rather verbose output
which contributes to log spew and, under heavy load, may increase
the chances of a watchdog bark.
Make printing of this data optional with the introduction of a
new Kconfig, CONFIG_SYSRQ_SCHED_DEBUG.
Change-Id: I5f54d901d0dea403109f7ac33b8881d967a899ed
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
| -rw-r--r-- | kernel/sched/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 641511771ae6..5799706cc6f0 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -408,6 +408,7 @@ static int sched_debug_show(struct seq_file *m, void *v) return 0; } +#ifdef CONFIG_SYSRQ_SCHED_DEBUG void sysrq_sched_debug_show(void) { int cpu; @@ -417,6 +418,7 @@ void sysrq_sched_debug_show(void) print_cpu(NULL, cpu); } +#endif /* * This itererator needs some explanation. |
