diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2013-06-07 07:35:42 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2013-06-20 09:46:32 -0400 |
commit | 940be35ac0139530d7554aa2352a8388e3d4adca (patch) | |
tree | 5da95cdb511ed220e02bae139eddb49d5e57d5b3 /kernel/watchdog.c | |
parent | 3c00ea82c724fab0b98f15428a804cb45eb9ad38 (diff) |
watchdog: Boot-disable by default on full dynticks
When the watchdog runs, it prevents the full dynticks
CPUs from stopping their tick because the hard lockup
detector uses perf events internally, which in turn
rely on the periodic tick.
Since this is a rather confusing behaviour that is not
easy to track down and identify for those who want to
test CONFIG_NO_HZ_FULL, let's default disable the
watchdog on boot time when full dynticks is enabled.
The user can still enable it later on runtime using
proc or sysctl.
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Anish Singh <anish198519851985@gmail.com>
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r-- | kernel/watchdog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 51c4f34d258e..1241d8c91d5e 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
@@ -553,6 +553,14 @@ void __init lockup_detector_init(void) | |||
553 | { | 553 | { |
554 | set_sample_period(); | 554 | set_sample_period(); |
555 | 555 | ||
556 | #ifdef CONFIG_NO_HZ_FULL | ||
557 | if (watchdog_user_enabled) { | ||
558 | watchdog_user_enabled = 0; | ||
559 | pr_warning("Disabled lockup detectors by default for full dynticks\n"); | ||
560 | pr_warning("You can reactivate it with 'sysctl -w kernel.watchdog=1'\n"); | ||
561 | } | ||
562 | #endif | ||
563 | |||
556 | if (watchdog_user_enabled) | 564 | if (watchdog_user_enabled) |
557 | watchdog_enable_all_cpus(); | 565 | watchdog_enable_all_cpus(); |
558 | } | 566 | } |