forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-wat…
…chdog * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: watchdog: booke_wdt: clean up status messages watchdog: cleanup spaces before tabs watchdog: convert to DEFINE_PCI_DEVICE_TABLE watchdog: Xen watchdog driver watchdog: Intel SCU Watchdog Timer Driver for Moorestown and Medfield platforms. watchdog: jz4740_wdt - fix magic character checking watchdog: add JZ4740 watchdog driver watchdog: it87_wdt: Add support for IT8721F watchdog watchdog: hpwdt: build hpwdt as module by default with NMI_DECODING enabled watchdog: hpwdt: Fix a couple of typos
- Loading branch information
Showing
42 changed files
with
1,498 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Author: Matthew McClintock | ||
* Maintainer: Kumar Gala <[email protected]> | ||
* | ||
* Copyright 2005, 2008, 2010 Freescale Semiconductor Inc. | ||
* Copyright 2005, 2008, 2010-2011 Freescale Semiconductor Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
|
@@ -221,9 +221,8 @@ static int booke_wdt_open(struct inode *inode, struct file *file) | |
if (booke_wdt_enabled == 0) { | ||
booke_wdt_enabled = 1; | ||
on_each_cpu(__booke_wdt_enable, NULL, 0); | ||
printk(KERN_INFO | ||
"PowerPC Book-E Watchdog Timer Enabled (wdt_period=%d)\n", | ||
booke_wdt_period); | ||
pr_debug("booke_wdt: watchdog enabled (timeout = %llu sec)\n", | ||
period_to_sec(booke_wdt_period)); | ||
} | ||
spin_unlock(&booke_wdt_lock); | ||
|
||
|
@@ -240,6 +239,7 @@ static int booke_wdt_release(struct inode *inode, struct file *file) | |
*/ | ||
on_each_cpu(__booke_wdt_disable, NULL, 0); | ||
booke_wdt_enabled = 0; | ||
pr_debug("booke_wdt: watchdog disabled\n"); | ||
#endif | ||
|
||
clear_bit(0, &wdt_is_active); | ||
|
@@ -271,21 +271,20 @@ static int __init booke_wdt_init(void) | |
{ | ||
int ret = 0; | ||
|
||
printk(KERN_INFO "PowerPC Book-E Watchdog Timer Loaded\n"); | ||
pr_info("booke_wdt: powerpc book-e watchdog driver loaded\n"); | ||
ident.firmware_version = cur_cpu_spec->pvr_value; | ||
|
||
ret = misc_register(&booke_wdt_miscdev); | ||
if (ret) { | ||
printk(KERN_CRIT "Cannot register miscdev on minor=%d: %d\n", | ||
WATCHDOG_MINOR, ret); | ||
pr_err("booke_wdt: cannot register device (minor=%u, ret=%i)\n", | ||
WATCHDOG_MINOR, ret); | ||
return ret; | ||
} | ||
|
||
spin_lock(&booke_wdt_lock); | ||
if (booke_wdt_enabled == 1) { | ||
printk(KERN_INFO | ||
"PowerPC Book-E Watchdog Timer Enabled (wdt_period=%d)\n", | ||
booke_wdt_period); | ||
pr_info("booke_wdt: watchdog enabled (timeout = %llu sec)\n", | ||
period_to_sec(booke_wdt_period)); | ||
on_each_cpu(__booke_wdt_enable, NULL, 0); | ||
} | ||
spin_unlock(&booke_wdt_lock); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
* interface and Solaris-compatible ioctls as best it is | ||
* able. | ||
* | ||
* NOTE: CP1400 systems appear to have a defective intr_mask | ||
* register on the PLD, preventing the disabling of | ||
* timer interrupts. We use a timer to periodically | ||
* reset 'stopped' watchdogs on affected platforms. | ||
* NOTE: CP1400 systems appear to have a defective intr_mask | ||
* register on the PLD, preventing the disabling of | ||
* timer interrupts. We use a timer to periodically | ||
* reset 'stopped' watchdogs on affected platforms. | ||
* | ||
* Copyright (c) 2000 Eric Brower ([email protected]) | ||
* Copyright (C) 2008 David S. Miller <[email protected]> | ||
|
@@ -107,13 +107,13 @@ static struct cpwd *cpwd_device; | |
* ------------------- | ||
* |- counter val -| | ||
* ------------------- | ||
* dcntr - Current 16-bit downcounter value. | ||
* When downcounter reaches '0' watchdog expires. | ||
* Reading this register resets downcounter with | ||
* 'limit' value. | ||
* limit - 16-bit countdown value in 1/10th second increments. | ||
* Writing this register begins countdown with input value. | ||
* Reading from this register does not affect counter. | ||
* dcntr - Current 16-bit downcounter value. | ||
* When downcounter reaches '0' watchdog expires. | ||
* Reading this register resets downcounter with | ||
* 'limit' value. | ||
* limit - 16-bit countdown value in 1/10th second increments. | ||
* Writing this register begins countdown with input value. | ||
* Reading from this register does not affect counter. | ||
* NOTES: After watchdog reset, dcntr and limit contain '1' | ||
* | ||
* status register (byte access): | ||
|
@@ -123,7 +123,7 @@ static struct cpwd *cpwd_device; | |
* |- UNUSED -| EXP | RUN | | ||
* --------------------------- | ||
* status- Bit 0 - Watchdog is running | ||
* Bit 1 - Watchdog has expired | ||
* Bit 1 - Watchdog has expired | ||
* | ||
*** PLD register block definition (struct wd_pld_regblk) | ||
* | ||
|
@@ -197,7 +197,7 @@ static u8 cpwd_readb(void __iomem *addr) | |
* Because of the CP1400 defect this should only be | ||
* called during initialzation or by wd_[start|stop]timer() | ||
* | ||
* index - sub-device index, or -1 for 'all' | ||
* index - sub-device index, or -1 for 'all' | ||
* enable - non-zero to enable interrupts, zero to disable | ||
*/ | ||
static void cpwd_toggleintr(struct cpwd *p, int index, int enable) | ||
|
@@ -317,13 +317,13 @@ static int cpwd_getstatus(struct cpwd *p, int index) | |
} else { | ||
/* Fudge WD_EXPIRED status for defective CP1400-- | ||
* IF timer is running | ||
* AND brokenstop is set | ||
* AND an interrupt has been serviced | ||
* AND brokenstop is set | ||
* AND an interrupt has been serviced | ||
* we are WD_EXPIRED. | ||
* | ||
* IF timer is running | ||
* AND brokenstop is set | ||
* AND no interrupt has been serviced | ||
* AND brokenstop is set | ||
* AND no interrupt has been serviced | ||
* we are WD_FREERUN. | ||
*/ | ||
if (p->broken && | ||
|
@@ -613,7 +613,7 @@ static int __devinit cpwd_probe(struct platform_device *op) | |
|
||
if (p->broken) { | ||
init_timer(&cpwd_timer); | ||
cpwd_timer.function = cpwd_brokentimer; | ||
cpwd_timer.function = cpwd_brokentimer; | ||
cpwd_timer.data = (unsigned long) p; | ||
cpwd_timer.expires = WD_BTIMEOUT; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.