Re: [PATCH] sched/idle: Make idle poll dynamic per-cpu

From: Peter Zijlstra
Date: Mon Jan 16 2023 - 06:55:00 EST


On Mon, Jan 16, 2023 at 10:28:20AM +0100, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> > > Urgh, can we please make this a cpuidle governor thing or so? So that
> > > we don't need to invent new interfaces and such.
> >
> > I think the desired property here would be to make this interface on top
> > of pretty much any governor. Ie. have a governor, but also a way to drop
> > any CPU into idle-poll, overriding that.
>
> ... with the goal of having the best governor for power efficiency by
> default - but also the ability to drop a handful of CPUs into the highest
> performance / lowest latency idle mode.

Bah, so while you can set a cpufreq gov (say performance) per cpu,
you can't do the same with cpuidle.