diff options
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 030ce8a5bb0e..be211a582930 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/pfn.h> | 28 | #include <linux/pfn.h> |
29 | #include <linux/suspend.h> | 29 | #include <linux/suspend.h> |
30 | #include <linux/mm_inline.h> | 30 | #include <linux/mm_inline.h> |
31 | #include <linux/firmware-map.h> | ||
31 | 32 | ||
32 | #include <asm/tlbflush.h> | 33 | #include <asm/tlbflush.h> |
33 | 34 | ||
@@ -523,6 +524,9 @@ int __ref add_memory(int nid, u64 start, u64 size) | |||
523 | BUG_ON(ret); | 524 | BUG_ON(ret); |
524 | } | 525 | } |
525 | 526 | ||
527 | /* create new memmap entry */ | ||
528 | firmware_map_add_hotplug(start, start + size, "System RAM"); | ||
529 | |||
526 | goto out; | 530 | goto out; |
527 | 531 | ||
528 | error: | 532 | error: |
@@ -684,9 +688,9 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) | |||
684 | if (page_count(page)) | 688 | if (page_count(page)) |
685 | not_managed++; | 689 | not_managed++; |
686 | #ifdef CONFIG_DEBUG_VM | 690 | #ifdef CONFIG_DEBUG_VM |
687 | printk(KERN_INFO "removing from LRU failed" | 691 | printk(KERN_ALERT "removing pfn %lx from LRU failed\n", |
688 | " %lx/%d/%lx\n", | 692 | pfn); |
689 | pfn, page_count(page), page->flags); | 693 | dump_page(page); |
690 | #endif | 694 | #endif |
691 | } | 695 | } |
692 | } | 696 | } |