Re: [RFC PATCH] sched/fair: Skip PELT on !CONFIG_SMP

From: Christian Loehle

Date: Sun Nov 29 2026 - 14:54:10 EST


On 11/29/26 19:32, Mehmet Fide wrote:
> Hi Christian,
>
>> We can still use them for DVFS, i.e. schedutil, can't we?
>
> Not with CONFIG_SMP=n: CPU_FREQ_GOV_SCHEDUTIL still depends on SMP, so
> such a kernel has no schedutil. If that dependency is dropped, the
> skip would have to follow schedutil instead of SMP.

Ah you're right of course. That being said that was because PELT didn't
support UP back then while now it's probably just a matter of removing
that Kconfig dependency AFAICT, if anything this probably should've been
done with cac5cefbade9 ("sched/smp: Make SMP unconditional")


Not that it actually achieves what you aim to do, rather the opposite.

>
>> Besides, the entire point of the commit was to get rid of the SMP ifdeffery
>> and this is introducing them in a worse way.
>
> I went by the cover letter of the series, which asked for UP
> improvements through "well-placed IS_ENABLED(CONFIG_SMP) kind of
> toggles". If seven of them in fair.c are too many for 7-22 % on the
> round trips of a UP board, is there a form you would accept?
>

You'll be glad to hear that I don't call the shots here ;)
The feeling I get is that scheduler folks dream of dropping support
for CONFIG_SMP=n altogether if there was a way that they could...