diff options
| author | 2018-12-03 17:29:21 -0500 | |
|---|---|---|
| committer | 2018-12-03 17:29:30 -0500 | |
| commit | b5af41a07bebc0a378428e7d7ddc68c9c750d2d1 (patch) | |
| tree | 97d4e53060fda78d6445ddd99ad24b36b38cec14 /src/core/hle/kernel/scheduler.h | |
| parent | svc: Avoid performance-degrading unnecessary reschedule (diff) | |
| download | yuzu-b5af41a07bebc0a378428e7d7ddc68c9c750d2d1.tar.gz yuzu-b5af41a07bebc0a378428e7d7ddc68c9c750d2d1.tar.xz yuzu-b5af41a07bebc0a378428e7d7ddc68c9c750d2d1.zip | |
scheduler: Only work steal higher priority threads from other cores
Diffstat (limited to 'src/core/hle/kernel/scheduler.h')
| -rw-r--r-- | src/core/hle/kernel/scheduler.h | 5 |
1 files changed, 1 insertions, 4 deletions
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: | |||
| 48 | /// Unschedules a thread that was already scheduled | 48 | /// Unschedules a thread that was already scheduled |
| 49 | void UnscheduleThread(Thread* thread, u32 priority); | 49 | void UnscheduleThread(Thread* thread, u32 priority); |
| 50 | 50 | ||
| 51 | /// Moves a thread to the back of the current priority queue | ||
| 52 | void MoveThreadToBackOfPriorityQueue(Thread* thread, u32 priority); | ||
| 53 | |||
| 54 | /// Sets the priority of a thread in the scheduler | 51 | /// Sets the priority of a thread in the scheduler |
| 55 | void SetThreadPriority(Thread* thread, u32 priority); | 52 | void SetThreadPriority(Thread* thread, u32 priority); |
| 56 | 53 | ||
| 57 | /// Gets the next suggested thread for load balancing | 54 | /// Gets the next suggested thread for load balancing |
| 58 | Thread* GetNextSuggestedThread(u32 core) const; | 55 | Thread* GetNextSuggestedThread(u32 core, u32 minimum_priority) const; |
| 59 | 56 | ||
| 60 | /** | 57 | /** |
| 61 | * YieldWithoutLoadBalancing -- analogous to normal yield on a system | 58 | * YieldWithoutLoadBalancing -- analogous to normal yield on a system |