sh: intc: optimize intc IRQ lookup
authorPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jan 2012 08:41:55 +0000 (17:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jan 2012 08:41:55 +0000 (17:41 +0900)
commitb59f9f9775e643435bba76e30e59e47c19c56dee
tree55bc067e5d2da0fc01ef9808ded60d9234dde165
parent30377642138aadeef35a31c2f90dba0b6fa7b91a
sh: intc: optimize intc IRQ lookup

This ensures that the sense/prio lists are sorted at registration time,
enabling us to use a simple binary search for an optimized lookup
(something that had been on the TODO for some time).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc/chip.c
drivers/sh/intc/core.c
drivers/sh/intc/internals.h