Skip to content

Commit 555ae37

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: submit: Remove pm_runtime_enabled() checks
Runtime PM is now universally available, make it mandatory by removing the pm_runtime_enabled() checks. Reviewed-by: Ulf Hansson <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 28b1622 commit 555ae37

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

drivers/gpu/drm/tegra/submit.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,8 @@ static void release_job(struct host1x_job *job)
504504
kfree(job_data->used_mappings);
505505
kfree(job_data);
506506

507-
if (pm_runtime_enabled(client->base.dev)) {
508-
pm_runtime_mark_last_busy(client->base.dev);
509-
pm_runtime_put_autosuspend(client->base.dev);
510-
}
507+
pm_runtime_mark_last_busy(client->base.dev);
508+
pm_runtime_put_autosuspend(client->base.dev);
511509
}
512510

513511
int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
@@ -591,12 +589,10 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
591589
}
592590

593591
/* Boot engine. */
594-
if (pm_runtime_enabled(context->client->base.dev)) {
595-
err = pm_runtime_resume_and_get(context->client->base.dev);
596-
if (err < 0) {
597-
SUBMIT_ERR(context, "could not power up engine: %d", err);
598-
goto unpin_job;
599-
}
592+
err = pm_runtime_resume_and_get(context->client->base.dev);
593+
if (err < 0) {
594+
SUBMIT_ERR(context, "could not power up engine: %d", err);
595+
goto unpin_job;
600596
}
601597

602598
job->user_data = job_data;

0 commit comments

Comments
 (0)