We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf46a3 commit a18a579Copy full SHA for a18a579
kernel/sched/core.c
@@ -5739,6 +5739,8 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
5739
}
5740
5741
#else /* !CONFIG_SCHED_DEBUG */
5742
+
5743
+# define sched_debug_enabled 0
5744
# define sched_domain_debug(sd, cpu) do { } while (0)
5745
static inline bool sched_debug(void)
5746
{
@@ -7006,7 +7008,7 @@ static int build_sched_domains(const struct cpumask *cpu_map,
7006
7008
7007
7009
rcu_read_unlock();
7010
- if (rq) {
7011
+ if (rq && sched_debug_enabled) {
7012
pr_info("span: %*pbl (max cpu_capacity = %lu)\n",
7013
cpumask_pr_args(cpu_map), rq->rd->max_cpu_capacity);
7014
0 commit comments