diff options
author | root <root@artemis.panaceas.org> | 2015-12-25 15:00:15 +0000 |
---|---|---|
committer | root <root@artemis.panaceas.org> | 2015-12-25 15:00:15 +0000 |
commit | ddd86436f4e3643c04b797f858dab95d5f2e4de9 (patch) | |
tree | bfe7a780cf9a2f4fc33aec32c82e625e79dece1f /backport-include/linux/wait.h | |
download | backports-3.10.19-1-master.tar.gz backports-3.10.19-1-master.tar.bz2 backports-3.10.19-1-master.zip |
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 */ |