]> www.infradead.org Git - users/dwmw2/linux.git/commit
cpufreq/schedutil: Only bind threads if needed
authorChristian Loehle <christian.loehle@arm.com>
Mon, 20 Jan 2025 10:09:46 +0000 (10:09 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Jan 2025 20:09:25 +0000 (21:09 +0100)
commit93940fbdc46843cea58708bbe8dd225bd0f32e67
tree549e756a2a4fd97c673e0b9d6a49f93266b4f70b
parent2b16c631832df6cf8782fb1fdc7df8a4f03f4f16
cpufreq/schedutil: Only bind threads if needed

Remove the unconditional binding of sugov kthreads to the affected CPUs
if the cpufreq driver indicates that updates can happen from any CPU.
This allows userspace to set affinities to either save power (waking up
bigger CPUs on HMP can be expensive) or increasing performance (by
letting the utilized CPUs run without preemption of the sugov kthread).

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/5a8deed4-7764-4729-a9d4-9520c25fa7e8@arm.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/cpufreq_schedutil.c
kernel/sched/syscalls.c