Commit f6243239 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: reserve exact size of mptable

Impact: save a bit of RAM

Get the exact size for the reserve_bootmem() call.
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <49AE4922.605@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8d4dd919
...@@ -716,10 +716,10 @@ static int __init smp_scan_config(unsigned long base, unsigned long length, ...@@ -716,10 +716,10 @@ static int __init smp_scan_config(unsigned long base, unsigned long length,
if (!reserve) if (!reserve)
return 1; return 1;
reserve_bootmem_generic(virt_to_phys(mpf), PAGE_SIZE, reserve_bootmem_generic(virt_to_phys(mpf), sizeof(*mpf),
BOOTMEM_DEFAULT); BOOTMEM_DEFAULT);
if (mpf->physptr) { if (mpf->physptr) {
unsigned long size = PAGE_SIZE; unsigned long size = get_mpc_size(mpf->physptr);
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
/* /*
* We cannot access to MPC table to compute * We cannot access to MPC table to compute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment