Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100168
b: refs/heads/master
c: 7b479be
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 13, 2008
1 parent 0a760fc commit 9f0a024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9958e810f8ac92f8a447035ee6555420ba27b847
refs/heads/master: 7b479becdb8c1fb4ff6fbb2a4076c471c737b54c
19 changes: 2 additions & 17 deletions trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,6 @@ u64 __init early_reserve_e820(u64 startt, u64 sizet, u64 align)
# define MAX_ARCH_PFN MAXMEM>>PAGE_SHIFT
#endif

/*
* Last pfn which the user wants to use.
*/
unsigned long __initdata end_user_pfn = MAX_ARCH_PFN;

/*
* Find the highest page frame number we have available
*/
Expand Down Expand Up @@ -1085,8 +1080,6 @@ static unsigned long __init e820_end_pfn(unsigned long limit_pfn, unsigned type)

if (last_pfn > max_arch_pfn)
last_pfn = max_arch_pfn;
if (last_pfn > end_user_pfn)
last_pfn = end_user_pfn;

printk(KERN_INFO "last_pfn = %#lx max_arch_pfn = %#lx\n",
last_pfn, max_arch_pfn);
Expand Down Expand Up @@ -1131,12 +1124,6 @@ int __init e820_find_active_region(const struct e820entry *ei,
if (*ei_endpfn > last_pfn)
*ei_endpfn = last_pfn;

/* Obey end_user_pfn to save on memmap */
if (*ei_startpfn >= end_user_pfn)
return 0;
if (*ei_endpfn > end_user_pfn)
*ei_endpfn = end_user_pfn;

return 1;
}

Expand Down Expand Up @@ -1201,7 +1188,6 @@ static int __init parse_memopt(char *p)

userdef = 1;
mem_size = memparse(p, &p);
end_user_pfn = mem_size>>PAGE_SHIFT;
e820_remove_range(mem_size, ULLONG_MAX - mem_size, E820_RAM, 1);

return 0;
Expand Down Expand Up @@ -1245,10 +1231,9 @@ static int __init parse_memmap_opt(char *p)
} else if (*p == '$') {
start_at = memparse(p+1, &p);
e820_add_region(start_at, mem_size, E820_RESERVED);
} else {
end_user_pfn = (mem_size >> PAGE_SHIFT);
} else
e820_remove_range(mem_size, ULLONG_MAX - mem_size, E820_RAM, 1);
}

return *p == '\0' ? 0 : -EINVAL;
}
early_param("memmap", parse_memmap_opt);
Expand Down

0 comments on commit 9f0a024

Please sign in to comment.