thermal: exynos: Do not call set_cur_temp in case APL
authorHyeonseong Gil <hs.gil@samsung.com>
Thu, 12 May 2016 02:37:46 +0000 (11:37 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:09:19 +0000 (17:09 +0900)
Change-Id: Ib91dca652d2732cf7722bd7d8a7b27dd2627ea8d
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index e7360b527ab99e4452c2ca34448fe6e665dd8e6a..41e12862ac45c7b7851f8666e71c5146b16311ce 100644 (file)
@@ -442,7 +442,7 @@ static int exynos_get_temp(void *p, int *temp)
 
        mutex_lock(&thermal_suspend_lock);
 
-       if (cdev->ops->set_cur_temp)
+       if (cdev->ops->set_cur_temp && data->id != 1)
                cdev->ops->set_cur_temp(cdev, suspended, *temp / 1000);
 
        mutex_unlock(&thermal_suspend_lock);
@@ -573,7 +573,7 @@ static int exynos_pm_notifier(struct notifier_block *notifier,
                list_for_each_entry(devnode, &dtm_dev_list, node) {
                        cdev = devnode->cool_dev;
 
-                       if (cdev && cdev->ops->set_cur_temp)
+                       if (cdev && cdev->ops->set_cur_temp && devnode->id != 1)
                                cdev->ops->set_cur_temp(cdev, suspended, 0);
                }
                mutex_unlock(&thermal_suspend_lock);