Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ee6ac70 authored by Liam Mark's avatar Liam Mark Committed by Patrick Daly
Browse files

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: default avatarLiam Mark <lmark@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent f5a37ef3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -720,3 +720,13 @@ config ARCH_USES_HIGH_VMA_FLAGS
	bool
config ARCH_HAS_PKEYS
	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".