drm/i915: Wrap i915_active in a simple kreffed struct
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Mar 2020 11:22:11 +0000 (11:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Mar 2020 17:20:34 +0000 (18:20 +0100)
commit229007e02d697b0662f85378aae53531b0dfea05
treeef42fcaa28cedf8c8511df5f15b61cef61d85a03
parentd75a92a81467933404547edf47ec63d58d7e2b2f
drm/i915: Wrap i915_active in a simple kreffed struct

For conveniences of callers that just want to use an i915_active to
track a wide array of concurrent timelines, wrap the base i915_active
struct inside a kref. This i915_active will self-destruct after use.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200327112212.16046-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c
drivers/gpu/drm/i915/i915_active.h