]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/i915: Tidy reporting busy status during i915_gem_retire_requests()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 27 Aug 2016 07:54:00 +0000 (08:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 27 Aug 2016 08:41:23 +0000 (09:41 +0100)
commitf6407193dd9d9e29fc94b7f6943c517cbee314bb
tree9f5949c06ffe4971e456bf36d35f67fb2955aadc
parentf7978a0c581a8a840a28306f8da43e06e7fef3bf
drm/i915: Tidy reporting busy status during i915_gem_retire_requests()

As we know by inspection whether any engine is still busy as we retire
all the requests, we can pass that information back via return value
rather than check again afterwards.

v2: A little more polish missed in patch splitting

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160827075401.16470-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c