projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3973576
)
watchdog: Don't change watchdog state on read of sysctl
author
Marcin Slusarz
<
[email protected]
>
Fri, 28 Jan 2011 16:00:33 +0000
(11:00 -0500)
committer
Ingo Molnar
<
[email protected]
>
Mon, 31 Jan 2011 12:22:43 +0000
(13:22 +0100)
Signed-off-by: Marcin Slusarz <
[email protected]
>
[ add {}'s to fix a warning ]
Signed-off-by: Don Zickus <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: <
[email protected]
>
LKML-Reference: <
1296230433
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/watchdog.c
patch
|
blob
|
history
diff --git
a/kernel/watchdog.c
b/kernel/watchdog.c
index c7e0049344bd6eb069a3542a90b1994cd621d917..f37f974aa81b503aabad7e6fc479494e86325a06 100644
(file)
--- a/
kernel/watchdog.c
+++ b/
kernel/watchdog.c
@@
-493,10
+493,12
@@
int proc_dowatchdog_enabled(struct ctl_table *table, int write,
{
proc_dointvec(table, write, buffer, length, ppos);
- if (watchdog_enabled)
- watchdog_enable_all_cpus();
- else
- watchdog_disable_all_cpus();
+ if (write) {
+ if (watchdog_enabled)
+ watchdog_enable_all_cpus();
+ else
+ watchdog_disable_all_cpus();
+ }
return 0;
}