Yue Hu
ab05d97a37
cpufreq: Don't find governor for setpolicy drivers in cpufreq_init_policy()
...
In cpufreq_init_policy() we will check if there's last_governor for target
and setpolicy type. However last_governor is set only if has_target() is
true in cpufreq_offline(). That means find last_governor for setpolicy
type is pointless. Also new_policy.governor will not be used if ->setpolicy
callback is set in cpufreq_set_policy().
Moreover, there's duplicate ->setpolicy check in using default policy path.
Let's add a new helper function to avoid it. Also update comments.
Signed-off-by: Yue Hu <huyue2@yulong.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-05-13 10:46:24 +02:00
..
2019-04-16 23:09:28 +02:00
2019-04-08 11:26:09 +02:00
2019-02-07 09:55:11 +05:30
2017-11-08 23:22:19 +01:00
2019-04-08 15:35:24 +05:30
2019-04-29 15:22:50 +05:30
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2019-02-18 11:27:42 +01:00
2018-10-16 12:34:45 +02:00
2019-04-30 10:54:23 +02:00
2017-07-26 00:15:45 +02:00
2017-07-22 02:25:20 +02:00
2019-04-09 11:31:48 +02:00
2019-02-06 14:31:19 +01:00
2019-03-04 11:19:14 +01:00
2018-05-10 11:43:59 +02:00
2018-12-11 12:11:46 +01:00
2019-05-13 10:46:24 +02:00
2019-02-18 11:58:08 +05:30
2019-01-15 22:58:59 +01:00
2018-03-20 12:07:52 +01:00
2019-04-10 10:00:50 +02:00
2017-07-26 00:15:46 +02:00
2018-12-11 12:11:46 +01:00
2019-04-08 15:35:24 +05:30
2019-04-08 12:47:41 +02:00
2019-04-10 10:00:50 +02:00
2019-03-06 12:59:46 -08:00
2016-11-30 08:27:08 +01:00
2019-04-08 15:35:24 +05:30
2019-02-18 10:27:38 +05:30
2017-07-26 00:15:43 +02:00
2017-08-18 01:44:21 +02:00
2019-02-07 10:01:51 +05:30
2019-04-08 16:15:10 +05:30
2019-03-04 11:19:14 +01:00
2018-09-19 14:56:44 -07:00
2019-02-07 10:07:36 +05:30
2018-03-20 12:07:52 +01:00
2019-04-08 15:37:30 +05:30
2019-02-18 10:27:38 +05:30
2019-04-08 15:37:30 +05:30
2018-11-29 22:35:03 +01:00
2018-03-20 12:07:52 +01:00
2018-03-20 12:07:52 +01:00
2019-04-08 11:26:09 +02:00
2019-02-18 10:27:38 +05:30
2017-02-04 00:05:30 +01:00
2019-04-08 15:37:30 +05:30
2017-11-02 11:10:55 +01:00
2019-03-07 21:38:44 +01:00
2018-06-12 16:19:22 -07:00
2019-02-13 12:27:23 +01:00
2019-03-01 10:21:18 +01:00
2019-04-29 09:41:19 +02:00
2018-11-29 22:30:05 +01:00
2018-06-12 16:19:22 -07:00
2016-12-21 02:54:18 +01:00
2017-02-09 01:22:45 +01:00
2018-05-10 11:50:42 +02:00
2019-02-07 10:01:51 +05:30
2017-07-26 00:15:46 +02:00
2017-07-26 00:15:46 +02:00
2018-03-20 12:07:52 +01:00
2019-03-04 11:19:14 +01:00
2019-03-28 11:14:31 +01:00
2018-06-12 16:19:22 -07:00
2018-03-20 12:07:52 +01:00
2018-03-20 12:07:52 +01:00
2018-03-20 12:07:52 +01:00
2018-06-12 16:19:22 -07:00
2019-04-29 09:43:25 +02:00
2019-02-18 10:27:38 +05:30
2018-05-10 11:46:00 +02:00
2018-03-20 12:07:52 +01:00
2017-08-25 01:20:46 +02:00
2017-07-22 02:20:59 +02:00
2018-05-21 13:44:24 +02:00
2019-03-06 12:59:46 -08:00
2018-10-17 09:25:38 +02:00
2018-11-19 11:26:06 +01:00
2017-07-26 00:15:46 +02:00
2017-11-08 23:22:20 +01:00