drm/i915/execlists: Shortcircuit queue_prio() for no internal levels
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 May 2020 07:53:39 +0000 (08:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 May 2020 11:23:30 +0000 (12:23 +0100)
commit9ae6c4ef7b62e619f1c49dcc0ceb2b2de2a29f04
treed2c8f90a624d4dfb2bb7e331d29aaec66cc728cf
parent7c4541a37bbbf83c0f16f779e85eb61d9348ed29
drm/i915/execlists: Shortcircuit queue_prio() for no internal levels

If there are no internal levels and the user priority-shift is zero, we
can help the compiler eliminate some dead code:

Function                                     old     new   delta
start_timeslice                              169     154     -15
__execlists_submission_tasklet              4696    4659     -37

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/20200525075347.582-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c