[dahdi-commits] sruffell: branch linux/2.5 r10656 - /linux/branches/2.5/drivers/dahdi/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Apr 11 12:45:39 CDT 2012
Author: sruffell
Date: Wed Apr 11 12:45:35 2012
New Revision: 10656
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10656
Log:
dahdi: Fix compilation when CONFIG_DAHDI_WATCHDOG is defined.
From: Mike Sinkovsky <msink at trikom.ru>
Internal-Issue-ID: DAHLIN-288
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10655
Conflicts:
drivers/dahdi/dahdi-base.c
Modified:
linux/branches/2.5/drivers/dahdi/dahdi-base.c
Modified: linux/branches/2.5/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.5/drivers/dahdi/dahdi-base.c?view=diff&rev=10656&r1=10655&r2=10656
==============================================================================
--- linux/branches/2.5/drivers/dahdi/dahdi-base.c (original)
+++ linux/branches/2.5/drivers/dahdi/dahdi-base.c Wed Apr 11 12:45:35 2012
@@ -9412,7 +9412,7 @@
static int wdcheck=0;
struct dahdi_span *s;
- spin_lock_irqsave(&span_list_lock, flags);
+ spin_lock_irqsave(&chan_lock, flags);
list_for_each_entry(s, &span_list, node) {
if (s->flags & DAHDI_FLAG_RUNNING) {
if (s->watchcounter == DAHDI_WATCHDOG_INIT) {
@@ -9420,9 +9420,9 @@
if ((s->watchstate == DAHDI_WATCHSTATE_OK) ||
(s->watchstate == DAHDI_WATCHSTATE_UNKNOWN)) {
s->watchstate = DAHDI_WATCHSTATE_RECOVERING;
- if (s->watchdog) {
+ if (s->ops->watchdog) {
module_printk(KERN_NOTICE, "Kicking span %s\n", s->name);
- s->watchdog(spans[x], DAHDI_WATCHDOG_NOINTS);
+ s->ops->watchdog(s, DAHDI_WATCHDOG_NOINTS);
} else {
module_printk(KERN_NOTICE, "Span %s is dead with no revival\n", s->name);
s->watchstate = DAHDI_WATCHSTATE_FAILED;
@@ -9437,7 +9437,7 @@
s->watchcounter = DAHDI_WATCHDOG_INIT;
}
}
- spin_unlock_irqrestore(&span_list_lock, flags);
+ spin_unlock_irqrestore(&chan_lock, flags);
if (!wdcheck) {
module_printk(KERN_NOTICE, "watchdog on duty!\n");
wdcheck=1;
More information about the dahdi-commits
mailing list