aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kernel-parameters.txt2
-rw-r--r--kernel/sched.c13
2 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 9107b387e91f..f2a9507b27b2 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -2182,6 +2182,8 @@ and is between 256 and 4096 characters. It is defined in the file
2182 2182
2183 sbni= [NET] Granch SBNI12 leased line adapter 2183 sbni= [NET] Granch SBNI12 leased line adapter
2184 2184
2185 sched_debug [KNL] Enables verbose scheduler debug messages.
2186
2185 sc1200wdt= [HW,WDT] SC1200 WDT (watchdog) driver 2187 sc1200wdt= [HW,WDT] SC1200 WDT (watchdog) driver
2186 Format: <io>[,<timeout>[,<isapnp>]] 2188 Format: <io>[,<timeout>[,<isapnp>]]
2187 2189
diff --git a/kernel/sched.c b/kernel/sched.c
index a57c6aee6d4a..48ff66a6892d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7720,6 +7720,16 @@ early_initcall(migration_init);
7720 7720
7721#ifdef CONFIG_SCHED_DEBUG 7721#ifdef CONFIG_SCHED_DEBUG
7722 7722
7723static __read_mostly int sched_domain_debug_enabled;
7724
7725static int __init sched_domain_debug_setup(char *str)
7726{
7727 sched_domain_debug_enabled = 1;
7728
7729 return 0;
7730}
7731early_param("sched_debug", sched_domain_debug_setup);
7732
7723static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, 7733static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
7724 struct cpumask *groupmask) 7734 struct cpumask *groupmask)
7725{ 7735{
@@ -7806,6 +7816,9 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
7806 cpumask_var_t groupmask; 7816 cpumask_var_t groupmask;
7807 int level = 0; 7817 int level = 0;
7808 7818
7819 if (!sched_domain_debug_enabled)
7820 return;
7821
7809 if (!sd) { 7822 if (!sd) {
7810 printk(KERN_DEBUG "CPU%d attaching NULL sched-domain.\n", cpu); 7823 printk(KERN_DEBUG "CPU%d attaching NULL sched-domain.\n", cpu);
7811 return; 7824 return;