[9810] thermal: replace clip_cpus with cpufreq_policy
authorEunseok Choi <es10.choi@samsung.com>
Mon, 22 Jan 2018 12:15:07 +0000 (21:15 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:22:24 +0000 (17:22 +0900)
Change-Id: I64723b569fec2e45e0d9d58b5e62d228aba86595
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/cpu_cooling.c
include/linux/cpu_cooling.h

index dab2d9ac76c06d5a9beadda5b49b886c12b7a2ed..9d8bb4cc1ab729dd6dabf95a61da8aa5235886bd 100644 (file)
@@ -1169,7 +1169,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
 EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);
 
 struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus)
+exynos_cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy)
 {
        struct thermal_zone_device *tz;
        void *gen_block;
@@ -1198,7 +1198,7 @@ exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *cl
        }
 
 regist:
-       return __cpufreq_cooling_register(np, clip_cpus, capacitance,
+       return __cpufreq_cooling_register(np, policy, capacitance,
                                NULL);
 }
 EXPORT_SYMBOL_GPL(exynos_cpufreq_cooling_register);
index 14f8dfbf1c763706c0667e55bcdb233a8cfbed6b..8efbdb7716c16fe6ab71d7dc40d0cd72d9b00c63 100644 (file)
@@ -103,7 +103,7 @@ of_cpufreq_power_cooling_register(struct device_node *np,
                                  get_static_t plat_static_func);
 
 struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus);
+exynos_cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy);
 
 #else
 static inline struct thermal_cooling_device *
@@ -123,7 +123,7 @@ of_cpufreq_power_cooling_register(struct device_node *np,
 }
 
 static inline struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus);
+exynos_cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy);
 {
        return NULL;
 }