drm/i915: save/restore interrupt state
authorJesse Barnes <jbarnes@nietzche.virtuousgeek.org>
Tue, 19 Feb 2008 23:39:58 +0000 (09:39 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 19 Feb 2008 23:39:58 +0000 (09:39 +1000)
commit0da3ea12fc2607beb67c2d54d0347807ea615573
tree661fbfd1bd8e81481b45bdaebf72e1c1b00db470
parentca0b07d9a969c6561e5d6f69c861fbedf8d09e5d
drm/i915: save/restore interrupt state

On resume, if the interrupt state isn't restored correctly, we may end
up with a flood of unexpected or ill-timed interrupts, which could cause
the kernel to disable the interrupt or vblank events to happen at the
wrong time.  So save/restore them properly.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_drv.c
drivers/char/drm/i915_drv.h