diff options
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 3e16fe08150e..e759109abb36 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -463,19 +463,6 @@ void online_page(struct page *page) | |||
463 | 463 | ||
464 | #ifdef CONFIG_MEMORY_HOTPLUG | 464 | #ifdef CONFIG_MEMORY_HOTPLUG |
465 | /* | 465 | /* |
466 | * XXX: memory_add_physaddr_to_nid() is to find node id from physical address | ||
467 | * via probe interface of sysfs. If acpi notifies hot-add event, then it | ||
468 | * can tell node id by searching dsdt. But, probe interface doesn't have | ||
469 | * node id. So, return 0 as node id at this time. | ||
470 | */ | ||
471 | #ifdef CONFIG_NUMA | ||
472 | int memory_add_physaddr_to_nid(u64 start) | ||
473 | { | ||
474 | return 0; | ||
475 | } | ||
476 | #endif | ||
477 | |||
478 | /* | ||
479 | * Memory is added always to NORMAL zone. This means you will never get | 466 | * Memory is added always to NORMAL zone. This means you will never get |
480 | * additional DMA/DMA32 memory. | 467 | * additional DMA/DMA32 memory. |
481 | */ | 468 | */ |
@@ -506,6 +493,13 @@ int remove_memory(u64 start, u64 size) | |||
506 | } | 493 | } |
507 | EXPORT_SYMBOL_GPL(remove_memory); | 494 | EXPORT_SYMBOL_GPL(remove_memory); |
508 | 495 | ||
496 | #ifndef CONFIG_ACPI_NUMA | ||
497 | int memory_add_physaddr_to_nid(u64 start) | ||
498 | { | ||
499 | return 0; | ||
500 | } | ||
501 | #endif | ||
502 | |||
509 | #else /* CONFIG_MEMORY_HOTPLUG */ | 503 | #else /* CONFIG_MEMORY_HOTPLUG */ |
510 | /* | 504 | /* |
511 | * Memory Hotadd without sparsemem. The mem_maps have been allocated in advance, | 505 | * Memory Hotadd without sparsemem. The mem_maps have been allocated in advance, |