Commit 5b85e9e4 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[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.
parent 593ba3d7
...@@ -646,7 +646,7 @@ static int try_to_wake_up(task_t * p, unsigned int state, int sync) ...@@ -646,7 +646,7 @@ static int try_to_wake_up(task_t * p, unsigned int state, int sync)
*/ */
p->activated = -1; p->activated = -1;
} }
if (sync) if (sync && (task_cpu(p) == smp_processor_id()))
__activate_task(p, rq); __activate_task(p, rq);
else { else {
activate_task(p, rq); activate_task(p, rq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment