]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: optimize ilk/snb irq handler
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 30 Nov 2012 10:24:50 +0000 (11:24 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 30 Nov 2012 18:06:33 +0000 (19:06 +0100)
commitd39f31cb8f4ef34283a34a066c221c605b1b0e1d
treefe310c1485fbf25a5c36853817e50bee94411edb
parent04369c2269b3d6eb904f409a0232e5c53fc00799
drm/i915: optimize ilk/snb irq handler

We only need to read/write the south interrupt register if the
corresponding bit is set in the north master interrupt register.
Noticed while reading our interrupt handling code.

Same optimization has already been applied on ivb in

commit a9ca4e5632eb17c895d84cc777a7cb52c7d1e984
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed May 9 21:45:44 2012 +0100

    drm/i915: Simplify interrupt processing for IvyBridge

    We can take advantage that the PCH_IIR is a subordinate register to
    reduce one of the required IIR reads, and that we only need to clear
    interrupts handled to reduce the writes. And by simply tidying the code
    we can reduce the line count and hopefully make it more readable.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c