Commit f177a431 authored by Jeff Xie's avatar Jeff Xie Committed by Vinod Koul

dmaengine: xgene-dma: move spin_lock_bh to spin_lock in tasklet

It is unnecessary to call spin_lock_bh in a tasklet.
Signed-off-by: default avatarJeff Xie <chongguiguzi@gmail.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 2ff25c1c
...@@ -703,7 +703,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan) ...@@ -703,7 +703,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan)
INIT_LIST_HEAD(&ld_completed); INIT_LIST_HEAD(&ld_completed);
spin_lock_bh(&chan->lock); spin_lock(&chan->lock);
/* Clean already completed and acked descriptors */ /* Clean already completed and acked descriptors */
xgene_dma_clean_completed_descriptor(chan); xgene_dma_clean_completed_descriptor(chan);
...@@ -772,7 +772,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan) ...@@ -772,7 +772,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan)
*/ */
xgene_chan_xfer_ld_pending(chan); xgene_chan_xfer_ld_pending(chan);
spin_unlock_bh(&chan->lock); spin_unlock(&chan->lock);
/* Run the callback for each descriptor, in order */ /* Run the callback for each descriptor, in order */
list_for_each_entry_safe(desc_sw, _desc_sw, &ld_completed, node) { list_for_each_entry_safe(desc_sw, _desc_sw, &ld_completed, node) {
......
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