mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cpufreq: schedutil: Allow use on UP kernels
@ 2026-11-29 20:10 Christian Loehle
  2026-11-30  3:46 ` K Prateek Nayak
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Loehle @ 2026-11-29 20:10 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot
  Cc: Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Valentin Schneider, K Prateek Nayak, mehmet.fide, linux-kernel,
	Christian Loehle

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@arm.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: schedutil: Allow use on UP kernels
  2026-11-29 20:10 [PATCH] cpufreq: schedutil: Allow use on UP kernels Christian Loehle
@ 2026-11-30  3:46 ` K Prateek Nayak
  0 siblings, 0 replies; 2+ messages in thread
From: K Prateek Nayak @ 2026-11-30  3:46 UTC (permalink / raw)
  To: Christian Loehle, Ingo Molnar, Peter Zijlstra, Juri Lelli,
	Vincent Guittot
  Cc: Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Valentin Schneider, mehmet.fide, linux-kernel

Hello Chris,

On 11/30/2026 1:40 AM, Christian Loehle 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@arm.com>

I can see schedutil running with all its glory on my UP server :-)
Feel free to include:

Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>

> ---
>  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

-- 
Thanks and Regards,
Prateek


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  3:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 20:10 [PATCH] cpufreq: schedutil: Allow use on UP kernels Christian Loehle
2026-11-30  3:46 ` K Prateek Nayak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®