mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
34
include/linux/signalfd.h
Normal file
34
include/linux/signalfd.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* include/linux/signalfd.h
|
||||
*
|
||||
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
|
||||
*
|
||||
*/
|
||||
#ifndef _LINUX_SIGNALFD_H
|
||||
#define _LINUX_SIGNALFD_H
|
||||
|
||||
#include <uapi/linux/signalfd.h>
|
||||
|
||||
|
||||
#ifdef CONFIG_SIGNALFD
|
||||
|
||||
/*
|
||||
* Deliver the signal to listening signalfd.
|
||||
*/
|
||||
static inline void signalfd_notify(struct task_struct *tsk, int sig)
|
||||
{
|
||||
if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh)))
|
||||
wake_up(&tsk->sighand->signalfd_wqh);
|
||||
}
|
||||
|
||||
extern void signalfd_cleanup(struct sighand_struct *sighand);
|
||||
|
||||
#else /* CONFIG_SIGNALFD */
|
||||
|
||||
static inline void signalfd_notify(struct task_struct *tsk, int sig) { }
|
||||
|
||||
static inline void signalfd_cleanup(struct sighand_struct *sighand) { }
|
||||
|
||||
#endif /* CONFIG_SIGNALFD */
|
||||
|
||||
#endif /* _LINUX_SIGNALFD_H */
|
Loading…
Add table
Add a link
Reference in a new issue