summaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 20:50:00 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:07 +0200
commitd60458b224d6b997a582a05cb8c4b9bed9e17a1d (patch)
tree122710312c443069cb8e25a27032f09572550c45 /include/linux/irq.h
parent5aeecaf4908499b1fd006d313ccbacde6a6bac43 (diff)
downloadblackbird-op-linux-d60458b224d6b997a582a05cb8c4b9bed9e17a1d.tar.gz
blackbird-op-linux-d60458b224d6b997a582a05cb8c4b9bed9e17a1d.zip
irq: make irq_desc to use dyn_array
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 1d73d1abb834..5f4b013624dc 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -179,7 +179,11 @@ struct irq_desc {
const char *name;
} ____cacheline_internodealigned_in_smp;
+#ifdef CONFIG_HAVE_DYN_ARRAY
+extern struct irq_desc *irq_desc;
+#else
extern struct irq_desc irq_desc[NR_IRQS];
+#endif
/*
* Migration helpers for obsolete names, they will go away:
OpenPOWER on IntegriCloud