diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-15 09:17:41 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-23 07:05:27 +0200 |
commit | 6af257cde0c536f69872cd335f186c3fdaa5f26a (patch) | |
tree | d2c497d5408b8876d558120f2a010a066993f5aa | |
parent | 726a280deb03991f50c2ce1f7b815cf9cd0319ca (diff) | |
download | blackbird-op-linux-6af257cde0c536f69872cd335f186c3fdaa5f26a.tar.gz blackbird-op-linux-6af257cde0c536f69872cd335f186c3fdaa5f26a.zip |
drm/i915: PM irq enabling is generic on gen8, too
No need to list all the platforms explicitly.
The prefix is a bit inconsistent since we usually pick gen8_ for GT
related functions. But this anti-pattern is already established with snb,
so material for a different patch.
Cc: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 188fe04c4f8d..7d61ca2a01df 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1407,7 +1407,7 @@ static void gen6_pm_rps_work(struct work_struct *work) spin_lock_irq(&dev_priv->irq_lock); pm_iir = dev_priv->rps.pm_iir; dev_priv->rps.pm_iir = 0; - if (IS_BROADWELL(dev_priv->dev) || IS_CHERRYVIEW(dev_priv->dev)) + if (INTEL_INFO(dev_priv->dev)->gen >= 8) bdw_enable_pm_irq(dev_priv, dev_priv->pm_rps_events); else { /* Make sure not to corrupt PMIMR state used by ringbuffer */ |