x86, numa: Avoid compiling NUMA emulation functions without CONFIG_NUMA_EMU
authorDavid Rientjes <rientjes@google.com>
Thu, 23 Dec 2010 01:23:47 +0000 (17:23 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 23 Dec 2010 23:27:12 +0000 (15:27 -0800)
commit4e76f4e67a106ed827ca721b4c8b622047cd2f6d
tree12e650c56148e086183d1256bc1843134b0659bf
parent34dc9e74968ef4b582c3815b0124d88a68dfabef
x86, numa: Avoid compiling NUMA emulation functions without CONFIG_NUMA_EMU

Both acpi_get_nodes() and amd_get_nodes() are only necessary when
CONFIG_NUMA_EMU is enabled, so avoid compiling them when the option is
disabled.

Signed-off-by: David Rientjes <rientjes@google.com>
LKML-Reference: <alpine.DEB.2.00.1012221701210.3701@chino.kir.corp.google.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/acpi.h
arch/x86/include/asm/amd_nb.h
arch/x86/mm/amdtopology_64.c
arch/x86/mm/srat_64.c