Enable ZRAM on devices with less than 1 GB RAM

This patch turns on the property ro.config.zram during post
boot if memtotal is less than 1 GB.

Change-Id: I49276e2c121d53a907ce54e1bd5ee3efbb46b651
init.qcom.usb: Disable RNDIS UL aggregation on MSM8994

MSM8994 IPA hardware does not properly handle aggregated RNDIS
packets from the host. Set the max_pkt_per_xfer to 1 to disable
UL aggregation.

Change-Id: Ib36b10a1a6a9920c93bcd93614e3a4dc76caa4b2
init.qcom.usb: set default composition for ferrum

Set DIAG + ADB as default USB composition for ferrum. It will be
changed later to support other interfaces like modem and rmnet.

Change-Id: I9ceb305d917d61117b63d9cdc78b884f4307b8ac
IMS: Add qti_permissions.xml module in PRODUCT_PACKAGES

qti_permissions.xml is not getting included in user builds.
Add the module in PRODUCT_PACKAGES so that it is picked in all
build variants.

Change-Id: I2e884511b42235568286026948460f0d97d654c0
CRs-Fixed: 697700
init: Add soc_id to enabled hevc video decoder for 8936

Enable set property media.hwhevccodectype, if soc_id is identified as 233.

CRs-Fixed: 706166
Change-Id: I80e09cb8274c2e9789a01cd125f202902d0bc6e1
Merge "Enable ZRAM on devices with less than 1 GB RAM"
init.qcom.post_boot: enable perfd for msm8994

msm8994 will use perfd instead of mpdecision
to host PerfLock

Change-Id: Ib95952fdd6b8eea472cdb50694e959658eff9a42
init.qcom.post_boot.sh: Add scheduler packing settings

Enable Task Packing logic for targets with HMP Scheduler.

Change-Id: Ib499e149c02944a2896aedd92c63758a6b35bd0b
AppOPs: designate whitelist file path

Set whitelist file path for AppOpsService.

CR-Fixed: 707485
Change-Id: I6bb62517ac45a286b88cf848c52193ed1e2164ad
Merge "init.qcom.post_boot.sh: Add scheduler packing settings"
Merge "IMS: Add qti_permissions.xml module in PRODUCT_PACKAGES"
init_msm8994: Power on modem through init

kk branches do not support peripheral manager. However the kernel is
common between branches that do. As a result no one(neither kernel nor
peripheral manager) will power on the modem for 8994 on kk. This is a
change to address that limitation.

Change-Id: I302c3c988d88b486e421e6e338906eaa11ca5ef0
rootdir/etc/init.qcom.rc: add camera folder

Create camera folder under /data folder needed
for mm-qcamera-daemon.

Change-Id: I53529a0d2ac339cbaf380419452a3df955435c4d
rootdir/etc/init.qcom.rc: add sensor folder

Create sensor folder under /data folder needed
for mm-qcamera-daemon.

Change-Id: Ifa8312063f27c6e553e6fb96376da34581a88972
init: msm8994: Initialize energy-aware driver

Estimate per core power consumption and initialize
the energy-aware driver with these values.

Change-Id: I85fb4a1029d3dc1f8f1d38247a7e4a2117986771
Merge "init: Add soc_id to enabled hevc video decoder for 8936"
Merge "init: msm8994: Initialize energy-aware driver"
dtbtool: Add qcom,pmic-id support (version 3)

Add support for parsing PMIC info in the DTB files. The new format supports
up to four pmic nodes in the DTB. pmic0, pmic1, pmic2 & pmic3. Unused pmic
nodes should be marked as '0' in the DTB.

dtbtool(v3) to parse the split qcom,msm-id/qcom,board-id/qcom,pmic-id in
DTB files.  The original qcom,msm-id with soc_id/platform, soc_rev is split
into qcom,msm-id with only soc_id/soc_rev; The original qcom,board-id with
platform/subtype. and a new qcom,pmic-id with pmic0/pmic1/pmic2/pmic3.

The tool always generate the new table of device tree format (v3), but is
backward compatible with parsing original DTB files with only qcom,msm-id
(in which case subtype and pmic 0 to 3 are assumed zero) and backward com
-patible with parsing original DTB files with qcom,msm-id and qcom,board-id
(in which case pmic 0 to 3 are assumed zero)

This change requires a corresponding bootloader change to properly parse
the updated table of device tree image format (v3)

Change-Id: If44d7a2617a6a8ea4434ed3ac6138ec4726aae50
Merge "init_msm8994: Power on modem through init"
init: qcom: post_boot: use interactive gov with sched input for msm8994

Set cpufreq governor to interactive for both clusters on msm8994. Also set
up tunables per cluster to query the load from the scheduler and enable
migration notifications from the scheduler.

Change-Id: I24e197ee6ec4e2e94bbc6e8499f819be3a951cf4