From 27f8415f7cb7252a825e7cab0b74281cface58a0 Mon Sep 17 00:00:00 2001 From: Xiaowen Liu Date: Mon, 28 Apr 2014 14:40:41 +0800 Subject: ENGR00310741-2 enable gpu low memory killer for 3.10 kernel. add CONFIG_GPU_LOW_MEMORY_KILLER to default config. Signed-off-by: Xiaowen Liu --- arch/arm/configs/imx_v7_android_defconfig | 1 + drivers/mxc/gpu-viv/Kconfig | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/configs/imx_v7_android_defconfig b/arch/arm/configs/imx_v7_android_defconfig index c69aa1e2c37c..15d769612fca 100644 --- a/arch/arm/configs/imx_v7_android_defconfig +++ b/arch/arm/configs/imx_v7_android_defconfig @@ -2931,6 +2931,7 @@ CONFIG_MXC_IPU=y # MXC Vivante GPU support # CONFIG_MXC_GPU_VIV=y +CONFIG_GPU_LOW_MEMORY_KILLER=y CONFIG_MXC_IPU_V3=y # diff --git a/drivers/mxc/gpu-viv/Kconfig b/drivers/mxc/gpu-viv/Kconfig index e9cc4b27614c..7eb8956ee690 100644 --- a/drivers/mxc/gpu-viv/Kconfig +++ b/drivers/mxc/gpu-viv/Kconfig @@ -6,4 +6,15 @@ config MXC_GPU_VIV ---help--- Say Y to get the GPU driver support. +config GPU_LOW_MEMORY_KILLER + tristate "Reserved memory account to Low memory Killer" + depends on ANDROID + default n + ---help--- + Resigter reserved memory account to low memory killer, These + reserved memory is mainly used by GPU driver, but it's not + account by low memory killer, so even it takes much memory, + it will not killed. add this to fix this, it will kill the + large memory app in background. + endmenu -- cgit v1.2.3