diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-12-06 20:32:51 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2022-01-10 19:49:38 +0000 |
commit | 2e194c20c10ee7484d5b11361e1e8f59eb93efc1 (patch) | |
tree | 9f952e134675bcc9fdf574c8fa650480efc2d13a /sys/compat | |
parent | f3ddb82d9a99d36ea585d034ccbdea1dfc5b1def (diff) | |
download | src-2e194c20c10ee7484d5b11361e1e8f59eb93efc1.tar.gz src-2e194c20c10ee7484d5b11361e1e8f59eb93efc1.zip |
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
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/iopoll.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; \ |