Files
linux-kernel-test/arch/x86/include/asm
Tejun Heo 91556237ec x86-64, NUMA: Kill numa_nodes[]
numa_nodes[] doesn't carry any information which isn't present in
numa_meminfo.  Each entry is simply min/max range of all the memblks
for the node.  This is not only redundant but also inaccurate when
memblks for different nodes interleave - for example,
find_node_by_addr() can return the wrong nodeid.

Kill numa_nodes[] and always use numa_meminfo instead.

* nodes_cover_memory() is renamed to numa_meminfo_cover_memory() and
  now operations on numa_meminfo and returns bool.

* setup_node_bootmem() needs min/max range.  Compute the range on the
  fly.  setup_node_bootmem() invocation is restructured to use outer
  loop instead of hardcoding the double invocations.

* find_node_by_addr() now operates on numa_meminfo.

* setup_physnodes() builds physnodes[] from memblks.  This will go
  away when emulation code is updated to use struct numa_meminfo.

This patch also makes the following misc changes.

* Clearing of nodes_add[] clearing is converted to memset().

* numa_add_memblk() in amd_numa_init() is moved down a bit for
  consistency.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Shaohui Zheng <shaohui.zheng@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@linux.intel.com>
2011-02-16 17:11:09 +01:00
..
2011-01-13 08:03:25 -08:00
2010-11-12 00:45:41 +01:00
2009-12-05 09:10:12 -08:00
2011-01-21 14:11:12 +01:00
2010-02-16 21:22:26 -08:00
2010-10-26 16:52:08 -07:00
2010-05-07 17:13:04 -07:00
2011-01-07 10:03:50 -05:00
2010-03-10 13:23:34 +01:00
2010-10-26 16:52:08 -07:00
2010-10-07 14:08:55 +01:00
2010-08-14 22:26:51 +02:00
2011-01-07 15:08:53 +01:00
2011-01-13 17:32:46 -08:00
2010-06-09 11:12:36 +02:00
2010-01-05 15:34:49 +09:00
2010-06-29 12:12:59 +02:00
2010-05-07 17:13:04 -07:00
2011-01-07 15:08:52 +01:00
2011-02-16 17:11:09 +01:00
2010-06-29 12:12:59 +02:00
2011-01-13 17:32:39 -08:00
2011-01-26 10:49:57 +10:00
2010-11-18 12:52:04 +01:00
2011-01-26 08:10:49 +01:00
2010-11-01 15:38:34 -04:00
2010-10-26 16:52:08 -07:00
2011-01-13 17:32:44 -08:00
2011-01-13 17:32:44 -08:00
2011-01-13 17:32:44 -08:00
2011-01-13 17:32:44 -08:00
2010-12-15 17:11:30 -08:00
2010-02-12 09:42:39 -08:00
2010-07-20 17:41:14 -07:00
2010-11-12 00:45:41 +01:00
2011-02-14 13:28:31 +01:00
2011-01-12 11:23:16 +02:00
2010-10-18 10:49:34 -04:00