Skip to content

Commit a18a579

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
sched/debug: Hide printk() by default
Dietmar accidentally added an unconditional sched domain printk. Hide it behind the normal sched_debug flag. Reported-by: Christian Borntraeger <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Christian Borntraeger <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Fixes: cd92bfd ("sched/core: Store maximum per-CPU capacity in root domain") [ Fixed !SCHED_DEBUG build failure. ] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 8bf46a3 commit a18a579

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/sched/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5739,6 +5739,8 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
57395739
}
57405740
}
57415741
#else /* !CONFIG_SCHED_DEBUG */
5742+
5743+
# define sched_debug_enabled 0
57425744
# define sched_domain_debug(sd, cpu) do { } while (0)
57435745
static inline bool sched_debug(void)
57445746
{
@@ -7006,7 +7008,7 @@ static int build_sched_domains(const struct cpumask *cpu_map,
70067008
}
70077009
rcu_read_unlock();
70087010

7009-
if (rq) {
7011+
if (rq && sched_debug_enabled) {
70107012
pr_info("span: %*pbl (max cpu_capacity = %lu)\n",
70117013
cpumask_pr_args(cpu_map), rq->rd->max_cpu_capacity);
70127014
}

0 commit comments

Comments
 (0)