summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-13 16:55:36 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-13 16:55:36 +0000
commitfda2b6e1c02f1307b4ad902d09dee00f7a9907fb (patch)
treedc6628dd60ab61eed2bd4efae8fd3e0430369720 /wct4xxp.c
parentc05675c6ffd595305bb92d54c60ef9be61be0119 (diff)
Keep track of irq misses, but don't risk triggering others with printk
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@273 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 46fdd58..7e29ca5 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -923,8 +923,12 @@ static void t4_receiveprep(struct t4 *wc, int irq)
dbl = 1;
wc->last0 = 1;
}
- if (dbl)
- printk("TE410P: Double/missed interrupt detected\n");
+ if (dbl) {
+ for (x=0;x<4;x++)
+ wc->spans[x].irqmisses++;
+ if (debug)
+ printk("TE410P: Double/missed interrupt detected\n");
+ }
for (x=0;x<ZT_CHUNKSIZE;x++) {
/* Once per chunk */
for (z=0;z<24;z++) {