Viresh Kumar
1750396320
cpufreq: Restore policy min/max limits on CPU online
...
commit ff010472fb upstream.
On CPU online the cpufreq core restores the previous governor (or
the previous "policy" setting for ->setpolicy drivers), but it does
not restore the min/max limits at the same time, which is confusing,
inconsistent and real pain for users who set the limits and then
suspend/resume the system (using full suspend), in which case the
limits are reset on all CPUs except for the boot one.
Fix this by making cpufreq_online() restore the limits when an inactive
policy is brought online.
The commit log and patch are inspired from Rafael's earlier work.
Reported-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-03-30 09:35:18 +02:00
..
2015-10-08 21:47:13 +02:00
2013-04-10 13:19:26 +02:00
2015-09-15 02:03:16 +02:00
2015-11-02 01:58:27 +01:00
2015-09-15 02:03:16 +02:00
2014-04-07 14:31:33 +02:00
2014-03-12 01:06:00 +01:00
2015-11-23 22:21:18 +01:00
2015-09-26 02:59:38 +02:00
2016-03-03 15:07:25 -08:00
2015-09-26 02:59:38 +02:00
2015-10-28 09:20:04 +01:00
2013-08-07 23:34:09 +02:00
2013-08-07 23:34:09 +02:00
2015-01-23 23:06:45 +01:00
2016-09-15 08:27:54 +02:00
2015-09-15 02:03:16 +02:00
2015-06-15 15:45:24 +02:00
2017-03-30 09:35:18 +02:00
2014-04-07 14:43:50 +02:00
2014-04-07 14:43:50 +02:00
2014-10-20 16:20:24 +02:00
2014-10-20 16:20:24 +02:00
2015-07-22 22:11:16 +02:00
2014-04-30 00:06:21 +02:00
2015-09-15 02:03:16 +02:00
2015-08-07 03:25:23 +02:00
2015-06-15 15:46:15 +02:00
2014-10-21 11:21:19 -07:00
2015-04-02 02:24:54 +02:00
2015-07-22 22:27:40 +02:00
2015-11-02 00:54:37 +01:00
2015-09-25 23:29:35 +02:00
2016-10-28 03:01:26 -04:00
2015-03-18 22:35:16 +01:00
2015-12-12 02:25:56 +01:00
2015-03-18 22:35:16 +01:00
2015-11-19 00:20:42 +01:00
2014-10-20 16:20:24 +02:00
2014-12-19 12:56:15 -08:00
2013-07-14 19:36:57 -04:00
2013-10-16 00:50:23 +02:00
2015-08-03 09:24:59 +02:00
2015-06-21 21:53:59 +02:00
2015-11-10 15:00:03 -08:00
2014-04-07 14:43:50 +02:00
2015-09-15 02:03:16 +02:00
2014-10-20 16:20:24 +02:00
2015-05-27 15:22:16 +02:00
2014-04-30 00:06:21 +02:00
2014-11-14 00:16:25 +01:00
2014-10-02 17:33:55 +10:00
2014-06-26 17:12:24 +01:00
2014-12-19 12:56:15 -08:00
2015-07-22 22:11:16 +02:00
2011-05-19 18:51:07 -04:00
2015-07-22 22:11:16 +02:00
2014-05-17 01:27:01 +02:00
2017-01-19 20:17:22 +01:00
2013-04-10 13:19:26 +02:00
2015-09-01 15:50:38 +02:00
2014-04-30 00:06:21 +02:00
2013-04-10 13:19:26 +02:00
2016-03-03 15:07:25 -08:00
2014-03-12 01:06:00 +01:00
2015-06-15 15:47:28 +02:00
2013-05-20 23:04:28 +09:00
2015-11-27 10:10:32 +09:00
2014-04-30 00:06:21 +02:00
2014-07-19 04:24:59 +09:00
2014-07-19 04:24:59 +09:00
2015-02-19 06:36:53 +01:00
2014-07-19 04:24:59 +09:00
2015-11-05 22:50:48 +01:00
2014-01-06 14:17:25 +01:00
2014-07-16 14:30:17 +02:00
2014-04-07 14:43:50 +02:00
2015-12-24 02:11:37 +01:00
2015-09-01 15:51:15 +02:00
2014-03-26 16:41:41 +01:00
2014-03-12 01:06:00 +01:00
2014-03-12 01:06:00 +01:00
2014-10-20 16:20:24 +02:00
2014-05-01 01:15:32 +02:00
2015-05-27 15:22:16 +02:00
2015-09-01 15:51:43 +02:00
2011-05-19 18:51:07 -04:00
2015-02-12 02:02:52 +01:00
2015-09-26 03:00:57 +02:00
2015-07-16 09:34:09 +02:00
2014-04-21 23:42:27 +02:00
2014-10-20 16:20:24 +02:00