]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
watchdog: shwdt: fix usage of mod_timer
authorDavid Engraf <david.engraf@sysgo.com>
Wed, 20 Jul 2011 13:03:39 +0000 (15:03 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 2 Aug 2011 08:22:49 +0000 (08:22 +0000)
commitbea1906620ce72b63f83735c4cc2642b25ec54ae
treee96e96e0068ea332a4bb8dd3334f4de8c3d2e7f8
parentc027a474a68065391c8773f6e83ed5412657e369
watchdog: shwdt: fix usage of mod_timer

Fix the usage of mod_timer() and make the driver usable. mod_timer() must
be called with an absolute timeout in jiffies. The old implementation
used a relative timeout thus the hardware watchdog was never triggered.

Signed-off-by: David Engraf <david.engraf@sysgo.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Wim Van sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: stable <stable@kernel.org>
drivers/watchdog/shwdt.c