]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: idle: Skip cross-node search with !CONFIG_NUMA
authorAndrea Righi <arighi@nvidia.com>
Tue, 3 Jun 2025 08:22:01 +0000 (10:22 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 3 Jun 2025 18:22:27 +0000 (08:22 -1000)
commit9960be72a54cf0e4d47abdd4cacd1278835a3bb4
treec2c13b7dc738518ee92caec9ce365d99927897f6
parentee9a4e92799d72b1a2237d76065562b1f1cf334f
sched_ext: idle: Skip cross-node search with !CONFIG_NUMA

In the idle CPU selection logic, attempting cross-node searches adds
unnecessary complexity when CONFIG_NUMA is disabled.

Since there's no meaningful concept of nodes in this case, simplify the
logic by restricting the idle CPU search to the current node only.

Fixes: 48849271e6611 ("sched_ext: idle: Per-node idle cpumasks")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c