提交 d9c8d4b2 编写于 作者: B Barry Song 提交者: Vinod Koul

dmaengine: hisi_dma: remove redundant irqsave and irqrestore in hardIRQ

Running in hardIRQ, disabling IRQ is redundant since hardIRQ has disabled
IRQ. This patch removes the irqsave and irqstore to save some instruction
cycles.
Signed-off-by: NBarry Song <song.bao.hua@hisilicon.com>
Acked-by: NZhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20201027215252.25820-8-song.bao.hua@hisilicon.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 1ff20656
...@@ -431,9 +431,8 @@ static irqreturn_t hisi_dma_irq(int irq, void *data) ...@@ -431,9 +431,8 @@ static irqreturn_t hisi_dma_irq(int irq, void *data)
struct hisi_dma_dev *hdma_dev = chan->hdma_dev; struct hisi_dma_dev *hdma_dev = chan->hdma_dev;
struct hisi_dma_desc *desc; struct hisi_dma_desc *desc;
struct hisi_dma_cqe *cqe; struct hisi_dma_cqe *cqe;
unsigned long flags;
spin_lock_irqsave(&chan->vc.lock, flags); spin_lock(&chan->vc.lock);
desc = chan->desc; desc = chan->desc;
cqe = chan->cq + chan->cq_head; cqe = chan->cq + chan->cq_head;
...@@ -452,7 +451,7 @@ static irqreturn_t hisi_dma_irq(int irq, void *data) ...@@ -452,7 +451,7 @@ static irqreturn_t hisi_dma_irq(int irq, void *data)
chan->desc = NULL; chan->desc = NULL;
} }
spin_unlock_irqrestore(&chan->vc.lock, flags); spin_unlock(&chan->vc.lock);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册