Skip to content

Commit 98eb401

Browse files
Valentin SchneiderPeter Zijlstra
authored andcommitted
sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry
As Russell pointed out [1], this option is severely lacking in the documentation department, and figuring out if one has the required dependencies to benefit from turning it on is not straightforward. Make it non user-visible, and add a bit of help to it. While at it, make it depend on CPU_FREQ_THERMAL. [1]: https://lkml.kernel.org/r/[email protected] Signed-off-by: Valentin Schneider <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 25980c7 commit 98eb401

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

init/Kconfig

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,21 @@ config HAVE_SCHED_AVG_IRQ
492492
depends on SMP
493493

494494
config SCHED_THERMAL_PRESSURE
495-
bool "Enable periodic averaging of thermal pressure"
495+
bool
496496
depends on SMP
497+
depends on CPU_FREQ_THERMAL
498+
help
499+
Select this option to enable thermal pressure accounting in the
500+
scheduler. Thermal pressure is the value conveyed to the scheduler
501+
that reflects the reduction in CPU compute capacity resulted from
502+
thermal throttling. Thermal throttling occurs when the performance of
503+
a CPU is capped due to high operating temperatures.
504+
505+
If selected, the scheduler will be able to balance tasks accordingly,
506+
i.e. put less load on throttled CPUs than on non/less throttled ones.
507+
508+
This requires the architecture to implement
509+
arch_set_thermal_pressure() and arch_get_thermal_pressure().
497510

498511
config BSD_PROCESS_ACCT
499512
bool "BSD Process Accounting"

0 commit comments

Comments
 (0)