Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched,drm/scheduler: Convert to sched_set_fifo*()

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.

In this case, use fifo_low, because it only cares about being above
SCHED_NORMAL. Effectively no change in behaviour.

Cc: alexander.deucher@amd.com
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>

+1 -2
+1 -2
drivers/gpu/drm/scheduler/sched_main.c
··· 760 760 */ 761 761 static int drm_sched_main(void *param) 762 762 { 763 - struct sched_param sparam = {.sched_priority = 1}; 764 763 struct drm_gpu_scheduler *sched = (struct drm_gpu_scheduler *)param; 765 764 int r; 766 765 767 - sched_setscheduler(current, SCHED_FIFO, &sparam); 766 + sched_set_fifo_low(current); 768 767 769 768 while (!kthread_should_stop()) { 770 769 struct drm_sched_entity *entity = NULL;