mm/Kconfig: support forcing allocators to return ZONE_DMA memory
Add a new config item, CONFIG_FORCE_ALLOC_FROM_DMA_ZONE, which can be used to optionally force certain allocators to always return memory from ZONE_DMA. This option helps ensure that clients who require ZONE_DMA memory are always using ZONE_DMA memory. Change-Id: Id2d36214307789f27aa775c2bef2dab5047c4ff0 Signed-off-by: Liam Mark <lmark@codeaurora.org>
This commit is contained in:
parent
07ca3d98c6
commit
a886f65ded
1 changed files with 10 additions and 0 deletions
10
mm/Kconfig
10
mm/Kconfig
|
@ -690,3 +690,13 @@ config ZONE_DEVICE
|
||||||
|
|
||||||
config FRAME_VECTOR
|
config FRAME_VECTOR
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config FORCE_ALLOC_FROM_DMA_ZONE
|
||||||
|
bool "Force certain memory allocators to always return ZONE_DMA memory"
|
||||||
|
depends on ZONE_DMA
|
||||||
|
help
|
||||||
|
Ensure certain memory allocators always return memory from ZONE_DMA.
|
||||||
|
This option helps ensure that clients who require ZONE_DMA memory are
|
||||||
|
always using ZONE_DMA memory.
|
||||||
|
|
||||||
|
If unsure, say "n".
|
||||||
|
|
Loading…
Add table
Reference in a new issue