LinuxKPI: Implement irq_work_sync() routine.
irq_work_sync() performs draining of irq_work task. Required by drm-kmod. Reviewed by: hselasky MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30818
This commit is contained in:
parent
1ab61a1932
commit
864b11007a
@ -64,4 +64,10 @@ irq_work_queue(struct irq_work *irqw)
|
|||||||
taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task);
|
taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
irq_work_sync(struct irq_work *irqw)
|
||||||
|
{
|
||||||
|
taskqueue_drain(linux_irq_work_tq, &irqw->irq_task);
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __LINUX_IRQ_WORK_H__ */
|
#endif /* __LINUX_IRQ_WORK_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user