Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232764
b: refs/heads/master
c: 3973576
h: refs/heads/master
v: v3
  • Loading branch information
Marcin Slusarz authored and Ingo Molnar committed Jan 31, 2011
1 parent aa1bcd4 commit a49de7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4135038a582c20ffdadfcf6564852e0b72a20968
refs/heads/master: 397357666de6b5b6adb5fa99f9758ec8cf30ac34
13 changes: 7 additions & 6 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,6 @@ static int watchdog_enable(int cpu)
wake_up_process(p);
}

/* if any cpu succeeds, watchdog is considered enabled for the system */
watchdog_enabled = 1;

return 0;
}

Expand Down Expand Up @@ -459,12 +456,16 @@ static void watchdog_disable(int cpu)
static void watchdog_enable_all_cpus(void)
{
int cpu;
int result = 0;

watchdog_enabled = 0;

for_each_online_cpu(cpu)
result += watchdog_enable(cpu);
if (!watchdog_enable(cpu))
/* if any cpu succeeds, watchdog is considered
enabled for the system */
watchdog_enabled = 1;

if (result)
if (!watchdog_enabled)
printk(KERN_ERR "watchdog: failed to be enabled on some cpus\n");

}
Expand Down

0 comments on commit a49de7b

Please sign in to comment.