Commit 1297b647 authored by Barry Song's avatar Barry Song Committed by Vinod Koul

dmaengine: fsldma: move spin_lock_bh to spin_lock in tasklet

as you are already in a tasklet, it is unnecessary to call spin_lock_bh.
Signed-off-by: default avatarBarry Song <21cnbao@gmail.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 5b394b2d
...@@ -987,7 +987,7 @@ static void dma_do_tasklet(unsigned long data) ...@@ -987,7 +987,7 @@ static void dma_do_tasklet(unsigned long data)
chan_dbg(chan, "tasklet entry\n"); chan_dbg(chan, "tasklet entry\n");
spin_lock_bh(&chan->desc_lock); spin_lock(&chan->desc_lock);
/* the hardware is now idle and ready for more */ /* the hardware is now idle and ready for more */
chan->idle = true; chan->idle = true;
...@@ -995,7 +995,7 @@ static void dma_do_tasklet(unsigned long data) ...@@ -995,7 +995,7 @@ static void dma_do_tasklet(unsigned long data)
/* Run all cleanup for descriptors which have been completed */ /* Run all cleanup for descriptors which have been completed */
fsldma_cleanup_descriptors(chan); fsldma_cleanup_descriptors(chan);
spin_unlock_bh(&chan->desc_lock); spin_unlock(&chan->desc_lock);
chan_dbg(chan, "tasklet exit\n"); chan_dbg(chan, "tasklet exit\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment