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

Commit 23463c87 authored by Susheel Khiani's avatar Susheel Khiani
Browse files

Kconfig: Add menu choice option to reclaim virtual memory



Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.

Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
Signed-off-by: default avatarSusheel Khiani <skhiani@codeaurora.org>
parent 6e11466b
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -1732,6 +1732,29 @@ config ARCH_WANT_GENERAL_HUGETLB

source "mm/Kconfig"

choice
	prompt "Virtual Memory Reclaim"
	default NO_VM_RECLAIM
	help
	  Select the method of reclaiming virtual memory

config ENABLE_VMALLOC_SAVING
	bool "Reclaim memory for each subsystem"
	help
	  Enable this config to reclaim the virtual space belonging
	  to any subsystem which is expected to have a lifetime of
	  the entire system. This feature allows lowmem to be non-
	  contiguous.

config NO_VM_RECLAIM
	bool "Do not reclaim memory"
	help
	  Do not reclaim any memory. This might result in less lowmem
	  and wasting virtual memory space which could otherwise be
	  reclaimed by using any of the other two config options.

endchoice

config FORCE_MAX_ZONEORDER
	int "Maximum zone order" if ARCH_SHMOBILE_LEGACY
	range 11 64 if ARCH_SHMOBILE_LEGACY