ke/sched: fix priority formula

Hogs got promoted while other threads got demoted :(
This commit is contained in:
Loïc Grégoire
2026-07-22 16:59:42 -04:00
parent 8b92a302a2
commit 5a30511866
+1 -1
View File
@@ -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;