aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index aacd55f8d4e..cd2b7cb638f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2778,7 +2778,8 @@ out:
2778 */ 2778 */
2779int wake_up_process(struct task_struct *p) 2779int wake_up_process(struct task_struct *p)
2780{ 2780{
2781 return try_to_wake_up(p, TASK_ALL, 0); 2781 WARN_ON(task_is_stopped_or_traced(p));
2782 return try_to_wake_up(p, TASK_NORMAL, 0);
2782} 2783}
2783EXPORT_SYMBOL(wake_up_process); 2784EXPORT_SYMBOL(wake_up_process);
2784 2785