From a886f65ded53867df6b70f74ebd7fd8e351d1587 Mon Sep 17 00:00:00 2001 From: Liam Mark Date: Wed, 26 Aug 2015 16:46:19 -0700 Subject: [PATCH] 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 --- mm/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) 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".