aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-13 20:22:41 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-13 20:22:41 -0400
commitdf133e8fa8e1d4afa57c84953bf80eaed2b145e0 (patch)
tree863d38b50f91629513a414227874a1142d5d21e5 /arch/x86/kernel
parente3438330f58330ec236c861d43f46bef06780e62 (diff)
parentbeb9147e95a75f41c984d7235cf6d59f3ca2d5db (diff)
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 mm updates from Ingo Molnar: "This tree includes the following changes: - fix memory hotplug - fix hibernation bootup memory layout assumptions - fix hyperv numa guest kernel messages - remove dead code - update documentation" * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/mm: Update memory map description to list hypervisor-reserved area x86/mm, hibernate: Do not assume the first e820 area to be RAM x86/mm/numa: Drop dead code and rename setup_node_data() to setup_alloc_data() x86/mm/hotplug: Modify PGD entry when removing memory x86/mm/hotplug: Pass sync_global_pgds() a correct argument in remove_pagetable() x86: Remove set_pmd_pfn
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/e820.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 988c00a1f60d..49f886481615 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -682,15 +682,14 @@ void __init parse_e820_ext(u64 phys_addr, u32 data_len)
682 * hibernation (32 bit) or software suspend and suspend to RAM (64 bit). 682 * hibernation (32 bit) or software suspend and suspend to RAM (64 bit).
683 * 683 *
684 * This function requires the e820 map to be sorted and without any 684 * This function requires the e820 map to be sorted and without any
685 * overlapping entries and assumes the first e820 area to be RAM. 685 * overlapping entries.
686 */ 686 */
687void __init e820_mark_nosave_regions(unsigned long limit_pfn) 687void __init e820_mark_nosave_regions(unsigned long limit_pfn)
688{ 688{
689 int i; 689 int i;
690 unsigned long pfn; 690 unsigned long pfn = 0;
691 691
692 pfn = PFN_DOWN(e820.map[0].addr + e820.map[0].size); 692 for (i = 0; i < e820.nr_map; i++) {
693 for (i = 1; i < e820.nr_map; i++) {
694 struct e820entry *ei = &e820.map[i]; 693 struct e820entry *ei = &e820.map[i];
695 694
696 if (pfn < PFN_UP(ei->addr)) 695 if (pfn < PFN_UP(ei->addr))