From 0ecefec63551535a6f057e4521efc9abfaa78c3f Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 20 Oct 2011 20:52:22 +0000 Subject: 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 Acked-by: Michael Spiceland Acked-by: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10235 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/base.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drivers/dahdi') diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 374342b..7489774 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2853,7 +2853,7 @@ static void t4_receiveprep(struct t4 *wc, int irq) 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 @@ static void t4_receiveprep(struct t4 *wc, int irq) #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 @@ static inline void __receive_span(struct t4_span *ts) 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 @@ static void t4_transmitprep(struct t4 *wc, int irq) } for (y=0;ynumspans;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