OSDN Git Service

drm/i915/hotplug: Track temporary rpm wakeref
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 14:21:20 +0000 (14:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 16:18:18 +0000 (16:18 +0000)
commit6a712a20bff467e82c3507c4286f04499af1c52d
tree4da2de8c9a01596fe72e678fa1ab23a8bf5a3266
parent1d264d91befc3131e68edc225fa49acb2f315f73
drm/i915/hotplug: Track temporary rpm wakeref

Keep track of the temporary rpm wakeref inside hotplug detection, so
that we can cancel it immediately upon release and so clearly identify
leaks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190114142129.24398-12-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_hotplug.c