Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145833
b: refs/heads/master
c: d4c0453
h: refs/heads/master
i:
  145831: 8b66fec
v: v3
  • Loading branch information
Ian Campbell authored and Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 07a5e84 commit 82cfd6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d02c42698f99eccb290ac53d4f10ca883b9f90c
refs/heads/master: d4c045364d3107603187f21a56ec231e74d26441
6 changes: 6 additions & 0 deletions trunk/drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ static unsigned int evtchn_from_irq(unsigned irq)
return info_for_irq(irq)->evtchn;
}

unsigned irq_from_evtchn(unsigned int evtchn)
{
return evtchn_to_irq[evtchn];
}
EXPORT_SYMBOL_GPL(irq_from_evtchn);

static enum ipi_vector ipi_from_irq(unsigned irq)
{
struct irq_info *info = info_for_irq(irq);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/xen/events.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ bool xen_test_irq_pending(int irq);
irq will be disabled so it won't deliver an interrupt. */
void xen_poll_irq(int irq);

/* Determine the IRQ which is bound to an event channel */
unsigned irq_from_evtchn(unsigned int evtchn);

#endif /* _XEN_EVENTS_H */

0 comments on commit 82cfd6f

Please sign in to comment.