aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-20 13:42:27 -0800
committerbunnei <bunneidev@gmail.com>2021-01-28 21:42:26 -0800
commitf34dd04d09cf7092877a47453a62ad057f869598 (patch)
tree987f6cb5d3f1955dc88f5ac2c1d5c1329d787fc4 /src/core/cpu_manager.cpp
parent25cece3ceaf5e4558527644395a4462f985d17d9 (diff)
hle: kernel: Recode implementation of KThread to be more accurate.
Diffstat (limited to 'src/core/cpu_manager.cpp')
-rw-r--r--src/core/cpu_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index 7192582503..9bbb82b973 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -279,8 +279,7 @@ void CpuManager::PreemptSingleCore(bool from_running_enviroment) {
{
auto& scheduler = system.Kernel().Scheduler(current_core);
scheduler.Reload(scheduler.GetCurrentThread());
- auto* currrent_thread2 = scheduler.GetCurrentThread();
- if (!currrent_thread2->IsKernelThread()) {
+ if (!scheduler.IsIdle()) {
idle_count = 0;
}
}