small fix: reset switch_ctx flag in schedule() for redo

This commit is contained in:
Ken Sato
2018-01-14 14:50:31 +09:00
parent 38bbb4e390
commit 1b25379c02

View File

@ -3118,6 +3118,9 @@ void schedule(void)
}
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();