]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog/core, powerpc: Replace watchdog_nmi_reconfigure()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Oct 2017 10:34:50 +0000 (12:34 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Oct 2017 08:53:53 +0000 (10:53 +0200)
commit931bded61696d1e6158b0bd1eba39630753ccb11
tree7d233652a05a29c420e274ee00727be7a079ebb8
parent7c25e923160b34255569dd70c5b13563b0267e95
watchdog/core, powerpc: Replace watchdog_nmi_reconfigure()

The recent cleanup of the watchdog code split watchdog_nmi_reconfigure()
into two stages. One to stop the NMI and one to restart it after
reconfiguration. That was done by adding a boolean 'run' argument to the
code, which is functionally correct but not necessarily a piece of art.

Replace it by two explicit functions: watchdog_nmi_stop() and
watchdog_nmi_start().

Fixes: 5d3c665b6266 ("watchdog/core, powerpc: Make watchdog_nmi_reconfigure() two stage")
Requested-by: Linus 'Nursing his pet-peeve' Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: Thomas 'Mopping up garbage' Gleixner <tglx@linutronix.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1710021957480.2114@nanos
arch/powerpc/kernel/watchdog.c
include/linux/nmi.h
kernel/watchdog.c