ke: move priority out of thread

This commit is contained in:
Loïc Grégoire
2026-08-19 22:24:48 -04:00
parent 157179ea27
commit 0e48c47674
5 changed files with 67 additions and 66 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ pub const WorkItem = struct {
/// High priority work.
High,
pub fn to_sched_prio(prio: Priority) ke.Thread.Priority {
pub fn to_sched_prio(prio: Priority) ke.Priority {
return switch (prio) {
.Low => .LowBatch,
.Normal => .HighBatch,
@@ -128,7 +128,7 @@ const Pool = struct {
@ptrFromInt(ctx.value),
);
td.kern.nice = -ke.Thread.Priority.nice_max;
td.kern.nice = -ke.Priority.nice_max;
if (cpu != null) {
td.kern.last_cpu = cpu;