s390/smp: disallow CPU hotplug of CPU 0
authorTobias Huschle <huschle@linux.ibm.com>
Wed, 16 Aug 2023 07:28:20 +0000 (09:28 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Sep 2023 11:26:55 +0000 (13:26 +0200)
commit496bb034f4ff4866452ced7fdfaa4a0736230bdf
tree7f58003791f03b5bcaf6928e73c81f9056f8614b
parent4a1725281fc5b0009944b1c0e1d2c1dc311a09ec
s390/smp: disallow CPU hotplug of CPU 0

On s390, CPU 0 has special properties in comparison to other CPUs, as it
cannot be deconfigured for example. Therefore, allowing to hotplug CPU 0
introduces additional complexity when handling these properties.
Disallowing to hotplug CPU 0 allows to remove such complexities.

This follows x86 which also prevents offlining of CPU0 since commit
e59e74dc48a3 ("x86/topology: Remove CPU0 hotplug option").

[hca@linux.ibm.com: changed commit message]
Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Tobias Huschle <huschle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/smp.c