Re: [PATCH] cpufreq: schedutil: Allow use on UP kernels

From: Vincent Guittot

Date: Mon Nov 30 2026 - 08:36:49 EST


CCing Rafael and Viresh who maintain this ;-)

On Sun, 29 Nov 2026 at 21:11, Christian Loehle <christian.loehle@xxxxxxx> wrote:
>
> Schedutil was restricted to SMP when the scheduler did not provide
> utilization data on UP. Commit cac5cefbade9 ("sched/smp: Make SMP
> unconditional") enabled PELT accounting on UP, but schedutil's Kconfig
> restrictions remained.
>
> Allow UP kernels to build and select schedutil, including as their
> default governor. Keep the existing performance default for ARM UP by
> selecting schedutil automatically only on SMP.
>
> Signed-off-by: Christian Loehle <christian.loehle@xxxxxxx>

Acked-by: Vincent Guittot <vincent.guittot@xxxxxxxxxx>

> ---
> drivers/cpufreq/Kconfig | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> index edc1299098d4..da6dd2acb3ce 100644
> --- a/drivers/cpufreq/Kconfig
> +++ b/drivers/cpufreq/Kconfig
> @@ -37,7 +37,7 @@ config CPU_FREQ_STAT
> choice
> prompt "Default CPUFreq governor"
> default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1110_CPUFREQ
> - default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if ARM64 || ARM
> + default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if (ARM64 || ARM) && SMP
> default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if (X86_INTEL_PSTATE || X86_AMD_PSTATE) && SMP
> default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
> help
> @@ -97,7 +97,6 @@ config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
>
> config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
> bool "schedutil"
> - depends on SMP
> select CPU_FREQ_GOV_SCHEDUTIL
> select CPU_FREQ_GOV_PERFORMANCE
> help
> @@ -187,7 +186,6 @@ config CPU_FREQ_GOV_CONSERVATIVE
>
> config CPU_FREQ_GOV_SCHEDUTIL
> bool "'schedutil' cpufreq policy governor"
> - depends on SMP
> select CPU_FREQ_GOV_ATTR_SET
> select IRQ_WORK
> help
> --
> 2.34.1
>