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

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: awalls@md.metrocast.net
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

+1 -3
+1 -3
drivers/media/pci/ivtv/ivtv-driver.c
··· 737 737 */ 738 738 static int ivtv_init_struct1(struct ivtv *itv) 739 739 { 740 - struct sched_param param = { .sched_priority = 99 }; 741 - 742 740 itv->base_addr = pci_resource_start(itv->pdev, 0); 743 741 itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */ 744 742 itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */ ··· 756 758 return -1; 757 759 } 758 760 /* must use the FIFO scheduler as it is realtime sensitive */ 759 - sched_setscheduler(itv->irq_worker_task, SCHED_FIFO, &param); 761 + sched_set_fifo(itv->irq_worker_task); 760 762 761 763 kthread_init_work(&itv->irq_work, ivtv_irq_work_handler); 762 764