Enable zram swap
It fixes a kernel panic on DB845c and RB5 while running
AOSP/external/stressapptest due to "System is deadlocked
on memory".
It also fixes a similar crash reported on RB5 while running CtsBionicTestCases, https://bugs.linaro.org/show_bug.cgi?id=6036,
while we are still diagnosing that crash for a proper fix.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I81af210a50526050c00b65f55e85cf360fc39622
diff --git a/device-common.mk b/device-common.mk
index a37f726..a5a2f14 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -86,6 +86,9 @@
device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(TARGET_HARDWARE)
endif
+PRODUCT_VENDOR_PROPERTIES += \
+ persist.sys.zram_enabled=1
+
PRODUCT_COPY_FILES += \
$(TARGET_KERNEL_DIR)/Image.gz:kernel \
device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(TARGET_HARDWARE).rc \