msm: Select ENABLE_HOLES_IN_ZONE
Current configurations end up with holes in the middle of
the highmem zone. The vm system makes certain assumptions
about the lack of holes within a zone. Failure to account
for these holes can lead to crashes due to accessing
uninitialized page structures. Select ENABLE_HOLES_IN_ZONE
to ensure these holes are properly accounted for.
Change-Id: I09afb2dc2a6903ae6064aea2d36610b530bbd7c3
CRs-Fixed: 348170
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index ae69ad4..9cf07fc 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -168,6 +168,7 @@
select MSM_MULTIMEDIA_USE_ION
select MULTI_IRQ_HANDLER
select MSM_PM8X60 if PM
+ select HOLES_IN_ZONE if SPARSEMEM
config ARCH_MSM8930
bool "MSM8930"
@@ -206,6 +207,7 @@
select MSM_ULTRASOUND
select MULTI_IRQ_HANDLER
select MSM_PM8X60 if PM
+ select HOLES_IN_ZONE if SPARSEMEM
config ARCH_APQ8064
bool "APQ8064"
@@ -225,6 +227,7 @@
select MSM_L2_SPM
select MSM_PM8X60 if PM
select CPU_HAS_L2_PMU
+ select HOLES_IN_ZONE if SPARSEMEM
config ARCH_MSMCOPPER
bool "MSM Copper"