diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2007-04-26 04:31:28 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-26 04:31:28 -0400 |
| commit | ef2e58ea6b9931c3a4816c66593da49bb20e3b24 (patch) | |
| tree | ce7432add3becbe78de4ea06425cd2d9e91f4ada /arch/um/kernel/mem.c | |
| parent | 06d63cc51d47f572009138a7f3ac34d95773405d (diff) | |
| parent | de46c33745f5e2ad594c72f2cf5f490861b16ce1 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/um/kernel/mem.c')
| -rw-r--r-- | arch/um/kernel/mem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index e85d65deea0d..df7d662b98ce 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
| @@ -64,8 +64,6 @@ static void setup_highmem(unsigned long highmem_start, | |||
| 64 | 64 | ||
| 65 | void mem_init(void) | 65 | void mem_init(void) |
| 66 | { | 66 | { |
| 67 | max_low_pfn = (high_physmem - uml_physmem) >> PAGE_SHIFT; | ||
| 68 | |||
| 69 | /* clear the zero-page */ | 67 | /* clear the zero-page */ |
| 70 | memset((void *) empty_zero_page, 0, PAGE_SIZE); | 68 | memset((void *) empty_zero_page, 0, PAGE_SIZE); |
| 71 | 69 | ||
| @@ -80,6 +78,7 @@ void mem_init(void) | |||
| 80 | 78 | ||
| 81 | /* this will put all low memory onto the freelists */ | 79 | /* this will put all low memory onto the freelists */ |
| 82 | totalram_pages = free_all_bootmem(); | 80 | totalram_pages = free_all_bootmem(); |
| 81 | max_low_pfn = totalram_pages; | ||
| 83 | #ifdef CONFIG_HIGHMEM | 82 | #ifdef CONFIG_HIGHMEM |
| 84 | totalhigh_pages = highmem >> PAGE_SHIFT; | 83 | totalhigh_pages = highmem >> PAGE_SHIFT; |
| 85 | totalram_pages += totalhigh_pages; | 84 | totalram_pages += totalhigh_pages; |
