Commit d4c045364d3107603187f21a56ec231e74d26441
Committed by
Jeremy Fitzhardinge
1 parent
6d02c42698
Exists in
master
and in
7 other branches
xen: add irq_from_evtchn
Given an evtchn, return the corresponding irq. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Showing 2 changed files with 9 additions and 0 deletions Side-by-side Diff
drivers/xen/events.c
... | ... | @@ -151,6 +151,12 @@ |
151 | 151 | return info_for_irq(irq)->evtchn; |
152 | 152 | } |
153 | 153 | |
154 | +unsigned irq_from_evtchn(unsigned int evtchn) | |
155 | +{ | |
156 | + return evtchn_to_irq[evtchn]; | |
157 | +} | |
158 | +EXPORT_SYMBOL_GPL(irq_from_evtchn); | |
159 | + | |
154 | 160 | static enum ipi_vector ipi_from_irq(unsigned irq) |
155 | 161 | { |
156 | 162 | struct irq_info *info = info_for_irq(irq); |
include/xen/events.h