diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-24 16:55:37 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-24 18:02:37 +0300 |
commit | 64b7a3fa7e3e629bc8cb56cef457c0e374303ed1 (patch) | |
tree | 21317518389ba638b5cdacc1795e904a1c556a51 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 16f2941ad3078cac9c9ad69f3205fe4619f49edf (diff) | |
download | linux-64b7a3fa7e3e629bc8cb56cef457c0e374303ed1.tar.xz |
drm/i915/gt: Use virtual_engine during execlists_dequeue
Rather than going back and forth between the rb_node entry and the
virtual_engine type, store the ve local and reuse it. As the
container_of conversion from rb_node to virtual_engine requires a
variable offset, performing that conversion just once shaves off a bit
of code.
v2: Keep a single virtual engine lookup, for typical use.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201224135544.1713-2-chris@chris-wilson.co.uk
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions