From: Keith Mannthey The api for hot-add memory already has a construct for finding nodes based on an address, memory_add_physaddr_to_nid. This patch allows the fucntion to do something besides return 0. It uses the nodes_add infomation to lookup to node info for a hot add event. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton --- diff -puN arch/x86_64/mm/init.c~hot-add-mem-x86_64-use-config_memory_hotplug_reserve arch/x86_64/mm/init.c --- a/arch/x86_64/mm/init.c~hot-add-mem-x86_64-use-config_memory_hotplug_reserve +++ a/arch/x86_64/mm/init.c @@ -555,6 +555,13 @@ int memory_add_physaddr_to_nid(u64 start } #endif +#ifndef CONFIG_ACPI_NUMA +int memory_add_physaddr_to_nid(u64 start) +{ + return 0; +} +#endif + #else /* CONFIG_MEMORY_HOTPLUG */ /* * Memory Hotadd without sparsemem. The mem_maps have been allocated in advance, _