diff options
| author | 2022-06-30 16:54:05 -0400 | |
|---|---|---|
| committer | 2022-06-30 16:54:05 -0400 | |
| commit | 2c1e2c63c302dc4a2f0ad3452263d715d77aba8c (patch) | |
| tree | 1996677a825ccabe6a7d497c59d29f8e4672fa66 /src/core/cpu_manager.cpp | |
| parent | Merge pull request #7454 from FernandoS27/new-core-timing (diff) | |
| download | yuzu-2c1e2c63c302dc4a2f0ad3452263d715d77aba8c.tar.gz yuzu-2c1e2c63c302dc4a2f0ad3452263d715d77aba8c.tar.xz yuzu-2c1e2c63c302dc4a2f0ad3452263d715d77aba8c.zip | |
cpu_manager: properly check idle on return from preemption
Diffstat (limited to 'src/core/cpu_manager.cpp')
| -rw-r--r-- | src/core/cpu_manager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index fd6928105..9fc78f033 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp | |||
| @@ -194,7 +194,9 @@ void CpuManager::PreemptSingleCore(bool from_running_enviroment) { | |||
| 194 | { | 194 | { |
| 195 | auto& scheduler = system.Kernel().Scheduler(current_core); | 195 | auto& scheduler = system.Kernel().Scheduler(current_core); |
| 196 | scheduler.Reload(scheduler.GetSchedulerCurrentThread()); | 196 | scheduler.Reload(scheduler.GetSchedulerCurrentThread()); |
| 197 | idle_count = 0; | 197 | if (!scheduler.IsIdle()) { |
| 198 | idle_count = 0; | ||
| 199 | } | ||
| 198 | } | 200 | } |
| 199 | } | 201 | } |
| 200 | 202 | ||