[svn-commits] sruffell: linux/trunk r10235 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 20 15:52:26 CDT 2011


Author: sruffell
Date: Thu Oct 20 15:52:22 2011
New Revision: 10235

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10235
Log:
wct4xxp: Use in-hardirq version of dahdi_receive/transmit.

We are already in hardirq context and can therefore save the cli/sti
call.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Michael Spiceland <mspiceland at digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=10235&r1=10234&r2=10235
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Thu Oct 20 15:52:22 2011
@@ -2853,7 +2853,7 @@
 					wc->tspans[x]->span.chans[y]->writechunk,
 						DAHDI_CHUNKSIZE);
 			}
-			dahdi_receive(&wc->tspans[x]->span);
+			_dahdi_receive(&wc->tspans[x]->span);
 		}
 	}
 }
@@ -2863,7 +2863,7 @@
 #error Sorry, nextgen does not support chunksize != 8
 #endif
 
-static inline void __receive_span(struct t4_span *ts)
+static void __receive_span(struct t4_span *ts)
 {
 #ifdef VPM_SUPPORT
 	int y;
@@ -2898,13 +2898,13 @@
 	prefetch((void *)(ts->writechunk + 56));
 #endif
 
-	dahdi_ec_span(&ts->span);
-	dahdi_receive(&ts->span);
+	_dahdi_ec_span(&ts->span);
+	_dahdi_receive(&ts->span);
 }
 
 static inline void __transmit_span(struct t4_span *ts)
 {
-	dahdi_transmit(&ts->span);
+	_dahdi_transmit(&ts->span);
 }
 
 #ifdef ENABLE_WORKQUEUES
@@ -2949,7 +2949,7 @@
 	}
 	for (y=0;y<wc->numspans;y++) {
 		if (wc->tspans[y]->span.flags & DAHDI_FLAG_RUNNING) 
-			dahdi_transmit(&wc->tspans[y]->span);
+			_dahdi_transmit(&wc->tspans[y]->span);
 	}
 
 	for (x=0;x<DAHDI_CHUNKSIZE;x++) {




More information about the svn-commits mailing list