SingleCore: Improve Cycle timing Behavior and replace mutex in global scheduler for spinlock.

This commit is contained in:
Fernando Sahmkow 2020-03-29 17:06:46 -04:00
commit 7e2ce2f7f4

View file

@ -253,6 +253,7 @@ void CpuManager::SingleCoreRunIdleThread() {
while (true) {
auto& physical_core = kernel.CurrentPhysicalCore();
PreemptSingleCore(false);
system.CoreTiming().AddTicks(1000U);
idle_count++;
auto& scheduler = physical_core.Scheduler();
scheduler.TryDoContextSwitch();