it87_wdt: Add support for watchdogs with 8b timers
PATCH 1/1 it87_wdt: Add support for watchdogs with 8b timers
This patch adds support for watchdogs with 8b timers, like ones in IT8702F and older revisions of IT8712F Super IO chip, to it87_wdt driver. This patch should be used after the patch 'it87_wdt: Add support for IT8720F watchdog'.
Signed-off-by Ondrej Zajicek <[email protected]>
---
drivers/watchdog/Kconfig +5 -5
@@ -547,11 +547,11 @@ config IT87_WDT tristate "IT87 Watchdog Timer" depends on X86 && EXPERIMENTAL ---help--- - This is the driver for the hardware watchdog on the ITE - IT8716, IT8718, IT8720, IT8726, IT8712(Version J,K) Super I/O - chips. This watchdog simply watches your kernel to make sure - it doesn't freeze, and if it does, it reboots your computer - after a certain amount of time. + This is the driver for the hardware watchdog on the ITE IT8702, + IT8712, IT8716, IT8718, IT8720, IT8726, IT8712 Super I/O chips. + This watchdog simply watches your kernel to make sure it doesn't + freeze, and if it does, it reboots your computer after a certain + amount of time. To compile this driver as a module, choose M here: the module will be called it87_wdt.
drivers/watchdog/it87_wdt.c +58 -23
181 lines not on this page · raw message
Signature · 5 lines
Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: [email protected]) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
drivers/watchdog/it87_wdt.c static inline void superio_outw(int val, · line 240
Quoted 6 lines · On Tue, 14 Sep 2010 02:54:16 +0200 Ondrej Zajicek <[email protected]>…
drivers/watchdog/it87_wdt.c +6
-0+static int wdt_round_time (int t) +{ + t +=59 ; + t -= t %60 ; +return t; +}
fwiw, we could use kernel.h's roundup() here.