Skip to content
Commit 12eade12 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Marc Zyngier
Browse files

irqchip/gic-v3-its: Make free_lpi_range a little cheaper



Using list_add + list_sort to insert an element and keeping the list
sorted is a somewhat blunt instrument; one can find the right place to
insert in fewer lines of code than the cmp callback uses. Moreover,
walking the entire list afterwards to merge adjacent ranges is
overkill, since we know that only the just-inserted element may be
merged with its neighbours.

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 1c73fac5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment