Re: [PATCH] cpufreq: schedutil: Allow use on UP kernels
From: K Prateek Nayak
Date: Tue Dec 01 2026 - 03:09:15 EST
Hello Vincent,
On 12/1/2026 1:06 PM, Vincent Guittot wrote:
>>> @@ -15073,8 +15082,11 @@ void sched_balance_trigger(struct rq *rq)
>>> * Don't need to rebalance while attached to NULL domain or
>>> * runqueue CPU is not active
>>> */
>>> - if (unlikely(on_null_domain(rq) || !cpu_active(cpu_of(rq))))
>>> + if (unlikely(on_null_domain(rq) || !cpu_active(cpu_of(rq)))) {
>>> + if (rq->has_blocked_load)
>>> + sched_balance_update_blocked_averages(cpu_of(rq));
>
> Why not simply trigger the softirq ? We already have the periodic
> update filtering in place
Ack! That should work too. I was overthinking this.
>>> return;
>>> + }
>>>
>>> if (time_after_eq(jiffies, rq->next_balance))
>>> raise_softirq(SCHED_SOFTIRQ);
--
Thanks and Regards,
Prateek