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

sched,mmc: 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.

In this case, use fifo_low, because it only cares about being above
SCHED_NORMAL. Effectively no change in behaviour.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

+1 -2
+1 -2
drivers/mmc/core/sdio_irq.c
··· 139 139 static int sdio_irq_thread(void *_host) 140 140 { 141 141 struct mmc_host *host = _host; 142 - struct sched_param param = { .sched_priority = 1 }; 143 142 unsigned long period, idle_period; 144 143 int ret; 145 144 146 - sched_setscheduler(current, SCHED_FIFO, &param); 145 + sched_set_fifo_low(current); 147 146 148 147 /* 149 148 * We want to allow for SDIO cards to work even on non SDIO