drm/i915: Create a more generic pm handler for hsw+
authorBen Widawsky <ben@bwidawsk.net>
Wed, 29 May 2013 02:22:24 +0000 (19:22 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:54:15 +0000 (20:54 +0200)
commitbaf02a1fb0485b0cca8666241577b4ef87914d87
tree86ace15c55a03517c92befcd0d11aa7d512964d7
parent861f3389c6627460bcd19d1442eb650001f15c9b
drm/i915: Create a more generic pm handler for hsw+

HSW has some special requirements for the VEBOX. Splitting out the
interrupt handler will make the code a bit nicer and less error prone
when we begin to handle those.

The slight functional change in this patch (queueing work while holding
the spinlock) is intentional as it makes a subsequent patch a bit nicer.
The change should also only effect HSW platforms.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c