summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-29 05:41:01 +0100
committerbunnei <bunneidev@gmail.com>2021-01-11 23:23:16 +0100
commitf12701b303dc5b994f9969db21cf1c319e94bdf3 (patch)
tree1391aaed28726d5573851d7480deb2d8d4941339 /src
parenthle: kernel: Rename thread "status" to "state". (diff)
downloadyuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar.gz
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar.bz2
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar.lz
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar.xz
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.tar.zst
yuzu-f12701b303dc5b994f9969db21cf1c319e94bdf3.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/k_scheduler.cpp6
-rw-r--r--src/core/hle/kernel/k_scheduler.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp
index cdcb89f68..42f0ea483 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -203,9 +203,7 @@ void KScheduler::OnThreadStateChanged(KernelCore& kernel, Thread* thread, Thread
}
}
-void KScheduler::OnThreadPriorityChanged(KernelCore& kernel, Thread* thread, Thread* current_thread,
- s32 old_priority) {
-
+void KScheduler::OnThreadPriorityChanged(KernelCore& kernel, Thread* thread, s32 old_priority) {
ASSERT(kernel.GlobalSchedulerContext().IsLocked());
// If the thread is runnable, we want to change its priority in the queue.
@@ -292,7 +290,7 @@ void KScheduler::RotateScheduledQueue(s32 core_id, s32 priority) {
// If the best thread we can choose has a priority the same or worse than ours, try to
// migrate a higher priority thread.
- if (best_thread != nullptr && best_thread->GetPriority() >= static_cast<u32>(priority)) {
+ if (best_thread != nullptr && best_thread->GetPriority() >= priority) {
Thread* suggested = priority_queue.GetSuggestedFront(core_id);
while (suggested != nullptr) {
// If the suggestion's priority is the same as ours, don't bother.
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h
index 677375d1a..783665123 100644
--- a/src/core/hle/kernel/k_scheduler.h
+++ b/src/core/hle/kernel/k_scheduler.h
@@ -103,8 +103,7 @@ public:
static void OnThreadStateChanged(KernelCore& kernel, Thread* thread, ThreadState old_state);
/// Notify the scheduler a thread's priority has changed.
- static void OnThreadPriorityChanged(KernelCore& kernel, Thread* thread, Thread* current_thread,
- s32 old_priority);
+ static void OnThreadPriorityChanged(KernelCore& kernel, Thread* thread, s32 old_priority);
/// Notify the scheduler a thread's core and/or affinity mask has changed.
static void OnThreadAffinityMaskChanged(KernelCore& kernel, Thread* thread,