From 697aafe93f59244d6f73cf46b941ffeb577a563c Mon Sep 17 00:00:00 2001 From: Weixin Zhou Date: Wed, 31 Mar 2021 09:47:14 +0800 Subject: [PATCH] MALI: bifrost: rk: do not use deferrable work for poweroff the poweroff work contains an operation to release the gpu wake_lock, sometimes, the deferrable work can cause the gpu wake_lock to be delayed for tens of seconds before release, the device can not into deepsleep, resulting in increased power consumption. Signed-off-by: Weixin Zhou Change-Id: I49aba25cfc000739f344420f818c91b382926e6e --- drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c b/drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c index e73ef450d135..ba5aaad67a06 100755 --- a/drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c +++ b/drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c @@ -117,7 +117,7 @@ static int kbase_platform_rk_init(struct kbase_device *kbdev) ret = -ENOMEM; goto err_wq; } - INIT_DEFERRABLE_WORK(&platform->work, rk_pm_power_off_delay_work); + INIT_DELAYED_WORK(&platform->work, rk_pm_power_off_delay_work); wake_lock_init(&platform->wake_lock, WAKE_LOCK_SUSPEND, "gpu");