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:
Liam Mark 2015-08-26 16:46:19 -07:00 committed by David Keitel
parent 07ca3d98c6
commit a886f65ded

View file

@ -690,3 +690,13 @@ config ZONE_DEVICE
config FRAME_VECTOR
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".