]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:28:51 +0000 (07:28 +0200)
commit5d87874f9076dd6196db8473f2811db2d08ca45c
treec2c1c23892898332d624eb43b150e011805dce90
parent4a48fb8567fbfce6fb933740182e83dc08bad4b4
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