aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/events.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-10 11:08:04 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-10 14:48:33 -0500
commit653378acdd477a299f468e396c7719911ac57881 (patch)
tree1a0840e9fb0eaef25fd4b16fedef49445cf9186e /drivers/xen/events.c
parentbe49472f0460455e8e0d9e6593837e09cbcc9ad7 (diff)
xen: events: simplify comment
It is never valid assume any particular relationship between a Xen PIRQ number and and Linux IRQ number so there is no need to hedge when saying so. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r--drivers/xen/events.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 684b0950538..0b27080b191 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -583,13 +583,9 @@ int xen_allocate_pirq(unsigned gsi, int shareable, char *name)
583 return xen_map_pirq_gsi(gsi, gsi, shareable, name); 583 return xen_map_pirq_gsi(gsi, gsi, shareable, name);
584} 584}
585 585
586/* xen_map_pirq_gsi might allocate irqs from the top down, as a 586/*
587 * consequence don't assume that the irq number returned has a low value 587 * Do not make any assumptions regarding the relationship between the
588 * or can be used as a pirq number unless you know otherwise. 588 * IRQ number returned here and the Xen pirq argument.
589 *
590 * One notable exception is when xen_map_pirq_gsi is called passing an
591 * hardware gsi as argument, in that case the irq number returned
592 * matches the gsi number passed as second argument.
593 * 589 *
594 * Note: We don't assign an event channel until the irq actually started 590 * Note: We don't assign an event channel until the irq actually started
595 * up. Return an existing irq if we've already got one for the gsi. 591 * up. Return an existing irq if we've already got one for the gsi.