]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc73cd0341c71a1f083eedd2b6fdde3f45f4ec092
treee47c92dadb324a0e9e2d4cd018c4804644b66aef
parent34152c7b34590d6be49dc7b638904c7b08cc5218
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