drm/i915: Track the enabled PM interrupts in dev_priv.
authorDeepak S <deepak.s@linux.intel.com>
Sat, 15 Mar 2014 14:53:22 +0000 (20:23 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 28 Mar 2014 17:31:58 +0000 (18:31 +0100)
commita6706b45a57a23a613b34793e1414991b60a09c1
tree36b1707d2a687103de2ab8617313278fed9c5dff
parent4cc314893064dd3166708242dd0836ef47805d5c
drm/i915: Track the enabled PM interrupts in dev_priv.

When we use different rps events for different platforms or due to wa,
we might end up needing this logic in a lot of places. Instead of
this let's use a variable in dev_priv to track the enabled PM
interrupts.

v2: Initialize pm_rps_events in intel_irq_init() (Ville).

Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: Frob the commit message a bit since the English was a bit too
garbled ;-) ]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_pm.c