Implement wait_on_bit() function macro in the LinuxKPI.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
This commit is contained in:
Hans Petter Selasky 2018-03-02 08:56:15 +00:00
parent 9555cfd2b2
commit d901abf167

View File

@ -249,6 +249,8 @@ void linux_wake_up_atomic_t(atomic_t *);
int linux_wait_on_atomic_t(atomic_t *, unsigned int);
#define wake_up_bit(word, bit) linux_wake_up_bit(word, bit)
#define wait_on_bit(word, bit, state) \
linux_wait_on_bit_timeout(word, bit, state, MAX_SCHEDULE_TIMEOUT)
#define wait_on_bit_timeout(word, bit, state, timeout) \
linux_wait_on_bit_timeout(word, bit, state, timeout)
#define wake_up_atomic_t(a) linux_wake_up_atomic_t(a)