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 <hs.gil@samsung.com>
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;
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) {