diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-24 14:20:12 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 11:17:55 -0400 |
commit | e6197acc726ab3baa60375a5891d58c2ee87e0f3 (patch) | |
tree | 8403be98a0c6a3e2e845c30a4a028be2391a20e7 /drivers/xen | |
parent | c7c2c3a28657cfdcef50c02b18ccca3761209e17 (diff) |
xen/irq: Export 'xen_pirq_from_irq' function.
We need this to find the real Xen PIRQ value for a device
that requests an MSI or MSI-X. In the past we used
'xen_gsi_from_irq' since that function would return
an Xen PIRQ or GSI depending on the provided IRQ. Now that
we have seperated that we need to use the correct
function.
[v2: Deal with rebase on stable/irq.cleanup]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 0ac7a149e7f2..e4e8e9a745bf 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -763,6 +763,12 @@ out: | |||
763 | return irq; | 763 | return irq; |
764 | } | 764 | } |
765 | 765 | ||
766 | |||
767 | int xen_pirq_from_irq(unsigned irq) | ||
768 | { | ||
769 | return pirq_from_irq(irq); | ||
770 | } | ||
771 | EXPORT_SYMBOL_GPL(xen_pirq_from_irq); | ||
766 | int bind_evtchn_to_irq(unsigned int evtchn) | 772 | int bind_evtchn_to_irq(unsigned int evtchn) |
767 | { | 773 | { |
768 | int irq; | 774 | int irq; |