Re: [RFD PATCH 3/5] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE
From: Mark Brown
Date: Mon Mar 27 2017 - 14:06:29 EST
On Mon, Mar 27, 2017 at 06:50:11PM +0200, Peter Zijlstra wrote:
> Taken together this seems to suggest we can rework cpufreq drivers to
> function in-context, either directly push the packet on the bus if
> available, or queue it and let whoever owns it sort it without blocking.
Note that this isn't really cpufreq's problem per se, cpufreq is going
to work out what voltage it wants then tell the regulator API to do that
which will in turn go communicate with the PMIC somehow, typically with
regmap over I2C or SPI. All those layers use mutexes by default.
> So if we can make all that work, we can do away with this horrible
> horrible kthread. Which is, IMO, a much better solution.
> Thoughts?
I think it's doable, but a lot of work especially in the regulator code.
Attachment:
signature.asc
Description: PGP signature