schedule: Don't reschedule immediately when wake up on migrate

Refs: #1027
Change-Id: Ibe563c45c42611170273f1e437566c20fbef68d3
This commit is contained in:
Ken Sato
2018-07-10 10:27:09 +09:00
committed by Masamichi Takagi
parent d4fa953975
commit a7c9988aeb
5 changed files with 251 additions and 5 deletions

View File

@ -3159,10 +3159,6 @@ void schedule(void)
return;
}
redo:
/* Reset for redo */
switch_ctx = 0;
cpu_local_var(runq_irqstate) =
ihk_mc_spinlock_lock(&(get_this_cpu_local_var()->runq_lock));
v = get_this_cpu_local_var();
@ -3307,7 +3303,8 @@ redo:
/* Have we migrated to another core meanwhile? */
if (v != get_this_cpu_local_var()) {
goto redo;
v = get_this_cpu_local_var();
v->flags &= ~CPU_FLAG_NEED_RESCHED;
}
}
else {