diff options
author | Jan Beulich <jbeulich@novell.com> | 2006-09-26 10:52:31 +0200 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 10:52:31 +0200 |
commit | caff0710ebf6f2c44cbd2b8b31fd6329148bed2e (patch) | |
tree | a459d30fa0a9260bda441e27ff6b8414af735d82 /arch/x86_64/mm/init.c | |
parent | [PATCH] Remove obsolete CVS $Id$ from assembler files in arch/x86_64/kernel/* (diff) | |
download | linux-caff0710ebf6f2c44cbd2b8b31fd6329148bed2e.tar.xz linux-caff0710ebf6f2c44cbd2b8b31fd6329148bed2e.zip |
[PATCH] initialize end of memory variables as early as possible
While an earlier patch already did a small step into that direction,
this patch moves initialization of all memory end variables to as
early as possible, so that dependent code doesn't need to check
whether these variables have already been set.
Also, remove a misleading (perhaps just outdated) comment, and make
static a variable only used in a single file.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index d14fb2dfbfc4..d40134bd6399 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c @@ -597,12 +597,6 @@ void __init mem_init(void) pci_iommu_alloc(); - /* How many end-of-memory variables you have, grandma! */ - max_low_pfn = end_pfn; - max_pfn = end_pfn; - num_physpages = end_pfn; - high_memory = (void *) __va(end_pfn * PAGE_SIZE); - /* clear the zero-page */ memset(empty_zero_page, 0, PAGE_SIZE); |