From 5b85e9e46d7f8e2657452b2d8565052834277954 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 1 Dec 2003 00:51:30 -0800 Subject: [PATCH] [PATCH] Fix lost wakeups problem When doing sync wakeups we must not skip the notification of other cpus if the task is not on this runqueue. --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched.c b/kernel/sched.c index e99231d2429d0..3a2073d7dd81b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -646,7 +646,7 @@ repeat_lock_task: */ p->activated = -1; } - if (sync) + if (sync && (task_cpu(p) == smp_processor_id())) __activate_task(p, rq); else { activate_task(p, rq); -- 2.53.0