diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-12-19 16:04:49 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-12-19 16:04:49 +0000 |
commit | 2a80634d675bff85c06b684e4d2f0d65c4e7cbe9 (patch) | |
tree | 4e017905932ffd2ba377da30cf1bfc92a6e57b51 /xen/include/asm-arm/irq.h | |
parent | f9e681d3d1b8fa4900acf5af588599d0892128d0 (diff) | |
download | xen-2a80634d675bff85c06b684e4d2f0d65c4e7cbe9.tar.gz xen-2a80634d675bff85c06b684e4d2f0d65c4e7cbe9.tar.bz2 xen-2a80634d675bff85c06b684e4d2f0d65c4e7cbe9.zip |
xen: remove nr_irqs_gsi from generic code
The concept is X86 specific.
AFAICT the generic concept here is the number of static physical IRQs
which the current hardware has, so call this nr_static_irqs.
Also using "defined NR_IRQS" as a standin for x86 might have made
sense at one point but its just cleaner to push the necessary
definitions into asm/irq.h.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm/irq.h')
-rw-r--r-- | xen/include/asm-arm/irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-arm/irq.h b/xen/include/asm-arm/irq.h index abde83951f..bd6b54a3b9 100644 --- a/xen/include/asm-arm/irq.h +++ b/xen/include/asm-arm/irq.h @@ -21,6 +21,9 @@ struct irq_cfg { #define NR_IRQS 1024 #define nr_irqs NR_IRQS +#define nr_irqs NR_IRQS +#define nr_static_irqs NR_IRQS + struct irq_desc; struct irq_desc *__irq_to_desc(int irq); |