Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136830
b: refs/heads/master
c: d88316c
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Feb 12, 2009
1 parent 498664e commit 29be015
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 4769843bc265a9c24584b98709cf39e1df5c1404
refs/heads/master: d88316c243e5458a1888edbe0353c4dec6e61c73
15 changes: 8 additions & 7 deletions trunk/arch/x86/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ early_param("highmem", parse_highmem);
*/
void __init lowmem_pfn_init(void)
{
/* max_low_pfn is 0, we already have early_res support */
max_low_pfn = max_pfn;

if (highmem_pages == -1)
highmem_pages = 0;
#ifdef CONFIG_HIGHMEM
Expand Down Expand Up @@ -720,6 +723,8 @@ void __init lowmem_pfn_init(void)
*/
void __init highmem_pfn_init(void)
{
max_low_pfn = MAXMEM_PFN;

if (highmem_pages == -1)
highmem_pages = max_pfn - MAXMEM_PFN;

Expand All @@ -732,7 +737,6 @@ void __init highmem_pfn_init(void)
pages_to_mb(highmem_pages));
highmem_pages = 0;
}
max_low_pfn = MAXMEM_PFN;
#ifndef CONFIG_HIGHMEM
/* Maximum memory usable is what is directly addressable */
printk(KERN_WARNING "Warning only %ldMB will be used.\n", MAXMEM>>20);
Expand All @@ -758,13 +762,10 @@ void __init find_low_pfn_range(void)
{
/* it could update max_pfn */

/* max_low_pfn is 0, we already have early_res support */
max_low_pfn = max_pfn;

if (max_low_pfn > MAXMEM_PFN)
highmem_pfn_init();
else
if (max_pfn <= MAXMEM_PFN)
lowmem_pfn_init();
else
highmem_pfn_init();
}

#ifndef CONFIG_NEED_MULTIPLE_NODES
Expand Down

0 comments on commit 29be015

Please sign in to comment.