drm/i915: get/put runtime PM at i915_semaphore_status
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 9 Jul 2014 17:31:57 +0000 (14:31 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Jul 2014 06:30:06 +0000 (08:30 +0200)
commit03872064f77f4beb61d1afc22adf62da47cf087b
tree2cb026394ae1f2b9409fb86746267fcedf7ff479
parent9ccd5aeb2901aaaabf77f185e2e5ea3a0b577e86
drm/i915: get/put runtime PM at i915_semaphore_status

Otherwise we will print some WARNs when we read registers and the
machine is suspended.

Testcase: igt/pm_rpm/debugfs-read
Cc: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c