svn commit: r330862 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Mar 13 16:30:52 UTC 2018
Author: hselasky
Date: Tue Mar 13 16:30:51 2018
New Revision: 330862
URL: https://svnweb.freebsd.org/changeset/base/330862
Log:
MFC r330398:
Implement wait_event_lock_irq() macro function in the LinuxKPI.
Requested by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
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 16:30:01 2018 (r330861)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/wait.h Tue Mar 13 16:30:51 2018 (r330862)
@@ -194,11 +194,19 @@ int linux_wait_event_common(wait_queue_head_t *, wait_
})
/*
- * Hold the (locked) spinlock when testing the cond.
+ * The passed spinlock is held when testing the condition.
*/
#define wait_event_interruptible_lock_irq(wqh, cond, lock) ({ \
__wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
TASK_INTERRUPTIBLE, &(lock)); \
+})
+
+/*
+ * The passed spinlock is held when testing the condition.
+ */
+#define wait_event_lock_irq(wqh, cond, lock) ({ \
+ __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
+ TASK_UNINTERRUPTIBLE, &(lock)); \
})
static inline void
More information about the svn-src-stable-11
mailing list