From f4c6a44aeaf90b15efe334b4699b5d62250d6b50 Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Wed, 17 Aug 2016 14:22:40 +0900 Subject: [PATCH] [COMMON] thermal: samsung: Explicitly update temperature after resume Change-Id: I47bed03fd7d1bbf59006305f09cdf6ca3b7310e3 Signed-off-by: Hyeonseong Gil --- drivers/thermal/samsung/exynos_tmu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 78b46d4d4e64..dffdacd9393d 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -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; } -- 2.20.1