Viresh Kumar
4d753aa7b6
thermal: cpu_cooling: use cpufreq_policy to register cooling device
...
The CPU cooling driver uses the cpufreq policy, to get clip_cpus, the
frequency table, etc. Most of the callers of CPU cooling driver's
registration routines have the cpufreq policy with them, but they only
pass the policy->related_cpus cpumask. The __cpufreq_cooling_register()
routine then gets the policy by itself and uses it.
It would be much better if the callers can pass the policy instead
directly. This also fixes a basic design flaw, where the policy can be
freed while the CPU cooling driver is still active.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2017-05-27 17:32:24 -07:00
..
2016-12-21 02:52:52 +01:00
2016-07-07 00:14:27 +02:00
2016-05-05 01:40:04 +02:00
2017-05-27 17:32:24 -07:00
2016-05-05 01:40:04 +02:00
2014-04-07 14:31:33 +02:00
2015-12-28 01:51:36 +01:00
2017-02-09 01:22:44 +01:00
2017-02-09 01:22:46 +01:00
2016-10-21 15:11:23 +02:00
2016-11-16 23:15:56 +01:00
2016-04-02 01:09:01 +02:00
2017-03-02 08:42:30 +01:00
2017-03-02 08:42:30 +01:00
2017-03-02 08:42:30 +01:00
2016-06-09 00:58:06 +02:00
2016-06-02 23:24:15 +02:00
2016-06-02 23:24:15 +02:00
2017-02-20 17:41:31 -08:00
2016-06-02 23:24:15 +02:00
2017-02-09 22:59:00 +01:00
2017-05-27 17:32:24 -07:00
2016-09-13 02:39:12 +02:00
2016-04-09 01:35:18 +02:00
2017-04-13 03:38:44 +02:00
2014-04-07 14:43:50 +02:00
2014-04-07 14:43:50 +02:00
2017-01-02 15:02:51 +05:30
2017-05-27 17:32:24 -07:00
2016-04-27 22:42:34 +02:00
2016-04-09 01:35:18 +02:00
2017-01-30 09:22:21 +01:00
2016-07-07 00:13:20 +02:00
2015-06-15 15:46:15 +02:00
2014-10-21 11:21:19 -07:00
2017-04-15 12:20:55 +02:00
2017-04-19 23:22:01 +02:00
2017-04-17 18:37:27 +02:00
2017-02-09 14:33:01 +01:00
2017-04-19 23:23:08 +02:00
2015-03-18 22:35:16 +01:00
2016-11-30 08:27:08 +01:00
2016-09-26 15:10:58 +02:00
2016-05-16 19:17:22 -07:00
2013-07-14 19:36:57 -04:00
2013-10-16 00:50:23 +02:00
2016-05-13 14:02:08 +02:00
2017-04-12 13:52:21 +02:00
2017-04-19 23:23:08 +02:00
2016-04-09 01:35:18 +02:00
2017-05-27 17:32:24 -07:00
2016-06-13 23:49:43 +02:00
2017-01-30 09:22:21 +01:00
2016-04-09 01:35:18 +02:00
2014-04-30 00:06:21 +02:00
2016-07-22 23:51:06 +02:00
2016-05-20 10:12:41 -07:00
2016-04-09 01:35:18 +02:00
2016-04-09 01:35:18 +02:00
2016-04-09 01:35:18 +02:00
2011-05-19 18:51:07 -04:00
2017-05-08 17:15:14 -07:00
2014-05-17 01:27:01 +02:00
2017-02-03 23:59:41 +01:00
2013-04-10 13:19:26 +02:00
2017-02-04 00:05:30 +01:00
2014-04-30 00:06:21 +02:00
2016-04-27 22:42:34 +02:00
2016-04-09 01:35:18 +02:00
2014-03-12 01:06:00 +01:00
2017-05-27 17:32:24 -07:00
2016-04-09 01:35:18 +02:00
2016-06-09 00:58:06 +02:00
2016-12-21 02:54:18 +01:00
2014-07-19 04:24:59 +09:00
2016-04-09 01:35:18 +02:00
2017-02-09 01:22:45 +01:00
2016-04-09 01:35:18 +02:00
2016-08-01 18:36:01 -04:00
2014-01-06 14:17:25 +01:00
2016-08-23 10:25:17 +01:00
2016-04-09 01:35:18 +02:00
2016-08-18 03:42:32 +02:00
2015-09-01 15:51:15 +02:00
2017-04-15 12:20:55 +02:00
2017-04-15 12:20:56 +02:00
2017-04-15 12:20:55 +02:00
2014-10-20 16:20:24 +02:00
2016-04-09 01:35:18 +02:00
2016-04-09 01:35:18 +02:00
2016-04-09 01:35:18 +02:00
2011-05-19 18:51:07 -04:00
2017-04-20 12:02:32 +01:00
2017-05-08 17:15:13 -07:00
2015-09-26 03:00:57 +02:00
2016-04-09 01:12:09 +02:00
2017-04-19 23:23:08 +02:00
2017-02-16 00:58:52 +01:00
2014-04-21 23:42:27 +02:00
2016-05-05 01:40:04 +02:00