]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Aug 2011 04:58:42 +0000 (21:58 -0700)
commitf9e4715d434299f8897e3edfed9b6dc90629ffda
tree7b24a336b6154cb9720a545e58b31d7f5ea959c2
parent52880922de44a7950283451b06db5aec0fc34a99
watchdog: shwdt: fix usage of mod_timer

commit bea1906620ce72b63f83735c4cc2642b25ec54ae upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/watchdog/shwdt.c