powerpc/numa: Do not update sysfs cpu registration from invalid context
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 25 Jun 2013 03:08:05 +0000 (22:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 21:07:22 +0000 (14:07 -0700)
commit910a165889c9e0c79cb96883db3948c5eea204e2
tree65a6b2b7bcabe7d8dee64a320cfe4a8ae4a9dc23
parent0288917da5e378ea1fc0290f824d85ac9e07570d
powerpc/numa: Do not update sysfs cpu registration from invalid context

commit dd023217e17e72b46fb4d49c7734c426938c3dba upstream.

The topology update code that updates the cpu node registration in sysfs
should not be called while in stop_machine(). The register/unregister
calls take a lock and may sleep.

This patch moves these calls outside of the call to stop_machine().

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/numa.c