Flush the TLB after idle operation
While a CPU executes the idle thread, it receives no cross-CPU TLB flush requests. Therefore, the TLB needs to get flushed when leaving the idle thread to compensate for any missed flush requests. Fixes ssumpf/foc#9.
This commit is contained in:
committed by
Sebastian Sumpf
parent
591c89a3ae
commit
7cd187003d
@@ -181,6 +181,7 @@ Kernel_thread::idle_op()
|
||||
arch_tickless_idle(cpu);
|
||||
|
||||
enable_tlb(cpu);
|
||||
Mem_unit::tlb_flush();
|
||||
Rcu::leave_idle(cpu);
|
||||
Timer_tick::enable(cpu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user