[svn-commits] sruffell: linux/trunk r9885 - /linux/trunk/drivers/dahdi/voicebus/voicebus.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Apr 4 11:25:32 CDT 2011
Author: sruffell
Date: Mon Apr 4 11:25:28 2011
New Revision: 9885
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9885
Log:
wctdm24xxp, wcte12xp: Always call handle_transmit/receive in hardirq context.
Allows the board drivers to use the regular locks instead of the
irqsave/irqrestore variants.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Michael Spiceland <mspiceland at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>
Modified:
linux/trunk/drivers/dahdi/voicebus/voicebus.c
Modified: linux/trunk/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9885&r1=9884&r2=9885
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/voicebus.c Mon Apr 4 11:25:28 2011
@@ -787,6 +787,7 @@
struct vbb *vbb;
dma_addr_t dma_addr;
LIST_HEAD(buffers);
+ unsigned long flags;
might_sleep();
@@ -831,7 +832,9 @@
list_add_tail(&vbb->entry, &buffers);
}
+ local_irq_save(flags);
handle_transmit(vb, &buffers);
+ local_irq_restore(flags);
vb_disable_deferred(vb);
while (!list_empty(&buffers)) {
More information about the svn-commits
mailing list