Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Barry Song <song.bao.hua@hisilicon.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20201027215252.25820-8-song.bao.hua@hisilicon.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Barry Song and committed by
Vinod Koul
d9c8d4b2 1ff20656

+2 -3
+2 -3
drivers/dma/hisi_dma.c
··· 431 431 struct hisi_dma_dev *hdma_dev = chan->hdma_dev; 432 432 struct hisi_dma_desc *desc; 433 433 struct hisi_dma_cqe *cqe; 434 - unsigned long flags; 435 434 436 - spin_lock_irqsave(&chan->vc.lock, flags); 435 + spin_lock(&chan->vc.lock); 437 436 438 437 desc = chan->desc; 439 438 cqe = chan->cq + chan->cq_head; ··· 451 452 chan->desc = NULL; 452 453 } 453 454 454 - spin_unlock_irqrestore(&chan->vc.lock, flags); 455 + spin_unlock(&chan->vc.lock); 455 456 456 457 return IRQ_HANDLED; 457 458 }