From: Hyeonseong Gil Date: Wed, 17 Aug 2016 05:22:40 +0000 (+0900) Subject: [COMMON] thermal: samsung: Explicitly update temperature after resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4c6a44aeaf90b15efe334b4699b5d62250d6b50;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: Explicitly update temperature after resume Change-Id: I47bed03fd7d1bbf59006305f09cdf6ca3b7310e3 Signed-off-by: Hyeonseong Gil --- 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; }