Skip to content

Commit 2cca542

Browse files
author
Peter Zijlstra
committed
sched,psi: Convert to sched_set_fifo_low()
Because SCHED_FIFO is a broken scheduler model (see previous patches) take away the priority field, the kernel can't possibly make an informed decision. Effectively no change. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Ingo Molnar <mingo@kernel.org> Acked-by: Johannes Weiner <hannes@cmpxchg.org>
1 parent ce1c8af commit 2cca542

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

kernel/sched/psi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,8 @@ static void psi_poll_work(struct psi_group *group)
616616
static int psi_poll_worker(void *data)
617617
{
618618
struct psi_group *group = (struct psi_group *)data;
619-
struct sched_param param = {
620-
.sched_priority = 1,
621-
};
622619

623-
sched_setscheduler_nocheck(current, SCHED_FIFO, &param);
620+
sched_set_fifo_low(current);
624621

625622
while (true) {
626623
wait_event_interruptible(group->poll_wait,

0 commit comments

Comments
 (0)