summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/Kconfig
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2019-03-12 18:33:49 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2019-04-29 15:45:01 +0100
commit12eade123e502ecaa3bf980eaa155201b9093a95 (patch)
tree6310174a0048b773ac6741c99783866a17b8860b /drivers/irqchip/Kconfig
parent1c73fac50d83274ebc221bc8d42b6477b3c82405 (diff)
downloadlinux-12eade123e502ecaa3bf980eaa155201b9093a95.tar.gz
linux-12eade123e502ecaa3bf980eaa155201b9093a95.tar.bz2
linux-12eade123e502ecaa3bf980eaa155201b9093a95.zip
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: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/Kconfig')
0 files changed, 0 insertions, 0 deletions