]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Wait for the struct_mutex on idling
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Apr 2019 09:44:04 +0000 (10:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Apr 2019 15:04:54 +0000 (16:04 +0100)
commit51b834dc0d5de11e2c43006d0439a1f2245f16f4
treed6bf4b4419ae6b8d0ec8b67df2644df29195d162
parent4704a6d516812715938f88bcb05637f4d6032613
drm/i915: Wait for the struct_mutex on idling

When the system is idling, contention for struct_mutex should be low and
so we will be more efficient to wait for a contended mutex than
reschedule.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190430094405.6127-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_pm.c