Date: Sun, 24 Dec 2023 08:23:05 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: 66f9a98335dc - main - LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h Message-ID: <202312240823.3BO8N5Jg087041@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=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)); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312240823.3BO8N5Jg087041>