Author: hselasky
Date: Tue Mar 13 16:07:38 2018
New Revision: 330847
URL: https://svnweb.freebsd.org/changeset/base/330847

Log:
  MFC r330272:
  Implement wait_on_bit() function macro in the LinuxKPI.
  
  Submitted by: Johannes Lundberg <johal...@gmail.com>
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/wait.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/wait.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/wait.h   Tue Mar 13 
15:29:13 2018        (r330846)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/wait.h   Tue Mar 13 
16:07:38 2018        (r330847)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to