]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc numa: Support sparse online node map
authorNathan Lynch <nathanl@austin.ibm.com>
Tue, 21 Mar 2006 00:36:45 +0000 (18:36 -0600)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Mar 2006 04:04:01 +0000 (15:04 +1100)
commite50fe0f265de8164e0aca1416152c1b405971ba4
tree9abc78e92b304e5ee09428db0cb8922cc86aa213
parent599fa4763ecc1a772a87a88897ab44f36aff4104
[PATCH] powerpc numa: Support sparse online node map

The powerpc numa code unconditionally onlines all nodes from 0 to the
highest node id found, regardless of whether cpus or memory are
present in the nodes.  This wastes 8K per node and complicates some
cpu and memory hotplug situations, such as adding a resource that
doesn't map to one of the nodes discovered at boot.

Set nodes online as resources are scanned.  Fall back to node 0 only
when we're sure this isn't a NUMA machine.

Instead of defaulting to node 0 for cases of hot-adding a resource
which doesn't belong to any initialized node, assign it to the first
online node.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/numa.c