OSDN Git Service

s390/smp: do not preserve boot CPU lowcore on hotplug
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 6 May 2021 14:26:53 +0000 (16:26 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:07:00 +0000 (17:07 +0200)
commit587704efb3dea5685a2f571b75bd3dc47f73fec1
tree5201a0c2078733d0b8ec057833c3e3112e8d5f03
parent5789284710aa121416524acc54ac0d8c27c3c2ef
s390/smp: do not preserve boot CPU lowcore on hotplug

Once the kernel is running the boot CPU lowcore becomes
freeable and does not differ from the secondary CPU ones
in any way. Make use of it and do not preserve the boot
CPU lowcore on unplugging. That allows returning unused
memory when the boot CPU is offline and makes the code
more clear.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/smp.c