diff options
author | Tejun Heo <tj@kernel.org> | 2011-02-16 19:11:09 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-02-16 19:11:09 +0300 |
commit | 56e827fbde9a3cb886a2fe138db0d99e98efbfb1 (patch) | |
tree | 1a5eb3631d847669179ffd97b5274dd70405c931 /arch/x86/mm/amdtopology_64.c | |
parent | 2e756be44714d0ec2f9827e4f4797c60876167a1 (diff) | |
download | linux-56e827fbde9a3cb886a2fe138db0d99e98efbfb1.tar.xz |
x86-64, NUMA: consolidate and improve memblk sanity checks
memblk sanity check was scattered around and incomplete. Consolidate
and improve.
* Confliction detection and cutoff_node() logic are moved to
numa_cleanup_meminfo().
* numa_cleanup_meminfo() clears the unused memblks before returning.
* Check and warn about invalid input parameters in numa_add_memblk().
* Check the maximum number of memblk isn't exceeded in
numa_add_memblk().
* numa_cleanup_meminfo() is now called before numa_emulation() so that
the emulation code also uses the cleaned up version.
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>
Diffstat (limited to 'arch/x86/mm/amdtopology_64.c')
0 files changed, 0 insertions, 0 deletions