Revert "[9810] thermal: samsung: register cpu hotplug done notifier"
authorEunseok Choi <es10.choi@samsung.com>
Mon, 22 Jan 2018 12:40:03 +0000 (21:40 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:22:21 +0000 (17:22 +0900)
This reverts commit 0bf4a0d9fc6722b9af8efa51d1b47ef051471b71.

Change-Id: I252ea68d7a5d3a7a4761121eea6ab0637c06eb55
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 1664042f4cb7371f087cfcf2a6bd4bf6aa64a625..afca16b4d2d2710bc1cc7c5d1c0442977e38c0cb 100644 (file)
@@ -43,8 +43,6 @@
 #include <linux/slab.h>
 #include <linux/debugfs.h>
 #include <linux/exynos-ss.h>
-#include <linux/soc/samsung/exynos-soc.h>
-#include <soc/samsung/exynos-cpu_hotplug.h>
 #include <soc/samsung/tmu.h>
 #include <soc/samsung/ect_parser.h>
 #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,