summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-30 16:52:13 +1000
committerDave Airlie <airlied@redhat.com>2008-07-30 16:52:13 +1000
commit95c02743c96ca9e959f68a6e942206bdfadae53a (patch)
tree3c33d9ec25b86aa21023961818c9f7305297e5d7 /shared-core
parent02b09d271c60d13fbb738c7053429a3b816397db (diff)
i915: more version checks
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_irq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index 135d6159..d507d76e 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -443,16 +443,20 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
}
#ifdef __linux__
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
if (pipeb_stats & I915_LEGACY_BLC_EVENT_ENABLE)
opregion_asle_intr(dev);
#endif
+#endif
I915_WRITE(PIPEBSTAT, pipeb_stats);
}
#ifdef __linux__
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
if (iir & I915_ASLE_INTERRUPT)
opregion_asle_intr(dev);
#endif
+#endif
if (dev_priv->sarea_priv)
dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
@@ -675,8 +679,10 @@ void i915_enable_interrupt (struct drm_device *dev)
dev_priv->irq_enable_reg |= I915_USER_INTERRUPT;
#ifdef __linux__
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
opregion_enable_asle(dev);
#endif
+#endif
I915_WRITE(IER, dev_priv->irq_enable_reg);
dev_priv->irq_enabled = 1;