Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248594
b: refs/heads/master
c: e04ab2b
h: refs/heads/master
v: v3
  • Loading branch information
Mandeep Singh Baines authored and Ingo Molnar committed May 23, 2011
1 parent bd8ebc5 commit 31c28aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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: 824c6b7f6294101f30e141117def224a56c203e6
refs/heads/master: e04ab2bc41b35c0cb6cdb07c8443f91aa738cf78
20 changes: 12 additions & 8 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,15 +507,19 @@ static void watchdog_disable_all_cpus(void)
int proc_dowatchdog_enabled(struct ctl_table *table, int write,
void __user *buffer, size_t *length, loff_t *ppos)
{
proc_dointvec(table, write, buffer, length, ppos);
int ret;

if (write) {
if (watchdog_enabled)
watchdog_enable_all_cpus();
else
watchdog_disable_all_cpus();
}
return 0;
ret = proc_dointvec(table, write, buffer, length, ppos);
if (ret || !write)
goto out;

if (watchdog_enabled)
watchdog_enable_all_cpus();
else
watchdog_disable_all_cpus();

out:
return ret;
}

int proc_dowatchdog_thresh(struct ctl_table *table, int write,
Expand Down

0 comments on commit 31c28aa

Please sign in to comment.