diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 | ||
7723 | static __read_mostly int sched_domain_debug_enabled; | ||
7724 | |||
7725 | static int __init sched_domain_debug_setup(char *str) | ||
7726 | { | ||
7727 | sched_domain_debug_enabled = 1; | ||
7728 | |||
7729 | return 0; | ||
7730 | } | ||
7731 | early_param("sched_debug", sched_domain_debug_setup); | ||
7732 | |||
7723 | static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, | 7733 | static 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; |