[svn-commits] sruffell: branch linux/sruffell/wctdm24xxp-cmdlist r9839 - /linux/team/sruffe...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 16 16:39:07 CDT 2011


Author: sruffell
Date: Wed Mar 16 16:39:03 2011
New Revision: 9839

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9839
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>

Modified:
    linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/voicebus/voicebus.c

Modified: linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9839&r1=9838&r2=9839
==============================================================================
--- linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/voicebus/voicebus.c Wed Mar 16 16:39:03 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