summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/Kconfig
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2010-12-03 15:43:33 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:53 -0800
commitefd95dc2548b8128ca03dd11a321cd454744a6f2 (patch)
treed750986494744c20ae146f7ecd0f2d7f0ed12424 /drivers/video/tegra/Kconfig
parent31d05b052d0fcabc34bb457153dc9aa500d2842d (diff)
video: tegra: nvmap: Add carveout killer
This change attempts to reclaim carveout memory by killing other carveout users when an allocation fails. Processes are killed in order of priority from lowest to highest, and then from largest to smallest users. Change-Id: Iee8a6f36269bc8165d691000a153dbf9f4337775 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'drivers/video/tegra/Kconfig')
-rw-r--r--drivers/video/tegra/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/tegra/Kconfig b/drivers/video/tegra/Kconfig
index 2b8160877688..c431cc670a46 100644
--- a/drivers/video/tegra/Kconfig
+++ b/drivers/video/tegra/Kconfig
@@ -61,5 +61,14 @@ config NVMAP_HIGHMEM_ONLY
Say Y here to restrict nvmap system memory allocations (both
physical system memory and IOVMM) to just HIGHMEM pages.
+config NVMAP_CARVEOUT_KILLER
+ bool "Reclaim nvmap carveout by killing processes"
+ depends on TEGRA_NVMAP
+ default n
+ help
+ Say Y here to allow the system to reclaim carveout space by killing
+ processes. This will kill the largest consumers of lowest priority
+ first.
+
endif