cpufreq: Always update current frequency before startig governor
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Mar 2016 14:47:48 +0000 (15:47 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Mar 2016 22:13:36 +0000 (23:13 +0100)
commit3bbf8fe3ae0845af9192118753c2399efe531832
treee35adff645878fdc538139b32ca4f687db76c935
parent999f572983de5e1a4ee9f42daa51b5448f12dd64
cpufreq: Always update current frequency before startig governor

Make policy->cur match the current frequency returned by the driver's
->get() callback before starting the governor in case they went out of
sync in the meantime and drop the piece of code attempting to
resync policy->cur with the real frequency of the boot CPU from
cpufreq_resume() as it serves no purpose any more (and it's racy and
super-ugly anyway).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c