summaryrefslogtreecommitdiff
path: root/wct4xxp/base.c
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-18 20:53:40 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-18 20:53:40 +0000
commitc822d19068539e911c11c68ec80d7453ab28e7a2 (patch)
tree6cbf29aa36b7be4bb9cd283fa8624c66f923010e /wct4xxp/base.c
parente36fbd70f076bcdfa8eda7fa6d7da4b178fff316 (diff)
Make sure we only increment timingslips when there actually are timing slips, instead of everytime we service the framer
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3161 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp/base.c')
-rw-r--r--wct4xxp/base.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index 55fe88e..ba25826 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -2617,7 +2617,9 @@ static inline void t4_framer_interrupt(struct t4 *wc, int span)
t4_check_alarms(wc, span);
}
if (!ts->span.alarms) {
- ts->span.timingslips++;
+ if ((isr3 & 0x3) || (isr4 & 0xc0))
+ ts->span.timingslips++;
+
if (debug & DEBUG_MAIN) {
if (isr3 & 0x02)
printk("TE%d10P: RECEIVE slip NEGATIVE on span %d\n", wc->numspans, span + 1);