accel/ivpu: Remove redundant pm_runtime_mark_last_busy() calls
PATCH 1/1 accel/ivpu: Remove redundant pm_runtime_mark_last_busy() calls
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy().
--- drivers/accel/ivpu/ivpu_job.c | 1 - drivers/accel/ivpu/ivpu_pm.c | 2 -- 2 files changed, 3 deletions(-)
drivers/accel/ivpu/ivpu_job.c +0 -1
@@ -1114,6 +1114,5 @@ void ivpu_context_abort_work_fn(struct work_struct *work)mutex_unlock (&vdev->submitted_jobs_lock); runtime_put: -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }
drivers/accel/ivpu/ivpu_pm.c +0 -2
@@ -359,7 +359,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev)void ivpu_rpm_put (struct ivpu_device *vdev) { -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }
@@ -428,7 +427,6 @@ void ivpu_pm_enable(struct ivpu_device *vdev)struct device *dev = vdev->drm.dev;pm_runtime_allow (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev); }
Signature · 1 line
2.47.3
Quoted 36 lines · Sakari Ailus
pm_runtime_put_autosuspend(),pm_runtime_put_sync_autosuspend(),pm_runtime_autosuspend()andpm_request_autosuspend()now include a call topm_runtime_mark_last_busy(). Remove the now-reduntant explicit call topm_runtime_mark_last_busy().Signed-off-by Sakari Ailus <[email protected]>Reviewed-by Jacek Lawrynowicz <[email protected]>--- drivers/accel/ivpu/ivpu_job.c | 1 - drivers/accel/ivpu/ivpu_pm.c | 2 -- 2 files changed, 3 deletions(-)drivers/accel/ivpu/ivpu_job.c +0
-1@@ -1114,6 +1114,5 @@ void ivpu_context_abort_work_fn(struct work_struct *work)mutex_unlock (&vdev->submitted_jobs_lock); runtime_put: -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }drivers/accel/ivpu/ivpu_pm.c +0
-1@@ -359,7 +359,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev)void ivpu_rpm_put (struct ivpu_device *vdev) { -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }
drivers/accel/ivpu/ivpu_pm.c void ivpu_pm_enable(struct ivpu_device *vdev) · line 431
Quoted 6 lines
drivers/accel/ivpu/ivpu_pm.c +0
-1@@ -428,7 +427,6 @@ void ivpu_pm_enable(struct ivpu_device *vdev)struct device *dev = vdev->drm.dev;pm_runtime_allow (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev); }
Quoted 1 line
You didn't mentioned it is resend so I was a bit surprised the patch has rev-by already from Jacek but I confirm it was given in the old thread.
Thanks,
Maciej
Quoted 43 lines · Sakari Ailus
pm_runtime_put_autosuspend(),pm_runtime_put_sync_autosuspend(),pm_runtime_autosuspend()andpm_request_autosuspend()now include a call topm_runtime_mark_last_busy(). Remove the now-reduntant explicit call topm_runtime_mark_last_busy().Signed-off-by Sakari Ailus <[email protected]>Reviewed-by Jacek Lawrynowicz <[email protected]>--- drivers/accel/ivpu/ivpu_job.c | 1 - drivers/accel/ivpu/ivpu_pm.c | 2 -- 2 files changed, 3 deletions(-)drivers/accel/ivpu/ivpu_job.c +0
-1@@ -1114,6 +1114,5 @@ void ivpu_context_abort_work_fn(struct work_struct *work)mutex_unlock (&vdev->submitted_jobs_lock); runtime_put: -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }drivers/accel/ivpu/ivpu_pm.c +0
-2@@ -359,7 +359,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev)void ivpu_rpm_put (struct ivpu_device *vdev) { -pm_runtime_mark_last_busy (vdev->drm.dev);pm_runtime_put_autosuspend (vdev->drm.dev); }@@ -428,7 +427,6 @@ void ivpu_pm_enable(struct ivpu_device *vdev)struct device *dev = vdev->drm.dev;pm_runtime_allow (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev); }