|
@@ -26,6 +26,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/cpufreq.h>
|
|
#include <linux/cpufreq.h>
|
|
|
|
+#include <linux/pm_runtime.h>
|
|
#include <drm/drm_plane_helper.h>
|
|
#include <drm/drm_plane_helper.h>
|
|
#include "i915_drv.h"
|
|
#include "i915_drv.h"
|
|
#include "intel_drv.h"
|
|
#include "intel_drv.h"
|
|
@@ -8181,7 +8182,7 @@ void intel_init_gt_powersave(struct drm_i915_private *dev_priv)
|
|
*/
|
|
*/
|
|
if (!sanitize_rc6(dev_priv)) {
|
|
if (!sanitize_rc6(dev_priv)) {
|
|
DRM_INFO("RC6 disabled, disabling runtime PM support\n");
|
|
DRM_INFO("RC6 disabled, disabling runtime PM support\n");
|
|
- intel_runtime_pm_get(dev_priv);
|
|
|
|
|
|
+ pm_runtime_get(&dev_priv->drm.pdev->dev);
|
|
}
|
|
}
|
|
|
|
|
|
mutex_lock(&dev_priv->pcu_lock);
|
|
mutex_lock(&dev_priv->pcu_lock);
|
|
@@ -8233,7 +8234,7 @@ void intel_cleanup_gt_powersave(struct drm_i915_private *dev_priv)
|
|
valleyview_cleanup_gt_powersave(dev_priv);
|
|
valleyview_cleanup_gt_powersave(dev_priv);
|
|
|
|
|
|
if (!HAS_RC6(dev_priv))
|
|
if (!HAS_RC6(dev_priv))
|
|
- intel_runtime_pm_put(dev_priv);
|
|
|
|
|
|
+ pm_runtime_put(&dev_priv->drm.pdev->dev);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|