mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: Implement irq_work_sync() routine.
irq_work_sync() performs draining of irq_work task.
Required by drm-kmod.
Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D30818
(cherry picked from commit 864b11007a)
This commit is contained in:
parent
6ba3ceaeb5
commit
907f980064
1 changed files with 6 additions and 0 deletions
|
|
@ -64,4 +64,10 @@ irq_work_queue(struct irq_work *irqw)
|
|||
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__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue