irqdomain: make irq_linear_revmap() a fast path again
authorGrant Likely <grant.likely@linaro.org>
Mon, 10 Jun 2013 11:19:17 +0000 (12:19 +0100)
committerGrant Likely <grant.likely@linaro.org>
Mon, 24 Jun 2013 13:02:41 +0000 (14:02 +0100)
commitd3dcb436f61593843af178d4a520c8c43c04d3fc
tree1c2f64841936402a5d01ed923abd427f311a0e7a
parent56a3d5ac774d054ece9373277a861338a468a294
irqdomain: make irq_linear_revmap() a fast path again

Over the years, irq_linear_revmap() gained tests and checks to make sure
callers were using it safely, which while important, also make it less
of a fast path. After the irqdomain refactoring done recently, it is now
possible to make irq_linear_revmap() a fast path again. This patch moves
irq_linear_revmap() to the header file and makes it a static inline so
that interrupt controller drivers using a linear mapping can decode the
virq from a hwirq in just a couple of instructions.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
include/linux/irqdomain.h
kernel/irq/irqdomain.c