diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-02-01 13:47:56 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-13 13:21:00 +0100 |
commit | 9491be5ff06ff08d61e6a8d767382ea0037a6f38 (patch) | |
tree | d759768390b4541401cd683bdfc12c04f02a7df0 /drivers/mmc/core/queue.h | |
parent | 74f5ba357c7cd63c664e65fb7a116dbc0538a2ec (diff) | |
download | op-kernel-dev-9491be5ff06ff08d61e6a8d767382ea0037a6f38.zip op-kernel-dev-9491be5ff06ff08d61e6a8d767382ea0037a6f38.tar.gz |
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index e0cd5b1..e298f10 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; |