From 436c6359260c39bcf36582d6602c4c8dcd9c1df7 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 23 Apr 2019 14:51:07 +0800 Subject: [PATCH] soc: rockchip: system_monitor: Fix thermal_work empty when resume Change-Id: I784cf45bd4070fe040b20b424eccef8934775f92 Signed-off-by: Finley Xiao --- drivers/soc/rockchip/rockchip_system_monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/rockchip/rockchip_system_monitor.c b/drivers/soc/rockchip/rockchip_system_monitor.c index 3a88786e183b..9642219c209e 100644 --- a/drivers/soc/rockchip/rockchip_system_monitor.c +++ b/drivers/soc/rockchip/rockchip_system_monitor.c @@ -1248,7 +1248,8 @@ static int monitor_pm_notify(struct notifier_block *nb, case PM_POST_HIBERNATION: case PM_POST_RESTORE: case PM_POST_SUSPEND: - rockchip_system_monitor_thermal_update(); + if (system_monitor->tz) + rockchip_system_monitor_thermal_update(); atomic_set(&monitor_in_suspend, 0); break; default: