[COMMON] thermal: samsung: Explicitly update temperature after resume
authorHyeonseong Gil <hs.gil@samsung.com>
Wed, 17 Aug 2016 05:22:40 +0000 (14:22 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:26 +0000 (17:13 +0900)
Change-Id: I47bed03fd7d1bbf59006305f09cdf6ca3b7310e3
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 78b46d4d4e6415f41a8a14e907c03484db86930b..dffdacd9393d61ebf44384c80048750eaf69da5b 100644 (file)
@@ -952,6 +952,12 @@ static int exynos_pm_notifier(struct notifier_block *notifier,
        case PM_POST_SUSPEND:
                mutex_lock(&thermal_suspend_lock);
                suspended = false;
+               list_for_each_entry(devnode, &dtm_dev_list, node) {
+                       cdev = devnode->cool_dev;
+
+                       if (cdev && cdev->ops->set_cur_temp && devnode->id != 1)
+                               cdev->ops->set_cur_temp(cdev, suspended, devnode->tzd->temperature / 1000);
+               }
                mutex_unlock(&thermal_suspend_lock);
                break;
        }