diff options
Diffstat (limited to 'src/core/cpu_manager.cpp')
| -rw-r--r-- | src/core/cpu_manager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 719258250..9bbb82b97 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp | |||
| @@ -279,8 +279,7 @@ void CpuManager::PreemptSingleCore(bool from_running_enviroment) { | |||
| 279 | { | 279 | { |
| 280 | auto& scheduler = system.Kernel().Scheduler(current_core); | 280 | auto& scheduler = system.Kernel().Scheduler(current_core); |
| 281 | scheduler.Reload(scheduler.GetCurrentThread()); | 281 | scheduler.Reload(scheduler.GetCurrentThread()); |
| 282 | auto* currrent_thread2 = scheduler.GetCurrentThread(); | 282 | if (!scheduler.IsIdle()) { |
| 283 | if (!currrent_thread2->IsKernelThread()) { | ||
| 284 | idle_count = 0; | 283 | idle_count = 0; |
| 285 | } | 284 | } |
| 286 | } | 285 | } |