aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2011-05-10 19:30:36 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-19 15:31:59 +1000
commit3ee62d365b519c0c18c774049efcde84fe51c60c (patch)
tree7229d970675b0c5dff165d8597707ebc6e5798cc /arch/powerpc/include
parent9553361499f9f9e8ca8c9dae2e103f651fa48217 (diff)
downloadkernel_samsung_smdk4412-3ee62d365b519c0c18c774049efcde84fe51c60c.tar.gz
kernel_samsung_smdk4412-3ee62d365b519c0c18c774049efcde84fe51c60c.tar.bz2
kernel_samsung_smdk4412-3ee62d365b519c0c18c774049efcde84fe51c60c.zip
powerpc: Add virq_is_host to reduce virq_to_host usage
Some irq_host implementations are using virq_to_host to check if they are the irq_host for a virtual irq. To allow us to make space versus time tradeoffs, replace this usage with an assertive virq_is_host that confirms or denies the irq is associated with the given irq_host. Signed-off-by: Milton Miller <miltonm@bga.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/irq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h
index 6f4a3efb59a..a65d1702643 100644
--- a/arch/powerpc/include/asm/irq.h
+++ b/arch/powerpc/include/asm/irq.h
@@ -128,6 +128,7 @@ struct irq_host {
struct irq_data;
extern irq_hw_number_t irqd_to_hwirq(struct irq_data *d);
extern irq_hw_number_t virq_to_hw(unsigned int virq);
+extern bool virq_is_host(unsigned int virq, struct irq_host *host);
extern struct irq_host *virq_to_host(unsigned int virq);
/**