From: Hyeonseong Gil Date: Thu, 12 May 2016 02:37:46 +0000 (+0900) Subject: thermal: exynos: Do not call set_cur_temp in case APL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=541a022cb42c0096d28913f9e0ee5f36b28f2db0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git thermal: exynos: Do not call set_cur_temp in case APL Change-Id: Ib91dca652d2732cf7722bd7d8a7b27dd2627ea8d Signed-off-by: Hyeonseong Gil --- 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);