watchdog/core, powerpc: Lock cpus across reconfiguration
authorThomas Gleixner <tglx@linutronix.de>
Tue, 3 Oct 2017 14:37:53 +0000 (16:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Oct 2017 08:53:54 +0000 (10:53 +0200)
commite31d6883f21c1cdfe5bc64e28411f8a92b783fde
treeb027de413e024bea4f8e88d364b7413bc20ac9b3
parent6b9dc4806b28214a4a260517e59439e0ac12a15e
watchdog/core, powerpc: Lock cpus across reconfiguration

Instead of dropping the cpu hotplug lock after stopping NMI watchdog and
threads and reaquiring for restart, the code and the protection rules
become more obvious when holding cpu hotplug lock across the full
reconfiguration.

Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: Thomas 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.1710022105570.2114@nanos
arch/powerpc/kernel/watchdog.c
kernel/smpboot.c
kernel/watchdog.c