]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip unused fw_domains
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:19:41 +0000 (10:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:22:02 +0000 (10:22 +0000)
commitd860c9532482ea908b3c7f5c430af019bf0e3c97
treeaf5395d75f8cc5e89ddb16fc5d336eebc5e94a08
parent7946e269e3eda6f0db9895c48bb2a2efdd2930ca
drm/i915: Skip unused fw_domains

Use find-first-set bitop to quickly scan through the fw_domains mask and
skip iterating over unused domains.

v2: Move the WARN into the caller, to prevent compiler warnings in
normal builds.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323101944.21627-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c