intel_pstate: honor user space min_perf_pct override on resume
authorKristen Carlson Accardi <kristen@linux.intel.com>
Thu, 29 Jan 2015 21:03:52 +0000 (13:03 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Jan 2015 00:52:17 +0000 (01:52 +0100)
commita04759924e2528c5cc2af49b183c5638fe8d9bed
treecc3a690e3e4f5c9c073a8155f627484deed15c3f
parent630ec286dd85c5838493ab7ef975881c42069ef0
intel_pstate: honor user space min_perf_pct override on resume

If the user has requested an override of the min_perf_pct via
sysfs, then it should be restored whenever policy is updated,
such as on resume.  Take the max of whatever the user requested
and whatever the policy is.

Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c