mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
18
sound/oss/sleep.h
Normal file
18
sound/oss/sleep.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <linux/wait.h>
|
||||
|
||||
/*
|
||||
* 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue