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

Commit 68f85c60 authored by Chris Goldsworthy's avatar Chris Goldsworthy
Browse files

mm/Kconfig: Re-add HAVE_USERSPACE_LOW_MEMORY_KILLER



When Android has a userspace low memory killer, we want to configure
certain parts of the reclaim paths in the kernel.
HAVE_USERSPACE_LOW_MEMORY_KILLER can be used to perform this configuration,
and was removed when reverting a patch that defined it.  Re-add it.

Change-Id: Ic069c92a9d7928f0402705df8375d5384e9f743c
Signed-off-by: default avatarChris Goldsworthy <cgoldswo@codeaurora.org>
parent a0107aaf
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -759,6 +759,17 @@ config PERCPU_STATS
	  information includes global and per chunk statistics, which can
	  be used to help understand percpu memory usage.

config HAVE_USERSPACE_LOW_MEMORY_KILLER
	bool "Configure reclaim paths if there is a userspace LMK"
	default n
	help
	  Configures parts of the reclaim paths in the kernel when Android
	  has a userspace memory killer.  This configuration is done for
	  functional (e.g. ensuring the OOM killer doesn't run at certain
	  points) and performance purposes (e.g. preventing log-spew
	  when the OOM killer and userspace memory killer both have the
	  potential to run).

config GUP_BENCHMARK
	bool "Enable infrastructure for get_user_pages_fast() benchmarking"
	help