Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2021 00:23:45 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 864b11007ab3 - main - LinuxKPI: Implement irq_work_sync() routine.
Message-ID:  <202107050023.1650NjRN022606@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=864b11007ab3de9f65f28b730507225396c38b9e

commit 864b11007ab3de9f65f28b730507225396c38b9e
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-07-05 00:20:06 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2021-07-05 00:20:06 +0000

    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
---
 sys/compat/linuxkpi/common/include/linux/irq_work.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h
index eb1798a4e450..1b376b829818 100644
--- a/sys/compat/linuxkpi/common/include/linux/irq_work.h
+++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h
@@ -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__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107050023.1650NjRN022606>