]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: merge HSW and SNB PM irq handlers
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 15 Aug 2013 14:51:32 +0000 (11:51 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Aug 2013 18:24:11 +0000 (20:24 +0200)
commit26b32d77b24692c495b70888b577fa5a746cf744
tree87933e4cd8230213fe65f110156ee91b74c849ea
parent55ed6de759f2641663fc01c2f25796179ae24455
drm/i915: merge HSW and SNB PM irq handlers

Because hsw_pm_irq_handler does exactly what gen6_rps_irq_handler does
and also processes the 2 additional VEBOX bits. So merge those
functions and wrap the VEBOX bits on a HAS_VEBOX check. This
check isn't really necessary since the bits are reserved on
SNB/IVB/VLV, but it's a good documentation on who uses them.

v2: - Change IS_HASWELL check to HAS_VEBOX

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c