watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work
authorPeter Zijlstra <peterz@infradead.org>
Thu, 7 Jun 2018 08:52:03 +0000 (10:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Jul 2018 07:20:43 +0000 (09:20 +0200)
commit9cf57731b63e37ed995b46690adc604891a9a28f
treec8bba79ceb4c998a5f18222a60747ac52236c5a0
parent4520843dfa34417eb1e2061f60d2345d9ca614e1
watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work

Oleg suggested to replace the "watchdog/%u" threads with
cpu_stop_work. That removes one thread per CPU while at the same time
fixes softlockup vs SCHED_DEADLINE.

But more importantly, it does away with the single
smpboot_update_cpumask_percpu_thread() user, which allows
cleanups/shrinkage of the smpboot interface.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/cpuhotplug.h
include/linux/nmi.h
kernel/cpu.c
kernel/watchdog.c