diff options
author | Yinghai Lu <yinghai@kernel.org> | 2011-02-24 14:46:24 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-02-24 14:52:18 +0100 |
commit | d1b19426b04787e48f2689923e28d37b488969b0 (patch) | |
tree | ef3391627ac6d033abaf6f249e2cd173aa8c8864 /arch/x86/mm/init_64.c | |
parent | 8bc1f91e1f0e977fb95b11d8fa686f5091888110 (diff) | |
download | linux-d1b19426b04787e48f2689923e28d37b488969b0.tar.gz linux-d1b19426b04787e48f2689923e28d37b488969b0.tar.bz2 linux-d1b19426b04787e48f2689923e28d37b488969b0.zip |
x86: Rename e820_table_* to pgt_buf_*
e820_table_{start|end|top}, which are used to buffer page table
allocation during early boot, are now derived from memblock and don't
have much to do with e820. Change the names so that they reflect what
they're used for.
This patch doesn't introduce any behavior change.
-v2: Ingo found that earlier patch "x86: Use early pre-allocated page
table buffer top-down" caused crash on 32bit and needed to be
dropped. This patch was updated to reflect the change.
-tj: Updated commit description.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r-- | arch/x86/mm/init_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 4f1f461fc1e9..470cc4704a9a 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -314,7 +314,7 @@ void __init cleanup_highmap(void) static __ref void *alloc_low_page(unsigned long *phys) { - unsigned long pfn = e820_table_end++; + unsigned long pfn = pgt_buf_end++; void *adr; if (after_bootmem) { @@ -324,7 +324,7 @@ static __ref void *alloc_low_page(unsigned long *phys) return adr; } - if (pfn >= e820_table_top) + if (pfn >= pgt_buf_top) panic("alloc_low_page: ran out of memory"); adr = early_memremap(pfn * PAGE_SIZE, PAGE_SIZE); |