CPU_Manager: Reconfigre guest threads for dynamrmic downsides
This commit is contained in:
parent
15a79eb0d7
commit
3d9fbb8226
3 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue