ke/sched: add pin helpers

This commit is contained in:
Loïc Grégoire
2026-08-20 21:33:22 -04:00
parent f6f20599ba
commit 07b3893859
4 changed files with 20 additions and 7 deletions
+4 -6
View File
@@ -130,9 +130,8 @@ const Pool = struct {
td.kern.nice = -ke.Priority.nice_max;
if (cpu != null) {
td.kern.last_cpu = cpu;
td.kern.pinned = true;
if (cpu) |c| {
ke.sched.pin_on(&td.kern, c);
}
ke.sched.enqueue(&td.kern);
@@ -181,9 +180,8 @@ const Pool = struct {
@ptrFromInt(ctx.value),
);
if (cpu != null) {
td.kern.last_cpu = cpu;
td.kern.pinned = true;
if (cpu) |c| {
ke.sched.pin_on(&td.kern, c);
}
ke.sched.enqueue(&td.kern);