Re: [PATCH v9 09/15] sched: Introduce sched_energy_present static key

From: Peter Zijlstra
Date: Thu Nov 22 2018 - 05:26:03 EST


On Thu, Nov 22, 2018 at 09:32:39AM +0000, Quentin Perret wrote:
> Hmm, I went too fast, that's totally broken. But there's still something
> we can do with static_branch_{inc,dec} I think. I'll come back later
> with a better solution.

Right; if you count the rd's that have pd set, it should work-ish. Yes,
much cleaner if you can get it to work.