cpufreq: preserve user_policy across suspend/resume
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 24 Dec 2013 01:41:01 +0000 (07:11 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 29 Dec 2013 14:31:21 +0000 (15:31 +0100)
commit08fd8c1cf0a99abf34e09a8b99b74872e0d73a23
treee91ccb6f0b9f6d7fc5e21f7d8c480ff7c19af666
parent72368d122c7479aa6e14fbbd334717b8a0c157a6
cpufreq: preserve user_policy across suspend/resume

Prevent __cpufreq_add_dev() from overwriting the existing values of
user_policy.{min|max|policy|governor} with defaults during resume
from system suspend.

Fixes: 5302c3fb2e62 ("cpufreq: Perform light-weight init/teardown during suspend/resume")
Reported-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c