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
This commit is contained in:
Jean-Sébastien Pédron 2023-01-11 01:27:40 +01:00
parent 976aa07a88
commit a609ed7959
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -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_ */