powerpc/pseries/mobility: prevent cpu hotplug during DT update
authorNathan Lynch <nathanl@linux.ibm.com>
Wed, 12 Jun 2019 04:45:05 +0000 (23:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:27:00 +0000 (07:27 +0200)
commitfd0d171c706462bcb5bfd2fc21997aac6dc3d801
tree32a7526c547e3ab6810a247a1a5588a1239c4105
parent6a7047471073c2cf8e375b2fe5a71bacf9799973
powerpc/pseries/mobility: prevent cpu hotplug during DT update

[ Upstream commit e59a175faa8df9d674247946f2a5a9c29c835725 ]

CPU online/offline code paths are sensitive to parts of the device
tree (various cpu node properties, cache nodes) that can be changed as
a result of a migration.

Prevent CPU hotplug while the device tree potentially is inconsistent.

Fixes: 410bccf97881 ("powerpc/pseries: Partition migration in the kernel")
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/mobility.c