]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm: Trim memory in memblock to be page aligned
authorYinghai Lu <yinghai@kernel.org>
Mon, 22 Oct 2012 23:35:18 +0000 (16:35 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 24 Oct 2012 18:52:21 +0000 (11:52 -0700)
commitff52fae69c6695349f2d4204502b71bc8b8138de
treec5537b527a5a065fff2bd9b33d003561a0d87206
parente50d423b3c435140af2bb5e3e366f45b8e892246
x86, mm: Trim memory in memblock to be page aligned

We will not map partial pages, so need to make sure memblock
allocation will not allocate those bytes out.

Also we will use for_each_mem_pfn_range() to loop to map memory
range to keep them consistent.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/CAE9FiQVZirvaBMFYRfXMmWEcHbKSicQEHz4VAwUv0xFCk51ZNw@mail.gmail.com
Acked-by: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: <stable@vger.kernel.org>
arch/x86/kernel/e820.c
include/linux/memblock.h
mm/memblock.c