Skip to content

Commit 7a40798

Browse files
author
Peter Zijlstra
committed
sched,irq: 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 no change. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 94bedda commit 7a40798

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/irq/manage.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,23 +1271,19 @@ static int
12711271
setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
12721272
{
12731273
struct task_struct *t;
1274-
struct sched_param param = {
1275-
.sched_priority = MAX_USER_RT_PRIO/2,
1276-
};
12771274

12781275
if (!secondary) {
12791276
t = kthread_create(irq_thread, new, "irq/%d-%s", irq,
12801277
new->name);
12811278
} else {
12821279
t = kthread_create(irq_thread, new, "irq/%d-s-%s", irq,
12831280
new->name);
1284-
param.sched_priority -= 1;
12851281
}
12861282

12871283
if (IS_ERR(t))
12881284
return PTR_ERR(t);
12891285

1290-
sched_setscheduler_nocheck(t, SCHED_FIFO, &param);
1286+
sched_set_fifo(t);
12911287

12921288
/*
12931289
* We keep the reference to the task struct even if

0 commit comments

Comments
 (0)