mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
ke: move priority out of thread
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user