drm/i915: Replace reset_wait_queue with default_wake_function
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 07:44:19 +0000 (07:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:51:02 +0000 (14:51 +0000)
commita49625f90662799426dd99daab97559ef620dce1
tree7c1e496a819c53ca011a87c23918bbb296741e79
parent591c0fb85d1c351d28334fb249bf1faaafcf326b
drm/i915: Replace reset_wait_queue with default_wake_function

If we change the wait_queue_t from using the autoremove_wake_function to
the default_wake_function, we no longer have to restore the wait_queue_t
entry on the wait_queue_head_t list after being woken up by it, as we
are unusual in sleeping multiple times on the same wait_queue_t.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-14-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c