These patches were tested with hotplug and /proc/sys/kernel/watchdog_cpumask manipulations.
I used 'grep watchdog_fn /proc/timer_list | wc -l' to verify the expected number of active timers. Please have a look.. --- include/linux/cpuhotplug.h | 1 + include/linux/kthread.h | 1 - include/linux/nmi.h | 5 ++ include/linux/sched.h | 2 +- include/linux/smpboot.h | 15 +----- kernel/cpu.c | 5 ++ kernel/kthread.c | 34 +++++++++--- kernel/sched/core.c | 31 ++++------- kernel/smpboot.c | 54 ++----------------- kernel/watchdog.c | 132 +++++++++++++++++++-------------------------- 10 files changed, 112 insertions(+), 168 deletions(-)

