From: Eunseok Choi Date: Mon, 22 Jan 2018 12:15:07 +0000 (+0900) Subject: [9810] thermal: replace clip_cpus with cpufreq_policy X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f8386c15bb7d0045c55cc8a248dbd6e7c334891;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9810] thermal: replace clip_cpus with cpufreq_policy Change-Id: I64723b569fec2e45e0d9d58b5e62d228aba86595 Signed-off-by: Eunseok Choi --- diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index dab2d9ac76c0..9d8bb4cc1ab7 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -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); diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index 14f8dfbf1c76..8efbdb7716c1 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h @@ -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; }