diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2017-03-15 17:43:00 +0200 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@intel.com> | 2017-03-16 12:28:28 +0200 |
commit | c5a0ad114b6a9f4ad03f30bd7c61994bc6e8ab52 (patch) | |
tree | e30d1155564a7a9ae2f827a4473cfdb9ee366220 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 135bafa551de3e7a8fff29e80a714b44d7dfd778 (diff) | |
download | lwn-c5a0ad114b6a9f4ad03f30bd7c61994bc6e8ab52.tar.gz lwn-c5a0ad114b6a9f4ad03f30bd7c61994bc6e8ab52.zip |
drm/i915: Return residency as microseconds
Change the granularity from milliseconds to microseconds
when returning rc6 residencies. This is in preparation
for increased resolution on some platforms.
v2: use 64bit div macro (Chris)
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9f4264a46113..0374e2e41681 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -3879,8 +3879,8 @@ void vlv_phy_reset_lanes(struct intel_encoder *encoder); int intel_gpu_freq(struct drm_i915_private *dev_priv, int val); int intel_freq_opcode(struct drm_i915_private *dev_priv, int val); -u32 intel_rc6_residency(struct drm_i915_private *dev_priv, - i915_reg_t reg); +u64 intel_rc6_residency_us(struct drm_i915_private *dev_priv, + const i915_reg_t reg); #define I915_READ8(reg) dev_priv->uncore.funcs.mmio_readb(dev_priv, (reg), true) #define I915_WRITE8(reg, val) dev_priv->uncore.funcs.mmio_writeb(dev_priv, (reg), (val), true) |