]> 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)
commitf6c7b26aad74435ffe91c7e5af969616fcae3f33
treebffaba5a78b9c022716fae0977f6d0f6d88941bb
parentcd59478e284e721a7b8ab204f564063d276991cf
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