summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-06-19 09:11:18 -0400
committerGravatar FernandoS272019-10-15 11:55:12 -0400
commit82218c925af8bcbaa05ae9f39af2d2393de7681f (patch)
treee38d90c4838679ae59d58f51fff2904b16b1a155 /src/core/core.cpp
parentCorrect PrepareReschedule (diff)
downloadyuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.gz
yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.xz
yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.zip
Kernel: Style and Corrections
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 4a95630bd..d79045eea 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -404,9 +404,10 @@ void System::PrepareReschedule() {
404 CurrentCpuCore().PrepareReschedule(); 404 CurrentCpuCore().PrepareReschedule();
405} 405}
406 406
407void System::PrepareReschedule(s32 core_index) { 407void System::PrepareReschedule(const u32 core_index) {
408 if (core_index >= 0) 408 if (core_index < GlobalScheduler().CpuCoresCount()) {
409 CpuCore(core_index).PrepareReschedule(); 409 CpuCore(core_index).PrepareReschedule();
410 }
410} 411}
411 412
412PerfStatsResults System::GetAndResetPerfStats() { 413PerfStatsResults System::GetAndResetPerfStats() {