Skip to content

Commit 73f73cc

Browse files
author
Peter Zijlstra
committed
sched,ivtv: 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. Effectively changes from 99 to 50. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Hans Verkuil <[email protected]> Tested-by: Hans Verkuil <[email protected]>
1 parent 7b31e94 commit 73f73cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/media/pci/ivtv/ivtv-driver.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,6 @@ static void ivtv_process_options(struct ivtv *itv)
737737
*/
738738
static int ivtv_init_struct1(struct ivtv *itv)
739739
{
740-
struct sched_param param = { .sched_priority = 99 };
741-
742740
itv->base_addr = pci_resource_start(itv->pdev, 0);
743741
itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */
744742
itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */
@@ -758,7 +756,7 @@ static int ivtv_init_struct1(struct ivtv *itv)
758756
return -1;
759757
}
760758
/* must use the FIFO scheduler as it is realtime sensitive */
761-
sched_setscheduler(itv->irq_worker_task, SCHED_FIFO, &param);
759+
sched_set_fifo(itv->irq_worker_task);
762760

763761
kthread_init_work(&itv->irq_work, ivtv_irq_work_handler);
764762

0 commit comments

Comments
 (0)