diff options
author | Barry Song <barry.song@analog.com> | 2010-01-22 11:07:30 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 06:30:50 +0100 |
commit | 4ab069e5356bae71dda2ce6bb2b2a62a34f2bf25 (patch) | |
tree | 3ff228e89253d39f3b8d0ba6be36804029d0bbe9 | |
parent | Blackfin: fix whitespace damage in thread_info.h (diff) | |
download | linux-4ab069e5356bae71dda2ce6bb2b2a62a34f2bf25.tar.xz linux-4ab069e5356bae71dda2ce6bb2b2a62a34f2bf25.zip |
Blackfin: add dma_disable_irq_nosync() API for irq handlers
Some IRQ handlers need to disable a DMA channel without waiting.
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/include/asm/dma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/dma.h b/arch/blackfin/include/asm/dma.h index bd2e62243abe..2c09b1d50ec9 100644 --- a/arch/blackfin/include/asm/dma.h +++ b/arch/blackfin/include/asm/dma.h @@ -262,6 +262,10 @@ static inline void dma_disable_irq(unsigned int channel) { disable_irq(dma_ch[channel].irq); } +static inline void dma_disable_irq_nosync(unsigned int channel) +{ + disable_irq_nosync(dma_ch[channel].irq); +} static inline void dma_enable_irq(unsigned int channel) { enable_irq(dma_ch[channel].irq); |