Skip to content

Commit

Permalink
Merge pull request torvalds#109 from sched-ext/dfl_slice
Browse files Browse the repository at this point in the history
scx: Set default slice for default select_cpu dispatch
  • Loading branch information
htejun authored Jan 8, 2024
2 parents 8ccf9d7 + 8bbe0db commit 15f2f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/sched/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -2124,8 +2124,10 @@ static int select_task_rq_scx(struct task_struct *p, int prev_cpu, int wake_flag
s32 cpu;

cpu = scx_select_cpu_dfl(p, prev_cpu, wake_flags, &found);
if (found)
if (found) {
p->scx.slice = SCX_SLICE_DFL;
p->scx.ddsq_id = SCX_DSQ_LOCAL;
}
return cpu;
}
}
Expand Down

0 comments on commit 15f2f4f

Please sign in to comment.