sched,psi: Convert to sched_set_fifo_low()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Apr 2020 10:09:13 +0000 (12:09 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:10:25 +0000 (14:10 +0200)
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>
kernel/sched/psi.c

index e53b711bd643120f66aa6cdf3f3e5c1add123830..967732c0766c567d2fc1523c900c976d18ac1acf 100644 (file)
@@ -616,11 +616,8 @@ out:
 static int psi_poll_worker(void *data)
 {
        struct psi_group *group = (struct psi_group *)data;
-       struct sched_param param = {
-               .sched_priority = 1,
-       };
 
-       sched_setscheduler_nocheck(current, SCHED_FIFO, &param);
+       sched_set_fifo_low(current);
 
        while (true) {
                wait_event_interruptible(group->poll_wait,