summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-26 10:44:21 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:15 -0400
commit3d9fbb8226e9bf7dce99568f6e616e7361d43c41 (patch)
treebce92b63c7c038c4eda6f6118b8b39aa92a09efb /src/core/cpu_manager.cpp
parent15a79eb0d7abe752a9a55d0cfa7ea220e17318b7 (diff)
CPU_Manager: Reconfigre guest threads for dynamrmic downsides
Diffstat (limited to 'src/core/cpu_manager.cpp')
-rw-r--r--src/core/cpu_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index 6032cb0bf..241971ff3 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -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();
}