Files
linux/kernel
Ulrich Obergfell df57714959 watchdog: Fix print-once on enable
This patch avoids printing the message 'enabled on all CPUs,
...' multiple times. For example, the issue can occur in the
following scenario:

1) watchdog_nmi_enable() fails to enable PMU counters and sets
   cpu0_err.

2) 'echo [0|1] > /proc/sys/kernel/nmi_watchdog' is executed to
   disable and re-enable the watchdog mechanism 'on the fly'.

3) If watchdog_nmi_enable() succeeds to enable PMU counters,
   each CPU will print the message because step1 left behind a
   non-zero cpu0_err.

   if (!IS_ERR(event)) {
       if (cpu == 0 || cpu0_err)
           pr_info("enabled on all CPUs, ...")

The patch avoids this by clearing cpu0_err in watchdog_nmi_disable().

Signed-off-by: Ulrich Obergfell <[email protected]>
Signed-off-by: Andrew Jones <[email protected]>
Signed-off-by: Don Zickus <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Applied small cleanups. ]
Signed-off-by: Ingo Molnar <[email protected]>
2014-08-18 11:17:46 +02:00
..
2014-06-10 15:34:46 -07:00
2014-06-06 16:08:14 -07:00
…
…
…
…
2014-07-05 11:17:45 +02:00
…
…
…
…
…
…
…
…
…
…
2014-07-09 09:14:33 -07:00
…
…
…
2014-04-30 13:46:17 +02:00
…
…
…
2014-08-18 11:17:46 +02:00