mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user