git: 272f8b9c280b - stable/13 - LinuxKPI: Add readx_poll_timeout wrapper
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jan 2022 19:36:35 UTC
The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=272f8b9c280b1e3d554cf62091ed113e1a932eb3 commit 272f8b9c280b1e3d554cf62091ed113e1a932eb3 Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2021-12-06 20:32:51 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-01-22 19:34:37 +0000 LinuxKPI: Add readx_poll_timeout wrapper Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33307 (cherry picked from commit 2e194c20c10ee7484d5b11361e1e8f59eb93efc1) --- sys/compat/linuxkpi/common/include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/iopoll.h b/sys/compat/linuxkpi/common/include/linux/iopoll.h index ea876042eab6..e6a3dbc23a01 100644 --- a/sys/compat/linuxkpi/common/include/linux/iopoll.h +++ b/sys/compat/linuxkpi/common/include/linux/iopoll.h @@ -61,6 +61,9 @@ (_cond) ? 0 : (-ETIMEDOUT); \ }) +#define readx_poll_timeout(_pollfp, _addr, _var, _cond, _us, _to) \ + read_poll_timeout(_pollfp, _var, _cond, _us, _to, false, _addr) + #define read_poll_timeout_atomic(_pollfp, _var, _cond, _us, _to, _early_sleep, ...) \ ({ \ struct timeval __now, __end; \