CPU_Manager: Reconfigre guest threads for dynamrmic downsides

This commit is contained in:
Fernando Sahmkow committed 2020-06-27 11:35:15 -04:00
1 parent 85ca7b2bdb
commit 64fe82af2e
3 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -80,9 +80,10 @@ void CpuManager::RunGuestThread() {
}
while (true) {
auto& physical_core = kernel.CurrentPhysicalCore();
if (!physical_core.IsInterrupted()) {
while (!physical_core.IsInterrupted()) {
physical_core.Run();
}
physical_core.ClearExclusive();
auto& scheduler = physical_core.Scheduler();
scheduler.TryDoContextSwitch();
}