The branch main has been updated by dumbbell:

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

commit e5d57a886bbca01a02e75f3b63d41ebb667ff938
Author:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
AuthorDate: 2025-02-24 23:32:49 +0000
Commit:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
CommitDate: 2025-04-07 17:35:32 +0000

    linuxkpi: Add `queue_work_node()`
    
    This a variant of `queue_work()` that takes a NUMA node as its first
    argument.
    
    The NUMA node is ignored and `queue_work()` is called.
    
    The i915 DRM driver started to use this starting from Linux 6.8.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D49377
---
 sys/compat/linuxkpi/common/include/linux/workqueue.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/workqueue.h 
b/sys/compat/linuxkpi/common/include/linux/workqueue.h
index 1c9df9fcb74d..7e740f0f1dfc 100644
--- a/sys/compat/linuxkpi/common/include/linux/workqueue.h
+++ b/sys/compat/linuxkpi/common/include/linux/workqueue.h
@@ -258,4 +258,10 @@ extern struct work_struct *linux_current_work(void);
 extern bool linux_queue_rcu_work(struct workqueue_struct *wq, struct rcu_work 
*rwork);
 extern bool linux_flush_rcu_work(struct rcu_work *rwork);
 
+static inline bool
+queue_work_node(int node __unused, struct workqueue_struct *wq, struct 
work_struct *work)
+{
+       return (queue_work(wq, work));
+}
+
 #endif                                 /* _LINUXKPI_LINUX_WORKQUEUE_H_ */

Reply via email to