watchdog: Make it work under full dynticks
authorFrederic Weisbecker <[email protected]>
Tue, 23 Jul 2013 00:31:06 +0000 (02:31 +0200)
committerIngo Molnar <[email protected]>
Tue, 30 Jul 2013 20:29:15 +0000 (22:29 +0200)
A perf event can be used without forcing the tick to
stay alive if it doesn't use a frequency but a sample
period and if it doesn't throttle (raise storm of events).

Since the lockup detector neither use a perf event frequency
nor should ever throttle due to its high period, it can now
run concurrently with the full dynticks feature.

So remove the hack that disabled the watchdog.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Srivatsa S. Bhat <[email protected]>
Cc: Anish Singh <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/watchdog.c

index 1241d8c91d5e75efb3ba08ff18109a0a4f84e12c..51c4f34d258ea397266e0dd1a96a16436415a38f 100644 (file)
@@ -553,14 +553,6 @@ void __init lockup_detector_init(void)
 {
        set_sample_period();
 
-#ifdef CONFIG_NO_HZ_FULL
-       if (watchdog_user_enabled) {
-               watchdog_user_enabled = 0;
-               pr_warning("Disabled lockup detectors by default for full dynticks\n");
-               pr_warning("You can reactivate it with 'sysctl -w kernel.watchdog=1'\n");
-       }
-#endif
-
        if (watchdog_user_enabled)
                watchdog_enable_all_cpus();
 }