Skip to content

Commit f8ec806

Browse files
author
Peter Zijlstra
committed
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) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Ulf Hansson <[email protected]>
1 parent 73f73cc commit f8ec806

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mmc/core/sdio_irq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ EXPORT_SYMBOL_GPL(sdio_signal_irq);
139139
static int sdio_irq_thread(void *_host)
140140
{
141141
struct mmc_host *host = _host;
142-
struct sched_param param = { .sched_priority = 1 };
143142
unsigned long period, idle_period;
144143
int ret;
145144

146-
sched_setscheduler(current, SCHED_FIFO, &param);
145+
sched_set_fifo_low(current);
147146

148147
/*
149148
* We want to allow for SDIO cards to work even on non SDIO

0 commit comments

Comments
 (0)