* [PATCH] APRP Patch04: Propagate final value of max_low_pfn to max_pfn
@ 2009-07-10 9:00 Raghu Gandham
0 siblings, 0 replies; only message in thread
From: Raghu Gandham @ 2009-07-10 9:00 UTC (permalink / raw)
To: linux-mips; +Cc: raghu, chris
From: Chris Dearman <chris@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
---
arch/mips/kernel/setup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 2950b97..1e9862d 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -326,7 +326,6 @@ static void __init bootmem_init(void)
/*
* Determine low and high memory ranges
*/
- max_pfn = max_low_pfn;
if (max_low_pfn > PFN_DOWN(HIGHMEM_START)) {
#ifdef CONFIG_HIGHMEM
highstart_pfn = PFN_DOWN(HIGHMEM_START);
@@ -334,6 +333,8 @@ static void __init bootmem_init(void)
#endif
max_low_pfn = PFN_DOWN(HIGHMEM_START);
}
+ /* Propagate final value of max_low_pfn to max_pfn */
+ max_pfn = max_low_pfn;
/*
* Initialize the boot-time allocator with low memory only.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-10 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 9:00 [PATCH] APRP Patch04: Propagate final value of max_low_pfn to max_pfn Raghu Gandham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).