diff options
author | Jeff Xie <chongguiguzi@gmail.com> | 2019-03-20 00:45:19 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-03-25 21:52:28 +0530 |
commit | f177a43121949b2c0ff7b0f775949e4cedafd721 (patch) | |
tree | 4c70c7d54541504596384ea3a0ba96c53340fdf3 /drivers/dma | |
parent | 2ff25c1c3279b09b7f4ad1a06be5dc3b55d29027 (diff) | |
download | linux-stable-f177a43121949b2c0ff7b0f775949e4cedafd721.tar.gz linux-stable-f177a43121949b2c0ff7b0f775949e4cedafd721.tar.bz2 linux-stable-f177a43121949b2c0ff7b0f775949e4cedafd721.zip |
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: Jeff Xie <chongguiguzi@gmail.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/xgene-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c index eafd6c4b90fe..002323661d07 100644 --- a/drivers/dma/xgene-dma.c +++ b/drivers/dma/xgene-dma.c @@ -703,7 +703,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan) INIT_LIST_HEAD(&ld_completed); - spin_lock_bh(&chan->lock); + spin_lock(&chan->lock); /* Clean already completed and acked descriptors */ xgene_dma_clean_completed_descriptor(chan); @@ -772,7 +772,7 @@ static void xgene_dma_cleanup_descriptors(struct xgene_dma_chan *chan) */ xgene_chan_xfer_ld_pending(chan); - spin_unlock_bh(&chan->lock); + spin_unlock(&chan->lock); /* Run the callback for each descriptor, in order */ list_for_each_entry_safe(desc_sw, _desc_sw, &ld_completed, node) { |