drm/i915: Use __ffs() in for_each_priolist for more compact code
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Feb 2019 10:24:04 +0000 (10:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Feb 2019 11:18:43 +0000 (11:18 +0000)
commitbd5d6781a0f1b9be8c26da78c0e3110e7481b45b
tree6d84917a37f091cd17c6811f2baa3348e4c831d3
parentd9948a10b90201d1aa91e5a96daa09f40f7bb282
drm/i915: Use __ffs() in for_each_priolist for more compact code

Gcc has a slight preference if we use __ffs() to subtract one from the
index once rather than each use:

__execlists_submission_tasklet              2867    2847     -20

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/20190226102404.29153-11-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.h