drm/i915: Allow i915_sw_fence_await_sw_fence() to allocate
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 12:58:25 +0000 (13:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 19:53:42 +0000 (20:53 +0100)
commit7e941861c9c2aa69c0ef6665e2c0c1174c4a4b0e
treee47c92dadb324a0e9e2d4cd018c4804644b66aef
parentb52992c06c9020cecb1b9807855301e5f62ec968
drm/i915: Allow i915_sw_fence_await_sw_fence() to allocate

In forthcoming patches, we want to be able to dynamically allocate the
wait_queue_t used whilst awaiting. This is more convenient if we extend
the i915_sw_fence_await_sw_fence() to perform the allocation for us if
we pass in a gfp mask as an alternative than a preallocated struct.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_sw_fence.c
drivers/gpu/drm/i915/i915_sw_fence.h