diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:52:22 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:52:22 +0000 |
commit | 0ecefec63551535a6f057e4521efc9abfaa78c3f (patch) | |
tree | 977b6845fb5a8b43c4b5862cf74be3666a5f1452 /drivers/dahdi | |
parent | c4898dfaf36fbfc20e440269e34a8503d624baa1 (diff) |
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@digium.com>
Acked-by: Michael Spiceland <mspiceland@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10235 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 12 |
1 files changed, 6 insertions, 6 deletions
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;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++) { |