From 107e7ba54f5dcd12b5ddbd6a41cf7a9f08b0ea4e Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sun, 7 Nov 2004 04:06:45 -0800 Subject: [PATCH] SysRq-n changes RT tasks to normal Teach sysrq-N to switch all rt-policy tasks to SCHED_OTHER. For recovering from (and diagnosing) userspace bugs. Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/sched.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index 5d4ebb202ea6..0c8262c6d6b8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1105,6 +1105,12 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) extern long sched_setaffinity(pid_t pid, cpumask_t new_mask); extern long sched_getaffinity(pid_t pid, cpumask_t *mask); +#ifdef CONFIG_MAGIC_SYSRQ + +extern void normalize_rt_tasks(void); + +#endif + #endif /* __KERNEL__ */ #endif -- cgit v1.2.3