From 541a022cb42c0096d28913f9e0ee5f36b28f2db0 Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Thu, 12 May 2016 11:37:46 +0900 Subject: [PATCH] thermal: exynos: Do not call set_cur_temp in case APL Change-Id: Ib91dca652d2732cf7722bd7d8a7b27dd2627ea8d Signed-off-by: Hyeonseong Gil --- drivers/thermal/samsung/exynos_tmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index e7360b527ab9..41e12862ac45 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -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); -- 2.20.1