mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com> Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com> Signed-off-by: Maciej Falkowski <maciej.falkowski@linux.intel.com> Link: https://patch.msgid.link/20251027133956.393375-1-sakari.ailus@linux.intel.com
This commit is contained in:
committed by
Maciej Falkowski
parent
c063c1bbee
commit
c57e43231e
@@ -1114,6 +1114,5 @@ void ivpu_context_abort_work_fn(struct work_struct *work)
|
|||||||
mutex_unlock(&vdev->submitted_jobs_lock);
|
mutex_unlock(&vdev->submitted_jobs_lock);
|
||||||
|
|
||||||
runtime_put:
|
runtime_put:
|
||||||
pm_runtime_mark_last_busy(vdev->drm.dev);
|
|
||||||
pm_runtime_put_autosuspend(vdev->drm.dev);
|
pm_runtime_put_autosuspend(vdev->drm.dev);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,7 +359,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev)
|
|||||||
|
|
||||||
void ivpu_rpm_put(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);
|
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;
|
struct device *dev = vdev->drm.dev;
|
||||||
|
|
||||||
pm_runtime_allow(dev);
|
pm_runtime_allow(dev);
|
||||||
pm_runtime_mark_last_busy(dev);
|
|
||||||
pm_runtime_put_autosuspend(dev);
|
pm_runtime_put_autosuspend(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user