From efd95dc2548b8128ca03dd11a321cd454744a6f2 Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Fri, 3 Dec 2010 15:43:33 -0800 Subject: 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 --- drivers/video/tegra/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/video/tegra/Kconfig') 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 -- cgit v1.2.3