Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
[firefly-linux-kernel-4.4.55.git] / drivers / mmc / card / queue.c
index 6f4323c6d6536c8855ca2a8bef8f8087bb5d252e..6a4cd2bb4629c4b945cf096574a9813a685a7d3a 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <linux/mmc/card.h>
 #include <linux/mmc/host.h>
+#include <linux/sched/rt.h>
 #include "queue.h"
 
 #define MMC_QUEUE_BOUNCESZ     65536
@@ -50,6 +51,11 @@ static int mmc_queue_thread(void *d)
 {
        struct mmc_queue *mq = d;
        struct request_queue *q = mq->queue;
+       struct sched_param scheduler_params = {0};
+
+       scheduler_params.sched_priority = 1;
+
+       sched_setscheduler(current, SCHED_FIFO, &scheduler_params);
 
        current->flags |= PF_MEMALLOC;