OSDN Git Service

drm/i915/guc: Tidy ELSP port assignment
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 13:00:29 +0000 (13:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 16:09:51 +0000 (16:09 +0000)
commit8c5da3bbcfd9cf763623f2d9515ace8eb3f01307
tree2f677455b642e79944eb715086029bbb59b514e1
parentaa34a6fc2722f042e372741661c0fae8640245ac
drm/i915/guc: Tidy ELSP port assignment

Since we know that the port is empty, we do not need to extract the
count from the old request it and copy it over to the new request, or
attempt to unref the NULL old request pointer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171124130031.20761-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c