dmaengine: edma: No need save/restore interrupt flags during spin_lock in IRQ
authorJoel Fernandes <joelf@ti.com>
Thu, 17 Apr 2014 05:58:33 +0000 (00:58 -0500)
committerVinod Koul <vinod.koul@intel.com>
Wed, 23 Apr 2014 05:51:17 +0000 (11:21 +0530)
commit406efb1a745c1dc512dc9c3c859e302e7b7f907e
treee209379f0e4ae06f2332085c2d59a97201e7bfcd
parent8cc3e30bea9a90f9ab7a1bc4612792c40ad7ae95
dmaengine: edma: No need save/restore interrupt flags during spin_lock in IRQ

The vchan lock in edma_callback is acquired in hard interrupt context. As
interrupts are already disabled, there's no point in save/restoring interrupt
mask bit or cpsr flags.

Get rid of flags local variable and use spin_lock instead of spin_lock_irqsave.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c