yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Kernel: Clang Format

This commit is contained in:
Fernando Sahmkow 2019-09-30 20:50:59 -04:00 committed by FernandoS27
parent e05a8c2385
commit 1ec1e81373
2 changed files with 3 additions and 2 deletions

View File

@ -281,7 +281,8 @@ void GlobalScheduler::PreemptThreads() {
UnloadThread(winner->GetProcessorID()); UnloadThread(winner->GetProcessorID());
} }
TransferToCore(winner->GetPriority(), core_id, winner); TransferToCore(winner->GetPriority(), core_id, winner);
current_thread = winner->GetPriority() <= current_thread->GetPriority() ? winner : current_thread; current_thread =
winner->GetPriority() <= current_thread->GetPriority() ? winner : current_thread;
} }
if (current_thread != nullptr && current_thread->GetPriority() > priority) { if (current_thread != nullptr && current_thread->GetPriority() > priority) {

View File

@ -468,7 +468,7 @@ private:
u64 total_cpu_time_ticks = 0; ///< Total CPU running ticks. u64 total_cpu_time_ticks = 0; ///< Total CPU running ticks.
u64 last_running_ticks = 0; ///< CPU tick when thread was last running u64 last_running_ticks = 0; ///< CPU tick when thread was last running
u64 yield_count = 0; ///< Number of innecessaries yields occured. u64 yield_count = 0; ///< Number of innecessaries yields occured.
s32 processor_id = 0; s32 processor_id = 0;