mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 04:47:12 +07:00
3f07c01441
We are going to split <linux/sched/signal.h> out of <linux/sched.h>, which will have to be picked up from other headers and a couple of .c files. Create a trivial placeholder <linux/sched/signal.h> file that just maps to <linux/sched.h> to make this patch obviously correct and bisectable. Include the new header in the files that are going to need it. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
35 lines
778 B
C
35 lines
778 B
C
/*
|
|
* 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>
|
|
#include <linux/sched/signal.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 */
|