Skip to content

Commit 7b31e94

Browse files
author
Peter Zijlstra
committed
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: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 64419ca commit 7b31e94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/scheduler/sched_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,11 +760,10 @@ static bool drm_sched_blocked(struct drm_gpu_scheduler *sched)
760760
*/
761761
static int drm_sched_main(void *param)
762762
{
763-
struct sched_param sparam = {.sched_priority = 1};
764763
struct drm_gpu_scheduler *sched = (struct drm_gpu_scheduler *)param;
765764
int r;
766765

767-
sched_setscheduler(current, SCHED_FIFO, &sparam);
766+
sched_set_fifo_low(current);
768767

769768
while (!kthread_should_stop()) {
770769
struct drm_sched_entity *entity = NULL;

0 commit comments

Comments
 (0)