Re: [PATCHv2] cpufreq/schedutil: Only bind threads if needed

From: Viresh Kumar
Date: Tue Oct 01 2024 - 06:02:05 EST


On 27-09-24, 09:59, Christian Loehle wrote:
> 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@xxxxxxx>
> ---
> - v2: Add comment for the dl_task_check_affinity return (Juri)
> v1: https://lore.kernel.org/lkml/480f2140-ea59-4e1d-a68d-18cbcec10941@xxxxxxx/
>
> kernel/sched/cpufreq_schedutil.c | 6 +++++-
> kernel/sched/syscalls.c | 7 +++++++
> 2 files changed, 12 insertions(+), 1 deletion(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh