aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorThomas Mingarelli <Thomas.Mingarelli@hp.com>2010-03-17 11:33:31 -0400
committerWim Van Sebroeck <wim@iguana.be>2010-04-06 10:37:43 -0400
commit8ba42bd88c6982fe224b09c33151c797b0fdf1a5 (patch)
treee040fc1b21aab6ae1fa582a33cde62a18edfef49 /drivers/watchdog
parent4c7d849204341dea19be941a3c1eb4bdffac9cc4 (diff)
[WATCHDOG] hpwdt - fix lower timeout limit
[Novell Bug 581103] HP Watchdog driver has arbitrary (wrong) timeout limits. Fix the lower timeout limit to a more appropriate value. Signed-off-by: Thomas Mingarelli <Thomas.Mingarelli@hp.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Cc: stable <stable@kernel.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/hpwdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
index 70c2c24660d0..af48075dafb1 100644
--- a/drivers/watchdog/hpwdt.c
+++ b/drivers/watchdog/hpwdt.c
@@ -443,7 +443,7 @@ static void hpwdt_ping(void)
443static int hpwdt_change_timer(int new_margin) 443static int hpwdt_change_timer(int new_margin)
444{ 444{
445 /* Arbitrary, can't find the card's limits */ 445 /* Arbitrary, can't find the card's limits */
446 if (new_margin < 30 || new_margin > 600) { 446 if (new_margin < 5 || new_margin > 600) {
447 printk(KERN_WARNING 447 printk(KERN_WARNING
448 "hpwdt: New value passed in is invalid: %d seconds.\n", 448 "hpwdt: New value passed in is invalid: %d seconds.\n",
449 new_margin); 449 new_margin);