diff options
Diffstat (limited to 'backport-include/linux/wait.h')
-rw-r--r-- | backport-include/linux/wait.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/backport-include/linux/wait.h b/backport-include/linux/wait.h new file mode 100644 index 0000000..7ada8bc --- /dev/null +++ b/backport-include/linux/wait.h @@ -0,0 +1,24 @@ +#ifndef __BACKPORT_LINUX_WAIT_H +#define __BACKPORT_LINUX_WAIT_H +#include_next <linux/wait.h> + +/* This backports: + * + * commit 63b2001169e75cd71e917ec953fdab572e3f944a + * Author: Thomas Gleixner <tglx@linutronix.de> + * Date: Thu Dec 1 00:04:00 2011 +0100 + * + * sched/wait: Add __wake_up_all_locked() API + */ + +#ifndef wake_up_all_locked +extern void compat_wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr); +#define wake_up_all_locked(x) compat_wake_up_locked((x), TASK_NORMAL, 0) +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +#define wake_up_interruptible_poll(x, m) \ + __wake_up(x, TASK_INTERRUPTIBLE, 1, (void *) (m)) +#endif + +#endif /* __BACKPORT_LINUX_WAIT_H */ |