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 <zwx@rock-chips.com>
Change-Id: I49aba25cfc000739f344420f818c91b382926e6e
This commit is contained in:
Weixin Zhou
2021-03-31 09:47:14 +08:00
committed by Tao Huang
parent 83b8211135
commit 697aafe93f

View File

@@ -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");