Commit 73f73cc2 authored by Peter Zijlstra's avatar Peter Zijlstra

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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 7b31e940
...@@ -737,8 +737,6 @@ static void ivtv_process_options(struct ivtv *itv) ...@@ -737,8 +737,6 @@ static void ivtv_process_options(struct ivtv *itv)
*/ */
static int ivtv_init_struct1(struct ivtv *itv) static int ivtv_init_struct1(struct ivtv *itv)
{ {
struct sched_param param = { .sched_priority = 99 };
itv->base_addr = pci_resource_start(itv->pdev, 0); itv->base_addr = pci_resource_start(itv->pdev, 0);
itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */ itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */
itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */ 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) ...@@ -758,7 +756,7 @@ static int ivtv_init_struct1(struct ivtv *itv)
return -1; return -1;
} }
/* must use the FIFO scheduler as it is realtime sensitive */ /* must use the FIFO scheduler as it is realtime sensitive */
sched_setscheduler(itv->irq_worker_task, SCHED_FIFO, &param); sched_set_fifo(itv->irq_worker_task);
kthread_init_work(&itv->irq_work, ivtv_irq_work_handler); kthread_init_work(&itv->irq_work, ivtv_irq_work_handler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment