Skip to content

Commit 28d2f20

Browse files
author
Peter Zijlstra
committed
sched,serial: 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. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent a2bee06 commit 28d2f20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/tty/serial/sc16is7xx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,6 @@ static int sc16is7xx_probe(struct device *dev,
11791179
const struct sc16is7xx_devtype *devtype,
11801180
struct regmap *regmap, int irq)
11811181
{
1182-
struct sched_param sched_param = { .sched_priority = MAX_RT_PRIO / 2 };
11831182
unsigned long freq = 0, *pfreq = dev_get_platdata(dev);
11841183
unsigned int val;
11851184
u32 uartclk = 0;
@@ -1239,7 +1238,7 @@ static int sc16is7xx_probe(struct device *dev,
12391238
ret = PTR_ERR(s->kworker_task);
12401239
goto out_clk;
12411240
}
1242-
sched_setscheduler(s->kworker_task, SCHED_FIFO, &sched_param);
1241+
sched_set_fifo(s->kworker_task);
12431242

12441243
#ifdef CONFIG_GPIOLIB
12451244
if (devtype->nr_gpio) {

0 commit comments

Comments
 (0)