diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-03-04 01:25:54 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-04 20:55:04 +0100 |
commit | f62432395ec54e93f113091bcb2e2017eeed7683 (patch) | |
tree | eafd86c9f4955990774ed4766568c4de4a437c77 /arch/x86/kernel/mpparse.c | |
parent | 8d4dd919b46ed982da6ef6bf6fcec454cd7a5b1b (diff) | |
download | kernel_samsung_smdk4412-f62432395ec54e93f113091bcb2e2017eeed7683.zip kernel_samsung_smdk4412-f62432395ec54e93f113091bcb2e2017eeed7683.tar.gz kernel_samsung_smdk4412-f62432395ec54e93f113091bcb2e2017eeed7683.tar.bz2 |
x86: reserve exact size of mptable
Impact: save a bit of RAM
Get the exact size for the reserve_bootmem() call.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <49AE4922.605@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index ae9060c..e819240 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -716,10 +716,10 @@ static int __init smp_scan_config(unsigned long base, unsigned long length, if (!reserve) return 1; - reserve_bootmem_generic(virt_to_phys(mpf), PAGE_SIZE, + reserve_bootmem_generic(virt_to_phys(mpf), sizeof(*mpf), BOOTMEM_DEFAULT); if (mpf->physptr) { - unsigned long size = PAGE_SIZE; + unsigned long size = get_mpc_size(mpf->physptr); #ifdef CONFIG_X86_32 /* * We cannot access to MPC table to compute |