lkml.org 
[lkml]   [2014]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/7] gpio: dwapb: use irq_linear_revmap() for the faster lookup
Date
According to irq_linear_revmap() comment, it is slightly faster compared
to irq_find_mapping() since we don't use a radix tree but a linear
mapping.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
drivers/gpio/gpio-dwapb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c
index 4d25a06b..541b893 100644
--- a/drivers/gpio/gpio-dwapb.c
+++ b/drivers/gpio/gpio-dwapb.c
@@ -92,7 +92,7 @@ static void dwapb_irq_handler(u32 irq, struct irq_desc *desc)

while (irq_status) {
int hwirq = fls(irq_status) - 1;
- int gpio_irq = irq_find_mapping(gpio->domain, hwirq);
+ int gpio_irq = irq_linear_revmap(gpio->domain, hwirq);

generic_handle_irq(gpio_irq);
irq_status &= ~BIT(hwirq);
--
1.9.1


\
 
 \ /
  Last update: 2014-03-22 18:01    [W:0.155 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site