]> 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)
commita7c66bcdbf57e8cd007283af7c7f7a2b70bf1030
treebda808e8a9e1a3617f4252556629346f024ea083
parent4821542c4e0d0b08d0d2bcc0ab3e4bd614b6b4f6
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