diff options
author | Huang Shijie <b32955@freescale.com> | 2010-11-01 10:17:15 +0800 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2011-01-19 11:50:18 -0500 |
commit | 858cd7b4aad42aa7df3522dd8ef822b0088e8afc (patch) | |
tree | f7790f93838f1ab3d338a27c986e353b6af41f1f /arch | |
parent | ea9c6bf81ca58ed13d2c1f5c4b7f67b3d1afba9f (diff) |
ENGR00133178-2 DMA : remove mutex for each channel
The spin_lock is enough for each DMA channel, so
remove the mutex lock.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx5/dmaengine.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-mx5/dmaengine.c b/arch/arm/mach-mx5/dmaengine.c index b8aad6c0b73f..ff3bb3553068 100644 --- a/arch/arm/mach-mx5/dmaengine.c +++ b/arch/arm/mach-mx5/dmaengine.c @@ -128,13 +128,11 @@ int mxs_dma_enable(int channel) return -EINVAL; pdma = pchan->dma; - mutex_lock(&mxs_dma_mutex); spin_lock_irqsave(&pchan->lock, flags); if (pchan->pending_num && pdma->enable) ret = pdma->enable(pchan, channel - pdma->chan_base); pchan->flags |= MXS_DMA_FLAGS_BUSY; spin_unlock_irqrestore(&pchan->lock, flags); - mutex_unlock(&mxs_dma_mutex); return ret; } EXPORT_SYMBOL(mxs_dma_enable); @@ -152,7 +150,6 @@ void mxs_dma_disable(int channel) if (!(pchan->flags & MXS_DMA_FLAGS_BUSY)) return; pdma = pchan->dma; - mutex_lock(&mxs_dma_mutex); spin_lock_irqsave(&pchan->lock, flags); if (pdma->disable) pdma->disable(pchan, channel - pdma->chan_base); @@ -161,7 +158,6 @@ void mxs_dma_disable(int channel) pchan->pending_num = 0; list_splice_init(&pchan->active, &pchan->done); spin_unlock_irqrestore(&pchan->lock, flags); - mutex_unlock(&mxs_dma_mutex); } EXPORT_SYMBOL(mxs_dma_disable); |