Skip to content

irqchip/gic-v3-its: free_lpi_range tweaks

Rasmus Villemoes lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4irqchip/gic-v3-its: fix comparison logic in lpi_range_cmpdrivers/irqchip/irq-gic-v3-its.c+1 -10 replies
2/4irqchip/gic-v3-its: move allocation outside mutexdrivers/irqchip/irq-gic-v3-its.c+6 -90 replies
3/4irqchip/gic-v3-its: drop redundant initialization in mk_lpi_rangedrivers/irqchip/irq-gic-v3-its.c+1 -20 replies
4/4irqchip/gic-v3-its: make free_lpi_range a little cheaperdrivers/irqchip/irq-gic-v3-its.c+31 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] irqchip/gic-v3-its: free_lpi_range tweaks

I noticed that the O(n log n) behaviour of free_lpi_range could easily be made O(n) (patch 4), though I don't suppose n is ever large enough to actually matter. While there, I also stumbled on two other micro-optimizations (2 and 3).

Then while writing the commit log for the last patch, I noticed that the cmp callback I was removing was actually buggy, so I went back and added a patch in front suitable for -stable. I'll leave it to others to decide if it's important enough for that.

Please note that this is only compile-tested.

Rasmus Villemoes (4):
irqchip/gic-v3-its: fix comparison logic in lpi_range_cmp irqchip/gic-v3-its: move allocation outside mutex irqchip/gic-v3-its: drop redundant initialization in mk_lpi_range irqchip/gic-v3-its: make free_lpi_range a little cheaper

 drivers/irqchip/irq-gic-v3-its.c | 75 +++++++++++++++-----------------
 1 file changed, 36 insertions(+), 39 deletions(-)
Signature · 1 line
2.20.1