aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domain.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-12-19 16:04:49 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-12-19 16:04:49 +0000
commit2a80634d675bff85c06b684e4d2f0d65c4e7cbe9 (patch)
tree4e017905932ffd2ba377da30cf1bfc92a6e57b51 /xen/common/domain.c
parentf9e681d3d1b8fa4900acf5af588599d0892128d0 (diff)
downloadxen-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/common/domain.c')
-rw-r--r--xen/common/domain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/domain.c b/xen/common/domain.c
index 12c8e24e09..2f8ef0070f 100644
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -259,9 +259,9 @@ struct domain *domain_create(
atomic_inc(&d->pause_count);
if ( domid )
- d->nr_pirqs = nr_irqs_gsi + extra_domU_irqs;
+ d->nr_pirqs = nr_static_irqs + extra_domU_irqs;
else
- d->nr_pirqs = nr_irqs_gsi + extra_dom0_irqs;
+ d->nr_pirqs = nr_static_irqs + extra_dom0_irqs;
if ( d->nr_pirqs > nr_irqs )
d->nr_pirqs = nr_irqs;