[PATCH 6/6] sched/topology: Remove SMT/asym capacity warning

Andrea Righi
2026-04-28T05:18:15Z

Now that asymmetric CPU capacity supports SMT, the combination of
SD_SHARE_CPUCAPACITY and SD_ASYM_CPUCAPACITY is a valid topology
configuration.

The existing WARN_ONCE() therefore triggers on legitimate systems and no
longer provides useful information. Remove the warning to avoid spurious
reports.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
---
kernel/sched/topology.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index 1e6ce369a4bbc..39805f09761cc 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -1732,10 +1732,6 @@ sd_init(struct sched_domain_topology_level *tl,
.name = tl->name,
};

- WARN_ONCE((sd->flags & (SD_SHARE_CPUCAPACITY | SD_ASYM_CPUCAPACITY)) ==
- (SD_SHARE_CPUCAPACITY | SD_ASYM_CPUCAPACITY),
- "CPU capacity asymmetry not supported on SMT\n");
-
/*
* Convert topological properties into behaviour.
*/
--
2.54.0