Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-watchdog
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Linus Torvalds committed Aug 3, 2011
2 parents 0d7e92d + 7abdd34 commit 4400478
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/watchdog/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ config WATCHDOG_CORE
and gives them the /dev/watchdog interface (and later also the
sysfs interface).

To compile this driver as a module, choose M here: the module will
be called watchdog.

config WATCHDOG_NOWAYOUT
bool "Disable watchdog shutdown on close"
help
Expand Down
8 changes: 8 additions & 0 deletions drivers/watchdog/nv_tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,15 @@ static int __devexit nv_tco_remove(struct platform_device *dev)

static void nv_tco_shutdown(struct platform_device *dev)
{
u32 val;

tco_timer_stop();

/* Some BIOSes fail the POST (once) if the NO_REBOOT flag is not
* unset during shutdown. */
pci_read_config_dword(tco_pci, MCP51_SMBUS_SETUP_B, &val);
val &= ~MCP51_SMBUS_SETUP_B_TCO_REBOOT;
pci_write_config_dword(tco_pci, MCP51_SMBUS_SETUP_B, val);
}

static struct platform_driver nv_tco_driver = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/shwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
* misses its deadline, the kernel timer will allow the WDT to overflow.
*/
static int clock_division_ratio = WTCSR_CKS_4096;
#define next_ping_period(cks) msecs_to_jiffies(cks - 4)
#define next_ping_period(cks) (jiffies + msecs_to_jiffies(cks - 4))

static const struct watchdog_info sh_wdt_info;
static struct platform_device *sh_wdt_dev;
Expand Down

0 comments on commit 4400478

Please sign in to comment.