diff options
author | Xiaowen Liu <b37945@freescale.com> | 2014-04-28 14:40:41 +0800 |
---|---|---|
committer | Xiaowen Liu <b37945@freescale.com> | 2014-04-28 15:00:23 +0800 |
commit | 27f8415f7cb7252a825e7cab0b74281cface58a0 (patch) | |
tree | 70e6f2f8c50ab114a18a1a09865cccd49a4b19bd | |
parent | 063df583859f470915a6ea028646012f71f2dc9c (diff) |
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 <b37945@freescale.com>
-rw-r--r-- | arch/arm/configs/imx_v7_android_defconfig | 1 | ||||
-rw-r--r-- | drivers/mxc/gpu-viv/Kconfig | 11 |
2 files changed, 12 insertions, 0 deletions
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 |