diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-10 11:08:07 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:48:37 -0500 |
commit | f4d0635bf8894b7ba43d7a54733f3e26fe6ced2e (patch) | |
tree | 5f55817bb87ef63694e6ee7cc967ad4dfba3324c /drivers/xen | |
parent | 0a85226ff291a59b2d6596b28bbc4fe368ee5266 (diff) |
xen: events: refactor GSI pirq bindings functions
Following the example set by xen_allocate_pirq_msi and
xen_bind_pirq_msi_to_irq:
xen_allocate_pirq becomes xen_allocate_pirq_gsi and now only allocates
a pirq number and does not bind it.
xen_map_pirq_gsi becomes xen_bind_pirq_gsi_to_irq and binds an
existing pirq.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index e828456777e5..a40b2a1c6255 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -568,9 +568,9 @@ static int find_irq_by_gsi(unsigned gsi) | |||
568 | return -1; | 568 | return -1; |
569 | } | 569 | } |
570 | 570 | ||
571 | int xen_allocate_pirq(unsigned gsi, int shareable, char *name) | 571 | int xen_allocate_pirq_gsi(unsigned gsi) |
572 | { | 572 | { |
573 | return xen_map_pirq_gsi(gsi, gsi, shareable, name); | 573 | return gsi; |
574 | } | 574 | } |
575 | 575 | ||
576 | /* | 576 | /* |
@@ -580,7 +580,8 @@ int xen_allocate_pirq(unsigned gsi, int shareable, char *name) | |||
580 | * Note: We don't assign an event channel until the irq actually started | 580 | * Note: We don't assign an event channel until the irq actually started |
581 | * up. Return an existing irq if we've already got one for the gsi. | 581 | * up. Return an existing irq if we've already got one for the gsi. |
582 | */ | 582 | */ |
583 | int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name) | 583 | int xen_bind_pirq_gsi_to_irq(unsigned gsi, |
584 | unsigned pirq, int shareable, char *name) | ||
584 | { | 585 | { |
585 | int irq = -1; | 586 | int irq = -1; |
586 | struct physdev_irq irq_op; | 587 | struct physdev_irq irq_op; |