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

Commit bc565785 authored by Susheel Khiani's avatar Susheel Khiani Committed by Qingqing Zhou
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>
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: default avatarQingqing Zhou <qqzhou@codeaurora.org>
parent 004818ff
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -1717,6 +1717,35 @@ config ARM_MODULE_PLTS
	  Disabling this is usually safe for small single-platform
	  configurations. If unsure, say y.

choice
	prompt "Virtual Memory Reclaim"
	default NO_VM_RECLAIM
	help
	  Select the method of reclaiming virtual memory. Two values
	  are allowed to choose, one is NO_VM_RECLAIM, the other is
	  ENABLE_VMALLOC_SAVING.

	  If you are not absolutely sure what you are doing, leave this
	  option alone.

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 some virtual memory space which could otherwise
	  be reclaimed by using any of the other two config options as
	  above.

endchoice

config FORCE_MAX_ZONEORDER
	int "Maximum zone order"
	default "12" if SOC_AM33XX