]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/pseries: address checkpatch warnings in dlpar_offline_cpu
authorNathan Lynch <nathanl@linux.ibm.com>
Wed, 16 Oct 2019 18:36:10 +0000 (13:36 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Nov 2019 00:26:45 +0000 (11:26 +1100)
commit3366ebe9e19ba3c672a00a6fb86f0ac8636ee989
treee3e5831ca94d163a3e20965c23ccba72079a983c
parent505127068d9b705a6cf335143239db91bfe7bbe2
powerpc/pseries: address checkpatch warnings in dlpar_offline_cpu

Remove some stray blank lines, convert a printk to pr_warn, and
address a line length violation.

One functional change: use WARN_ON instead of BUG_ON in case H_PROD of
a ceded thread yields an unexpected result from the platform. We can
expect this code path to get uninterruptibly stuck in __cpu_die() if
this happens, but that's more desirable than crashing.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Fixes: b6db63d1a7f0 ("pseries/pseries: Add code to online/offline CPUs of a DLPAR node")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191016183611.10867-2-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/hotplug-cpu.c