aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:48:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:48:47 -0400
commit4400478ba3d939b680810aa004f1e954b4f8ba16 (patch)
tree416adac94a45cf935a792cd19c35cd52308e3094
parent0d7e92da50763b53b59b490ce57a323039ee241d (diff)
parent7abdd34dbf58bf271db7ee6551f2ff72204a83fd (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-watchdog
* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-watchdog: watchdog: Cleanup WATCHDOG_CORE help text watchdog: Fix POST failure on ASUS P5N32-E SLI and similar boards watchdog: shwdt: fix usage of mod_timer
-rw-r--r--drivers/watchdog/Kconfig3
-rw-r--r--drivers/watchdog/nv_tco.c8
-rw-r--r--drivers/watchdog/shwdt.c2
3 files changed, 9 insertions, 4 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index f441726ddf2b..86b0735e6aa0 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -36,9 +36,6 @@ config WATCHDOG_CORE
36 and gives them the /dev/watchdog interface (and later also the 36 and gives them the /dev/watchdog interface (and later also the
37 sysfs interface). 37 sysfs interface).
38 38
39 To compile this driver as a module, choose M here: the module will
40 be called watchdog.
41
42config WATCHDOG_NOWAYOUT 39config WATCHDOG_NOWAYOUT
43 bool "Disable watchdog shutdown on close" 40 bool "Disable watchdog shutdown on close"
44 help 41 help
diff --git a/drivers/watchdog/nv_tco.c b/drivers/watchdog/nv_tco.c
index afa78a54711e..809f41c30c44 100644
--- a/drivers/watchdog/nv_tco.c
+++ b/drivers/watchdog/nv_tco.c
@@ -458,7 +458,15 @@ static int __devexit nv_tco_remove(struct platform_device *dev)
458 458
459static void nv_tco_shutdown(struct platform_device *dev) 459static void nv_tco_shutdown(struct platform_device *dev)
460{ 460{
461 u32 val;
462
461 tco_timer_stop(); 463 tco_timer_stop();
464
465 /* Some BIOSes fail the POST (once) if the NO_REBOOT flag is not
466 * unset during shutdown. */
467 pci_read_config_dword(tco_pci, MCP51_SMBUS_SETUP_B, &val);
468 val &= ~MCP51_SMBUS_SETUP_B_TCO_REBOOT;
469 pci_write_config_dword(tco_pci, MCP51_SMBUS_SETUP_B, val);
462} 470}
463 471
464static struct platform_driver nv_tco_driver = { 472static struct platform_driver nv_tco_driver = {
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c
index db84f2322d1a..a267dc078daf 100644
--- a/drivers/watchdog/shwdt.c
+++ b/drivers/watchdog/shwdt.c
@@ -64,7 +64,7 @@
64 * misses its deadline, the kernel timer will allow the WDT to overflow. 64 * misses its deadline, the kernel timer will allow the WDT to overflow.
65 */ 65 */
66static int clock_division_ratio = WTCSR_CKS_4096; 66static int clock_division_ratio = WTCSR_CKS_4096;
67#define next_ping_period(cks) msecs_to_jiffies(cks - 4) 67#define next_ping_period(cks) (jiffies + msecs_to_jiffies(cks - 4))
68 68
69static const struct watchdog_info sh_wdt_info; 69static const struct watchdog_info sh_wdt_info;
70static struct platform_device *sh_wdt_dev; 70static struct platform_device *sh_wdt_dev;