diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 5 |
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 | ||
| 407 | void System::PrepareReschedule(s32 core_index) { | 407 | void 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 | ||
| 412 | PerfStatsResults System::GetAndResetPerfStats() { | 413 | PerfStatsResults System::GetAndResetPerfStats() { |