summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Mark <lmark@codeaurora.org>2015-08-26 16:46:19 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:49 -0700
commita886f65ded53867df6b70f74ebd7fd8e351d1587 (patch)
treedaa7f3866e4804c91ef007c107ec03d9f243464c
parent07ca3d98c661ab40512c8ac8416bb9ff782247a7 (diff)
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>
-rw-r--r--mm/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 7b7eae150c4e..abfaf331c140 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -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".