From: Eunseok Choi Date: Mon, 22 Jan 2018 12:40:03 +0000 (+0900) Subject: Revert "[9810] thermal: samsung: register cpu hotplug done notifier" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fcc2c5f979dbe0f1567e81b51c0c6443dc8544f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "[9810] thermal: samsung: register cpu hotplug done notifier" This reverts commit 0bf4a0d9fc6722b9af8efa51d1b47ef051471b71. Change-Id: I252ea68d7a5d3a7a4761121eea6ab0637c06eb55 Signed-off-by: Eunseok Choi --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 1664042f4cb7..afca16b4d2d2 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -43,8 +43,6 @@ #include #include #include -#include -#include #include #include #ifdef CONFIG_EXYNOS_MCINFO @@ -851,26 +849,6 @@ static struct notifier_block exynos_tmu_pm_notifier = { }; #endif -static int thermal_cpu_hotplug_handler(struct notifier_block *b, unsigned long val, void *v) -{ - struct thermal_zone_device *tz; - struct exynos_tmu_data *devnode; - - list_for_each_entry(devnode, &dtm_dev_list, node) { - if (devnode->hotplug_enable) { - tz = devnode->tzd; - thermal_zone_device_update(tz, THERMAL_DEVICE_POWER_CAPABILITY_CHANGED); - break; - } - } - - return 0; -} - -static struct notifier_block thermal_cpu_hotplug_notifier = { - .notifier_call = thermal_cpu_hotplug_handler, -}; - static const struct of_device_id exynos_tmu_match[] = { { .compatible = "samsung,exynos9810-tmu", }, { /* sentinel */ }, @@ -1422,14 +1400,13 @@ static int exynos_tmu_probe(struct platform_device *pdev) * data->tzd must be registered before calling exynos_tmu_initialize(), * requesting irq and calling exynos_tmu_control(). */ - if (data->hotplug_enable) { + if(data->hotplug_enable) { pm_qos_add_request(&thermal_cpu_hotplug_request, PM_QOS_CPU_ONLINE_MAX, PM_QOS_CPU_ONLINE_MAX_DEFAULT_VALUE); pm_qos_add_request(&thermal_cpu_limit_request, PM_QOS_CLUSTER1_FREQ_MAX, PM_QOS_CPU_FREQ_MAX_DEFAULT_VALUE); - exynos_cpuhotplug_register_notifier(&thermal_cpu_hotplug_notifier, 0); } data->tzd = thermal_zone_of_sensor_register(&pdev->dev, 0, data,