[PATCH RFC 2/3] sched: decouple preferred CPU policies from steal-time accounting
From: Yury Norov
Date: Mon Nov 16 2026 - 21:26:04 EST
Scheduling on preferred subset of active CPUs is useful beyond the
paravirtualization scope.
For example, thermald can trim preferred list of CPUs as temperature
rises and restore them on cooling, allowing fair tasks to concentrate
on fewer CPUs without changing their affinity or taking CPUs offline.
Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>
---
Documentation/ABI/testing/sysfs-devices-system-cpu | 11 ++++-------
kernel/Kconfig.preempt | 2 +-
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu
index 3bf89c7c4b91..828c5173c3b4 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -821,13 +821,10 @@ What: /sys/devices/system/cpu/preferred
Date: Sep 2026
Contact: Linux kernel mailing list <linux-kernel@xxxxxxxxxxxxxxx>
Description:
- (RO) the list of preferred CPUs applicable in
- paravirtualized environments.
-
- The steal governor driver dynamically adjusts this mask
- based on observed steal time. Scheduling tasks on
- CPUs outside of this list may lead to performance
- degradations due to underlying physical CPU contention.
+ (RO) the list of CPUs preferred for fair tasks placement.
+ Fair tasks whose allowed CPUs contain no preferred CPU can
+ still run on active non-preferred CPUs. Other scheduling
+ classes are unaffected.
See Documentation/ABI/testing/sysfs-devices-system-cpu-preferred
and Documentation/scheduler/sched-paravirt.rst for more details.
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt
index 0cbc697202dd..9736c6e291d8 100644
--- a/kernel/Kconfig.preempt
+++ b/kernel/Kconfig.preempt
@@ -197,7 +197,7 @@ config SCHED_CLASS_EXT
config PREFERRED_CPU
bool "Preferred CPU scheduling"
- depends on SMP && HAVE_CPUTIME_STEAL
+ depends on SMP
help
Hint the fair scheduler to favor a subset of active CPUs.
Non-preferred CPUs remain online and can still run tasks
--
2.53.0