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
This commit is contained in:
parent
f3ddb82d9a
commit
2e194c20c1
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user