[RFC 33/34] drm/xe: Remove unused runtime pm helper
Rodrigo Vivi
rodrigo.vivi at intel.com
Fri Jan 26 20:30:42 UTC 2024
Now that ongoing variants of mem_access is gone, this is not
needed anymore.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
drivers/gpu/drm/xe/xe_pm.c | 12 ------------
drivers/gpu/drm/xe/xe_pm.h | 1 -
2 files changed, 13 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index 8bec1f175c9d..e5b0455d2922 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -407,18 +407,6 @@ int xe_pm_runtime_get_sync(struct xe_device *xe)
return pm_runtime_get_sync(xe->drm.dev);
}
-/**
- * xe_pm_runtime_get_if_active - Get a runtime_pm reference if device active
- * @xe: xe device instance
- *
- * Returns: Any number grater than or equal to 0 for success, negative error
- * code otherwise.
- */
-int xe_pm_runtime_get_if_active(struct xe_device *xe)
-{
- return pm_runtime_get_if_active(xe->drm.dev, true);
-}
-
/**
* xe_pm_runtime_get_if_in_use - Get a runtime_pm reference and resume if needed
* @xe: xe device instance
diff --git a/drivers/gpu/drm/xe/xe_pm.h b/drivers/gpu/drm/xe/xe_pm.h
index 7d8cf87b95d2..0ae4f6a60c6d 100644
--- a/drivers/gpu/drm/xe/xe_pm.h
+++ b/drivers/gpu/drm/xe/xe_pm.h
@@ -29,7 +29,6 @@ int xe_pm_runtime_resume(struct xe_device *xe);
void xe_pm_runtime_get(struct xe_device *xe);
int xe_pm_runtime_get_sync(struct xe_device *xe);
void xe_pm_runtime_put(struct xe_device *xe);
-int xe_pm_runtime_get_if_active(struct xe_device *xe);
bool xe_pm_runtime_get_if_in_use(struct xe_device *xe);
bool xe_pm_runtime_resume_and_get(struct xe_device *xe);
void xe_pm_assert_unbounded_bridge(struct xe_device *xe);
--
2.43.0
More information about the Intel-xe
mailing list