diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-01-11 00:27:40 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-16 11:55:11 +0000 |
commit | 78c7537d56362d7db2fe2ec9f27faf331e88a20b (patch) | |
tree | 1bef9a84f8320c7554a86303c7009c22967b2719 | |
parent | 76bad151d180267578542aeb0be3702405cf166d (diff) | |
download | src-78c7537d56362d7db2fe2ec9f27faf331e88a20b.tar.gz src-78c7537d56362d7db2fe2ec9f27faf331e88a20b.zip |
linuxkpi: Define `synchronize_hardirq()`
It currently does the same as `synchronize_irq()`.
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38079
(cherry picked from commit a609ed795943673074b71aeafafabe46d08f1a6d)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/hardirq.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/hardirq.h b/sys/compat/linuxkpi/common/include/linux/hardirq.h index 07f00f076860..9e7baec1b213 100644 --- a/sys/compat/linuxkpi/common/include/linux/hardirq.h +++ b/sys/compat/linuxkpi/common/include/linux/hardirq.h @@ -40,4 +40,14 @@ #define synchronize_irq(irq) _intr_drain((irq)) +/* + * FIXME: In the i915 driver's `intel_engine_cs.c` file, + * `synchronize_hardirq()` was replaced by `synchronize_rcu()` with the + * following comment: + * "Is it enough to wait that all cpu have context-switched?" + * + * See commit f6d50b7af554e21c380486d6f41c8537b265c777 in drm-kmod. + */ +#define synchronize_hardirq(irq) _intr_drain((irq)) + #endif /* _LINUXKPI_LINUX_HARDIRQ_H_ */ |