From: Hyeonseong Gil Date: Fri, 21 Oct 2016 07:56:03 +0000 (+0900) Subject: [COMMON] thermal: samsung: Remove update cpufreq_state as 0. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=beb928c479dd27f39b3d9f5b99621d409f23f078;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: Remove update cpufreq_state as 0. Kernel 4.4, CPUFreq's policy will keep after hotplug in/out. So, we don't need to reset the last cooling state after hotplug in. Resolved migration conflicts from kernel 4.9 to 4.14. - rename cpufreq_device -> cpufreq_cdev Change-Id: I336ef6cec9444108c8c76ae8ea4cce0d2d239590 Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 628e6148e775..e3af8479ff5f 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -1198,7 +1198,6 @@ struct pm_qos_request thermal_cpu_hotplug_request; static int exynos_throttle_cpu_hotplug(void *p, int temp) { struct exynos_tmu_data *data = p; - struct cpufreq_cooling_device *cpufreq_cdev = (struct cpufreq_cooling_device *)data->cool_dev->devdata; int ret = 0; temp = temp / MCELSIUS; @@ -1212,7 +1211,6 @@ static int exynos_throttle_cpu_hotplug(void *p, int temp) pm_qos_update_request(&thermal_cpu_hotplug_request, NR_CPUS); is_cpu_hotplugged_out = false; - cpufreq_cdev->cpufreq_state = 0; } } else { if (temp >= data->hotplug_out_threshold) {