git: 66f9a98335dc - main - LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Dec 2023 08:23:05 UTC
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=66f9a98335dcc2a3c1eead0d80ccc9fee12bbb31
commit 66f9a98335dcc2a3c1eead0d80ccc9fee12bbb31
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 08:19:59 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2023-12-24 08:19:59 +0000
LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h
On FreeBSD they are equal to non-irq version.
Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42803
---
sys/compat/linuxkpi/common/include/linux/xarray.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/xarray.h b/sys/compat/linuxkpi/common/include/linux/xarray.h
index e0a97a5b7871..d293a8f7c2a3 100644
--- a/sys/compat/linuxkpi/common/include/linux/xarray.h
+++ b/sys/compat/linuxkpi/common/include/linux/xarray.h
@@ -95,6 +95,9 @@ void *__xa_next(struct xarray *, unsigned long *, bool);
#define xa_erase_irq(xa, index) \
xa_erase((xa), (index))
+#define xa_lock_irq(xa) xa_lock(xa)
+#define xa_unlock_irq(xa) xa_unlock(xa)
+
#define xa_lock_irqsave(xa, flags) \
do { \
xa_lock((xa)); \