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

dmaengine: milbeaut-xdmac: 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>
Link: https://lore.kernel.org/r/20201027215252.25820-6-song.bao.hua@hisilicon.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Barry Song and committed by
Vinod Koul
280e7f90 654115e3

+2 -3
+2 -3
drivers/dma/milbeaut-xdmac.c
··· 160 160 { 161 161 struct milbeaut_xdmac_chan *mc = dev_id; 162 162 struct milbeaut_xdmac_desc *md; 163 - unsigned long flags; 164 163 u32 val; 165 164 166 - spin_lock_irqsave(&mc->vc.lock, flags); 165 + spin_lock(&mc->vc.lock); 167 166 168 167 /* Ack and Stop */ 169 168 val = FIELD_PREP(M10V_XDDSD_IS_MASK, 0x0); ··· 176 177 177 178 milbeaut_xdmac_start(mc); 178 179 out: 179 - spin_unlock_irqrestore(&mc->vc.lock, flags); 180 + spin_unlock(&mc->vc.lock); 180 181 return IRQ_HANDLED; 181 182 } 182 183