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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:49:34 +0000 (11:49 +1000)
commitdd023217e17e72b46fb4d49c7734c426938c3dba
treeab68156166d38800f77502f7bbbc6ba4aa73578b
parentec207dcc91c62aeccb65b36c7764076f5e5aaddb
powerpc/numa: Do not update sysfs cpu registration from invalid context

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>
CC: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c