Re: [PATCH] cpufreq: use last policy after online

Rafael J. Wysocki
2015-12-02T22:38:35Z

On Wednesday, December 02, 2015 02:05:27 PM Srinivas Pandruvada wrote:
> On Wed, 2015-12-02 at 03:05 +0100, Rafael J. Wysocki wrote:
> > On Tuesday, December 01, 2015 04:52:14 PM Srinivas Pandruvada wrote:
> > > For cpufreq drivers which use setpolicy interface, after offline->online
> > > the policy is set to default. This can be reproduced by setting the
> > > default policy of intel_pstate or longrun to ondemand and then change to
> > > "performance". After offline and online, the setpolicy will be called with
> > > the policy=ondemand.
> > > For drivers using governors this condition is handled by storing
> > > last_governor, during offline and restoring during online. The same should
> > > be done for drivers using setpolicy interface. Storing last_policy during
> > > offline and restoring during online.
> > >
> > > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> >
> > I guess this is urgent, right?
> I don't think. I tried couple of old kernels, same issue.

OK, thanks for checking!

Rafael