]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/numa: Cleanup hot_add_scn_to_nid
authorNathan Fontenot <nfont@austin.ibm.com>
Tue, 17 Feb 2009 08:08:30 +0000 (08:08 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Feb 2009 04:53:04 +0000 (15:53 +1100)
commitc31b28a0a50a937fd17afe092b0c6ecf6d8d8daa
treef6fb686562a88813dc83d8d13bee00adf524e4c1
parent2ec382c47547308afde880e617aebced34b778da
powerpc/numa: Cleanup hot_add_scn_to_nid

This patch reworks the hot_add_scn_to_nid and its supporting functions
to make them easier to understand.  There are no functional changes in
this patch and has been tested on machine with memory represented in the
device tree as memory nodes and in the ibm,dynamic-memory property.

My previous patch that introduced support for hotplug memory add on
systems whose memory was represented by the ibm,dynamic-memory property
of the device tree only left the code more unintelligible.  This
will hopefully makes things easier to understand.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c