From a1df417e74aa6dae7352dc8cbb0ad471af5b7c69 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 25 Apr 2016 10:00:44 -0400 Subject: initial Olimex linux tree from Daniel, originally Feb 3, 2016 --- linux/sound/oss/sleep.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 linux/sound/oss/sleep.h (limited to 'linux/sound/oss/sleep.h') diff --git a/linux/sound/oss/sleep.h b/linux/sound/oss/sleep.h new file mode 100644 index 00000000..a20fc925 --- /dev/null +++ b/linux/sound/oss/sleep.h @@ -0,0 +1,18 @@ +#include + +/* + * Do not use. This is a replacement for the old + * "interruptible_sleep_on_timeout" function that has been + * deprecated for ages. All users should instead try to use + * wait_event_interruptible_timeout. + */ + +static inline long +oss_broken_sleep_on(wait_queue_head_t *q, long timeout) +{ + DEFINE_WAIT(wait); + prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE); + timeout = schedule_timeout(timeout); + finish_wait(q, &wait); + return timeout; +} -- cgit