Re: [PATCH V2 2/2] cpufreq: Change freq before suspending governors

From: Viresh Kumar
Date: Sun Nov 24 2013 - 23:28:35 EST


On 25 November 2013 03:02, Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> wrote:
> Viresh, maybe make it possible for the cpufreq driver to provide suspend/resume
> callbacks to be executed by cpufreq_suspend() and cpufreq_resume() introduced
> by [1/2]? Then Tegra could set the frequencies to what it wants from there
> before the governors are stopped.

Giving cpufreq-drivers a chance to do whatever they want looks to be
correct. So, maybe prepare() or suspend_prepare() for them can be
implemented.

Though I would still go for a generic function in core, which can be
just reused by samsung and tegra to set cores to specific frequencies.

--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/