diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-04-29 14:29:37 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-04-30 14:05:03 +0200 |
commit | ecbb5fb7f7acee47e0b1a86132982545af806ed3 (patch) | |
tree | b7f5ce1a540c860b409b28d8430da3c55058e155 /drivers/gpu/drm/i915/intel_pm.c | |
parent | drm/i915: extract intel_runtime_pm.h from intel_drv.h (diff) | |
download | linux-ecbb5fb7f7acee47e0b1a86132982545af806ed3.tar.xz linux-ecbb5fb7f7acee47e0b1a86132982545af806ed3.zip |
drm/i915: move some leftovers to intel_pm.h from i915_drv.h
Commit 696173b064c6 ("drm/i915: extract intel_pm.h from intel_drv.h")
missed the declarations in i915_drv.h.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/770f5f1c2dd99e4d6a314b70184e71b928a6d362.1556540890.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index efae44d7f68b..3da7419d9800 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -9904,6 +9904,12 @@ u64 intel_rc6_residency_ns(struct drm_i915_private *dev_priv, return mul_u64_u32_div(time_hw, mul, div); } +u64 intel_rc6_residency_us(struct drm_i915_private *dev_priv, + i915_reg_t reg) +{ + return DIV_ROUND_UP_ULL(intel_rc6_residency_ns(dev_priv, reg), 1000); +} + u32 intel_get_cagf(struct drm_i915_private *dev_priv, u32 rpstat) { u32 cagf; |