]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add a wakeref getter for iff the wakeref is already active
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jun 2019 15:45:47 +0000 (16:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jun 2019 17:01:01 +0000 (18:01 +0100)
commitde5147b8ce6d51f634661d7c531385371485cec6
treebda808e8a9e1a3617f4252556629346f024ea083
parent7d23e59376039d08728444cf05b2db6f7b86ff22
drm/i915: Add a wakeref getter for iff the wakeref is already active

For use in the next patch, we want to acquire a wakeref without having
to wake the device up -- i.e. only acquire the engine wakeref if the
engine is already active.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190626154549.10066-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_pm.h
drivers/gpu/drm/i915/intel_wakeref.h