]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memblock: add MEMBLOCK_NOMAP attribute to memblock memory table
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 30 Nov 2015 12:28:15 +0000 (13:28 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 9 Dec 2015 16:56:58 +0000 (16:56 +0000)
commite42ec60f698d9437165a0c766b087aff8e84fe70
treebffaba5a78b9c022716fae0977f6d0f6d88941bb
parent7843c087c7a7bdfbf24a9e660bd8000f88727ce8
mm/memblock: add MEMBLOCK_NOMAP attribute to memblock memory table

This introduces the MEMBLOCK_NOMAP attribute and the required plumbing
to make it usable as an indicator that some parts of normal memory
should not be covered by the kernel direct mapping. It is up to the
arch to actually honor the attribute when laying out this mapping,
but the memblock code itself is modified to disregard these regions
for allocations and other general use.

Cc: linux-mm@kvack.org
Cc: Alexander Kuleshov <kuleshovmail@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/memblock.h
mm/memblock.c