drm/i915: Refactor wakeup of the next breadcrumb waiter
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Mar 2017 17:14:22 +0000 (17:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Mar 2017 18:31:37 +0000 (18:31 +0000)
commitb66255f0f77902ef41b09163a6a092d2d905e151
tree87ac509fa2c22294a77045850cf9d4ceb47cded9
parent24754d751cb86f6069315d8d613e23afcab06c91
drm/i915: Refactor wakeup of the next breadcrumb waiter

Refactor the common task of updating the first_waiter, serialised with
the interrupt handler. When we update the first_waiter, we also need to
wakeup the new bottom-half in order to complete the actions that we may
have delegated to it (such as checking the irq-seqno coherency or waking
up other lower priority concurrent waiters).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170303171422.4735-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c