x86-64, NUMA: Move NUMA emulation into numa_emulation.c
authorTejun Heo <tj@kernel.org>
Tue, 22 Feb 2011 10:10:08 +0000 (11:10 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 22 Feb 2011 10:10:08 +0000 (11:10 +0100)
commitb8ef9172b2aad7eeb1fcd37a9e632c7b24da1f64
treec63a57e3c392f2d45ba975d29cdd768904ef169f
parentfbe99959d1db85222829a64d869dcab704ac7ec8
x86-64, NUMA: Move NUMA emulation into numa_emulation.c

Create numa_emulation.c and move all NUMA emulation code there.  The
definitions of struct numa_memblk and numa_meminfo are moved to
numa_64.h.  Also, numa_remove_memblk_from(), numa_cleanup_meminfo(),
numa_reset_distance() along with numa_emulation() are made global.

- v2: Internal declarations moved to numa_internal.h as suggested by
      Yinghai.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
arch/x86/mm/Makefile
arch/x86/mm/numa_64.c
arch/x86/mm/numa_emulation.c [new file with mode: 0644]
arch/x86/mm/numa_internal.h [new file with mode: 0644]