mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
xen: Provide a variant of xen_poll_irq with timeout.
The 'xen_poll_irq_timeout' provides a method to pass in the poll timeout for IRQs if requested. We also export those two poll functions as Xen PCI fronted uses them. Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Jeremy Fitzhardinge <[email protected]>
This commit is contained in:
parent
3a69e9165a
commit
d9a8814f27
2 changed files with 16 additions and 5 deletions
|
|
@ -53,6 +53,10 @@ bool xen_test_irq_pending(int irq);
|
|||
irq will be disabled so it won't deliver an interrupt. */
|
||||
void xen_poll_irq(int irq);
|
||||
|
||||
/* Poll waiting for an irq to become pending with a timeout. In the usual case,
|
||||
* the irq will be disabled so it won't deliver an interrupt. */
|
||||
void xen_poll_irq_timeout(int irq, u64 timeout);
|
||||
|
||||
/* Determine the IRQ which is bound to an event channel */
|
||||
unsigned irq_from_evtchn(unsigned int evtchn);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue