summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/queue.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-02-01 15:47:56 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 15:21:00 +0300
commit9491be5ff06ff08d61e6a8d767382ea0037a6f38 (patch)
treed759768390b4541401cd683bdfc12c04f02a7df0 /drivers/mmc/core/queue.h
parent74f5ba357c7cd63c664e65fb7a116dbc0538a2ec (diff)
downloadlinux-9491be5ff06ff08d61e6a8d767382ea0037a6f38.tar.xz
mmc: queue: turn queue flags into bools
Instead of masking and setting two bits in the "flags" field for the mmc_queue, just use two bools named "suspended" and "new_request". The masking and setting would likely have race conditions anyways, it is better to use a simple member like this. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/queue.h')
-rw-r--r--drivers/mmc/core/queue.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h
index e0cd5b1f40ee..e298f100101b 100644
--- a/drivers/mmc/core/queue.h
+++ b/drivers/mmc/core/queue.h
@@ -40,9 +40,8 @@ struct mmc_queue {
struct mmc_card *card;
struct task_struct *thread;
struct semaphore thread_sem;
- unsigned int flags;
-#define MMC_QUEUE_SUSPENDED (1 << 0)
-#define MMC_QUEUE_NEW_REQUEST (1 << 1)
+ bool new_request;
+ bool suspended;
bool asleep;
struct mmc_blk_data *blkdata;
struct request_queue *queue;