Re: [PATCH 1/4] cpufreq: allow driver-specific flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27 September 2014 15:44, Mike Turquette <mike.turquette@xxxxxxxxxx> wrote:
> I have another use case for exposing driver flags and I have created a
> similar patch to this locally in my git tree.
>
> Basically some cpufreq drivers may block or sleep during their
> .set_target callback, and others will not. E.g. the former case is the
> common pattern to use the clock framework and the regulator framework,
> both of which hold mutexes and may have slow operations and the latter
> case is more like the Intel P-state driver with just some register
> writes.
>
> For the energy-aware scheduling work it is desirable to know if the
> cpufreq driver can do a "fast" transition of it might sleep, since that
> affects whether we adjust the cpu frequency from the scheduler context
> of whether need to put new work on the workqueue (e.g. waking up a
> kthread dedicated to calling .set_target).

I wasn't against exposing the flags but using the same variable to store
driver specific data.
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux