ke: scheduler overhaul

This commit is contained in:
Loïc Grégoire
2026-08-19 18:04:12 -04:00
parent f78d10b62e
commit ee0c6aad67
13 changed files with 896 additions and 733 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ pub fn start(_: ?*anyopaque) void {
is_parked[i] = .init(false);
const prio: u8 = @intCast(2 + (i * 5) % 29);
const t = ps.thread.create_kernel(prio, &worker, @ptrFromInt(i + 1)) catch @panic("oom");
const t = ps.thread.create_kernel(@enumFromInt(prio), &worker, @ptrFromInt(i + 1)) catch @panic("oom");
tds[i] = t;
ke.sched.enqueue(&t.kern);
}