drm/i915/pmu: Track rpm wakeref
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 14:21:16 +0000 (14:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 16:18:11 +0000 (16:18 +0000)
commit00e27cbe4c8960b79324ccd48a6077e251e42bd7
treef88461be27f44484af3fbd9d83e536ad7909ea21
parent6619c0075f784d7720fc9810279c956d51b22aaf
drm/i915/pmu: Track rpm wakeref

Track the wakeref used for temporary access to the device, and discard
it upon release so that leaks can be identified.

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-8-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pmu.c