CPUFREQ: Update ala Faux123 Mako and Intellidemand
GOV: Updated ala Faux123 Mako
GOV: Intellidemand updates
auto_hotplug.c: reduce sampling_periods and add a small routine to feed the history with the current runnable_threads depending on the number of CPU's online. this should definitely boost interactivity. CFBench got a nice score boost (roughly 1k more). Thanks @morfic for the lively discussion on getting to this point.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpupower: update the cpu_power according to cpu load

 Vincent Guittot authored 2 months ago
 dsb9938 committed 4 hours ago
Allow CPU-based alignment handling
Revert "CPUFREQ: Update ala Faux123 Mako and Intellidemand"

This reverts commit 9bbe69d93476c0105cdabb8c730ed67d53747b75.
Revert "Revert "ACPU: Reduced L2 a bit""

This reverts commit b89b1c841cff5d3a7d0c8f3051b69ec35f0e8276.
msm: pm-8x60: Move target independent data into the driver

pm-8x60 and cpuidle has target independent driver configuration data
that need not be in boards file. Move these data into the driver
itself.

Change-Id: I4c744dd006945bed709a393cde2b0de2414e9fce
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
msm: pm-8x60: Add retention mode for processor cores

Application processors can do retention mode (apps sleep) in which
the processor reduces the voltage and gates the clock and when an
interrupt occurs will bail out of the low power mode and resume from the
command after WFI.

In retention mode, processor core is not reset and so will not do a warm
boot from TZ.

Change-Id: Id035602dfc53edde88a17ea194dcc85df877e9ea
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
msm: pm: Support for Krait Retention

Introduce a new low power state for Krait, retention.
This state will lower the voltage to the Krait core to
retention voltage in addition to clock gating. This state
will be in between WFI and Standalone power collapse in
terms of time overhead and power savings.

Change-Id: I6b1f0a0d2e4954a705a047fd4a07f4dd1fb3518a
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
(cherry picked from commit d27ca4a)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 3af7249)

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: pm-8x60: Fix bug where device enter low power mode

An incorrect ordering in the check of allowed modes, results in
standalone power collapse not getting selected when the secondary
cores are online.

Change-Id: Idc7177b78bd0ce7563cc27afbf6c12d3bc1f9f9a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: pm: Add support for retention on each core

Allow each core on 8974 to enter retention and retain
the state of the CPU. On 8960 as hardware restriction does
not permit all cores to enter retention at the same time,
allow only core 0 to enter retention when all other cores
are offline to maintain backward compatibility.

Change-Id: I6690e901afc9fa3a27010c264fa3acc9a0722c1a
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: pm-8x60: Do not default to WFI when not enabled

Return MSM_PM_SLEEP_MODE_NOT_SELECTED in msm_pm_idle_prepare as the
default mode instead of WFI. Skip enter low power mode when this
mode is selected.

Change-Id: Id4a07ba1353b358726c81ed441e0327a9154de8a
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	arch/arm/mach-msm/pm-8x60.c
msm: pm: Add API to enable/disable retention mode

On 8974 targets, retention mode voltage is controlled by the LDO
regulator, which in turn is powered through a ganged PMIC regulators. At
certain low voltage levels, the ganged PMIC will not be able to power
the LDO retention voltage. The regulator framework would invoke this
API to enable/disable retention mode in these scenarios.

When disabling retention modes, send a IPI to wakeup all online cores
out of idle, to ensure that no core is in a retention low power mode.
Also, disabled support for retention during suspend/hotplug operations
to ensure that a CPU isn't already in retention when the voltage is
lowered. This shouldn't have an effect on suspend, as the driver always
chooses the deepest sleep mode for suspend/hotplug.

Change-Id: I0af18168968c2aaf05ca99188d30762612c87de6
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	arch/arm/mach-msm/no-pm.c
	arch/arm/mach-msm/pm-8x60.c