lkml.org 
[lkml]   [2006]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/1] watchdog driver for Digital-Logic MSM-P5XEN PC104 unit
Hi Gabriele,

> A simple watchdog driver for Digital-Logic's MSM-P5XEN PC104 unit.
> The watchdog is a LTC1232 controlled by a single I/O port @ 0x1037.
> The watchdog must be refreshed (writing a single byte) to the device
> at least every 600 msecs (which is a little of overhead, but PC104
> industrial applications requires a high degree of safety/reliability.)

I was looking at your code and have a question:
> +static void
> +wdt_ping(void)
> +{
> + /*
> + * Clear-pulse trailing edge scheduling.
> + *
> + * We use mod_timer() rather than add_timer() because a timer could
> + * be already activated.
> + * kernel/timer.c:
> + * "... since add_timer() cannot modify an already running timer."
> + */
> + mod_timer(&wdt_timer, jiffies + (HZ / 10));
> +
> + wdt_disable();
> +}

Shouldn't this be wdt_enable();?
Please clarify.

Thanks,
Wim.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-01 20:55    [W:0.043 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site