[RFC 19/20] drm/xe: Remove unused runtime pm helper
Rodrigo Vivi
rodrigo.vivi at intel.com
Thu Dec 28 02:12:31 UTC 2023
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 e53ac5a2f4ad3..16ead90f3cab5 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -430,18 +430,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 fc82a1466453b..fa42a5ec89712 100644
--- a/drivers/gpu/drm/xe/xe_pm.h
+++ b/drivers/gpu/drm/xe/xe_pm.h
@@ -28,7 +28,6 @@ int xe_pm_runtime_resume(struct xe_device *xe);
bool xe_pm_runtime_resume_and_get(struct xe_device *xe);
void xe_pm_runtime_get(struct xe_device *xe);
int xe_pm_runtime_get_sync(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);
void xe_pm_runtime_put(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