drm/i915: Mark up sysfs with rpm wakeref tracking
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 14:21:13 +0000 (14:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 16:18:07 +0000 (16:18 +0000)
commit48d1c812160712429c8eacbe7ca7d72c2d06ae26
tree0042e336d0fb1d928559b01b3c4bad836182f65a
parent183e260ba2467be4c790781af0eb8a834bda65a7
drm/i915: Mark up sysfs with rpm wakeref tracking

As sysfs has a simple pattern of taking a rpm wakeref around the user
access, we can track the local reference and drop it as soon as
possible.

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