mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
mmc: cavium: Replace spin_lock_irqsave with spin_lock in hard IRQ
It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Link: https://lore.kernel.org/r/1612422438-32525-1-git-send-email-tanxiaofei@huawei.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
1791557ffb
commit
f9261eb7d3
1 changed files with 2 additions and 3 deletions
|
@ -436,12 +436,11 @@ irqreturn_t cvm_mmc_interrupt(int irq, void *dev_id)
|
||||||
{
|
{
|
||||||
struct cvm_mmc_host *host = dev_id;
|
struct cvm_mmc_host *host = dev_id;
|
||||||
struct mmc_request *req;
|
struct mmc_request *req;
|
||||||
unsigned long flags = 0;
|
|
||||||
u64 emm_int, rsp_sts;
|
u64 emm_int, rsp_sts;
|
||||||
bool host_done;
|
bool host_done;
|
||||||
|
|
||||||
if (host->need_irq_handler_lock)
|
if (host->need_irq_handler_lock)
|
||||||
spin_lock_irqsave(&host->irq_handler_lock, flags);
|
spin_lock(&host->irq_handler_lock);
|
||||||
else
|
else
|
||||||
__acquire(&host->irq_handler_lock);
|
__acquire(&host->irq_handler_lock);
|
||||||
|
|
||||||
|
@ -504,7 +503,7 @@ irqreturn_t cvm_mmc_interrupt(int irq, void *dev_id)
|
||||||
host->release_bus(host);
|
host->release_bus(host);
|
||||||
out:
|
out:
|
||||||
if (host->need_irq_handler_lock)
|
if (host->need_irq_handler_lock)
|
||||||
spin_unlock_irqrestore(&host->irq_handler_lock, flags);
|
spin_unlock(&host->irq_handler_lock);
|
||||||
else
|
else
|
||||||
__release(&host->irq_handler_lock);
|
__release(&host->irq_handler_lock);
|
||||||
return IRQ_RETVAL(emm_int != 0);
|
return IRQ_RETVAL(emm_int != 0);
|
||||||
|
|
Loading…
Reference in a new issue