aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-12-03 21:22:09 -0500
committerZach Hilman <zachhilman@gmail.com>2018-12-03 21:22:09 -0500
commitddf5903cd9c05f1fecd8a5b8e8ad702b9b20eef8 (patch)
treec5bf32930463f7e072689061f73b73e360924aad /src/core/hle/kernel/svc.cpp
parentb5af41a07bebc0a378428e7d7ddc68c9c750d2d1 (diff)
scheduler: Avoid manual Reschedule call
This will automatically occur anyway when PrepareReschedule is called
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index fabdedd3d..29c2c2d03 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -994,7 +994,9 @@ static void SleepThread(s64 nanoseconds) {
GetCurrentThread()->WakeAfterDelay(nanoseconds);
}
- Core::System::GetInstance().PrepareReschedule();
+ // Reschedule all CPU cores
+ for (std::size_t i = 0; i < 4; ++i)
+ Core::System::GetInstance().CpuCore(i).PrepareReschedule();
}
/// Wait process wide key atomic