From b5af41a07bebc0a378428e7d7ddc68c9c750d2d1 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Mon, 3 Dec 2018 17:29:21 -0500 Subject: scheduler: Only work steal higher priority threads from other cores --- src/core/hle/kernel/scheduler.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/core/hle/kernel/scheduler.h') diff --git a/src/core/hle/kernel/scheduler.h b/src/core/hle/kernel/scheduler.h index 71b32589a..97ced4dfc 100644 --- a/src/core/hle/kernel/scheduler.h +++ b/src/core/hle/kernel/scheduler.h @@ -48,14 +48,11 @@ public: /// Unschedules a thread that was already scheduled void UnscheduleThread(Thread* thread, u32 priority); - /// Moves a thread to the back of the current priority queue - void MoveThreadToBackOfPriorityQueue(Thread* thread, u32 priority); - /// Sets the priority of a thread in the scheduler void SetThreadPriority(Thread* thread, u32 priority); /// Gets the next suggested thread for load balancing - Thread* GetNextSuggestedThread(u32 core) const; + Thread* GetNextSuggestedThread(u32 core, u32 minimum_priority) const; /** * YieldWithoutLoadBalancing -- analogous to normal yield on a system -- cgit v1.2.3