]> git.baikalelectronics.ru Git - kernel.git/commit
x86: account overlapped mappings in max_pfn_mapped
authorAndi Kleen <andi@firstfloor.org>
Wed, 12 Mar 2008 02:53:28 +0000 (03:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:30 +0000 (17:41 +0200)
commitbdcbb546d3b9ec8e62066aa2bd84f825b07ecd46
treecfdb0ee512da7da82c15d4b1aae66d1f25640f31
parentd747727050ea514037e37952d5c491dcfa0993da
x86: account overlapped mappings in max_pfn_mapped

When end_pfn is not aligned to 2MB (or 1GB) then the kernel might
map more memory than end_pfn. Account this in max_pfn_mapped.

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: andreas.herrmann3@amd.com
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_64.c
arch/x86/mm/init_64.c
include/asm-x86/page_64.h
include/asm-x86/proto.h