mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-30 06:48:22 +00:00
ke/sched: fix priority formula
Hogs got promoted while other threads got demoted :(
This commit is contained in:
+1
-1
@@ -985,7 +985,7 @@ fn recompute_priority(td: *ke.Thread) void {
|
||||
@as(i32, cpu_range / 2),
|
||||
);
|
||||
|
||||
const raw = @as(i32, ke.Thread.Priority.low_batch) +
|
||||
const raw = @as(i32, ke.Thread.Priority.high_batch) -
|
||||
@as(i32, cpu_pri_off) +
|
||||
nice_off;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user