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

From: K Prateek Nayak

Date: Sun Nov 29 2026 - 22:54:38 EST


Hello Chris, Mehmet,

On 11/30/2026 1:23 AM, Christian Loehle wrote:
>> 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...

Peter and Ingo did drop a bunch of CONFIG_SMP specific build handling
since UP builds were failing frequently from not testing those
configs enough but I agree that even "well-placed" sprinkling of
!IS_ENABLED(CONFIG_SMP) is pretty ugly in scheduler path.

Enabling building with schedutil for UP is the right thing to do IMO
too so ack on that direction.

--
Thanks and Regards,
Prateek