dahdi: Move 'timingslips' in with the other maintenance counters.
This allows timingslips to be reset along with the other counters and clarifies the intended use. This came up when Doug Bailey asked why he couldn't use dahdi_maint to clear timing slips in addition to the other counters. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
@@ -932,8 +932,8 @@ static int dahdi_seq_show(struct seq_file *sfile, void *v)
|
||||
seq_printf(sfile, "\tFAS error count: %d\n", s->count.fas);
|
||||
if (s->parent->irqmisses)
|
||||
seq_printf(sfile, "\tIRQ misses: %d\n", s->parent->irqmisses);
|
||||
if (s->timingslips)
|
||||
seq_printf(sfile, "\tTiming slips: %d\n", s->timingslips);
|
||||
if (s->count.timingslips)
|
||||
seq_printf(sfile, "\tTiming slips: %d\n", s->count.timingslips);
|
||||
seq_printf(sfile, "\n");
|
||||
|
||||
for (x = 0; x < s->channels; x++) {
|
||||
|
||||
@@ -3682,7 +3682,7 @@ static inline void t4_framer_interrupt(struct t4 *wc, int span)
|
||||
}
|
||||
if (!ts->span.alarms) {
|
||||
if ((isr3 & 0x3) || (isr4 & 0xc0))
|
||||
ts->span.timingslips++;
|
||||
ts->span.count.timingslips++;
|
||||
|
||||
if (debug & DEBUG_MAIN) {
|
||||
if (isr3 & 0x02)
|
||||
@@ -3703,7 +3703,7 @@ static inline void t4_framer_interrupt(struct t4 *wc, int span)
|
||||
wc->numspans, span + 1);
|
||||
}
|
||||
} else
|
||||
ts->span.timingslips = 0;
|
||||
ts->span.count.timingslips = 0;
|
||||
|
||||
spin_lock_irqsave(&wc->reglock, flags);
|
||||
/* HDLC controller checks - receive side */
|
||||
|
||||
Reference in New Issue
Block a user