]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/hotplug: Add debug printks for hotplug callback failures
authorDongli Zhang <dongli.zhang@oracle.com>
Fri, 9 Apr 2021 05:53:16 +0000 (22:53 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Aug 2021 16:31:32 +0000 (18:31 +0200)
commit0f6c3fc387f230112615447adf825a1294f4352b
treed125a5ac0533fa2a3a70adad3210598a8b1c8c77
parent9fb1fefab6d47b58c20a1d2e1c5a612219f596ab
cpu/hotplug: Add debug printks for hotplug callback failures

CPU hotplug callbacks can fail and cause a rollback to the previous
state. These failures are silent and therefore hard to debug.

Add pr_debug() to the up and down paths which provide information about the
error code, the CPU and the failed state. The debug printks can be enabled
via kernel command line or sysfs.

[ tglx: Adopt to current mainline, massage printk and changelog ]

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Qais Yousef <qais.yousef@arm.com>
Link: https://lore.kernel.org/r/20210409055316.1709-1-dongli.zhang@oracle.com
kernel/cpu.c