Set SPM delay to maximal

Some RTB files parsing from hard hang devices show the last operation of
devices
is idle power collapse. After setting SPM delay to maximal, stress test
result
has improvement.

SR:01210763

Change-Id: I3e351605dc3b21bec6aa3eb838c5ea3c032d71ed
Signed-off-by: singhome_lee <singhome_lee@asus.com>
mako_defconfig: disable CONFIG_GENLOCK
mako_defconfig: disable OPTIMIZE_FOR_SIZE, enable O3
Kernel Version: AK.NEO.0x031.JS
linux/mm: reduced readahead to 256
Revert "cpufreq: ondemand: added sync_freq and optimal_freq"

This reverts commit e2cfd7b4204c9a886799df9fbbd4b40e216dd3f6.
Revert "drivers: msm_thermal: polling every 1 sec, and set temp_threshold = 70"

This reverts commit 9311df0194eafca5264cd9cb7732e28a8946027e.
Revert "drivers: thermal: properly limit CPU frequency when the temperature is too hot: if we throttle too much games will lag so we'll only scale down to 1026MHz until the device cools down, then back to 1512MHz again. Added other smaller routine changes to make it work properly."

This reverts commit f908e3f850c9d90ccea3d16c715389e9af83c55b.
Revert "drivers: msm_thermal: make thermal throttle temperature threshold user configurable."

This reverts commit 8ce30573e76da585b5f0e8a1378d8b8e48ec32e2.
msm thermal: enhancements

1) Smart polling based on temp (poll slower when cooler, faster when
warmer).

2) Added low frequency index so we don't throttle too low and kill
performance. When warming normally (throttle temp is reached) it will
step down by the freq_step until back under control. The lowest
frequency step possible is the specified by the low freq index.

3) Added throttle max (hardcoded at 80C). If it reaches the
throttle max, it will immediately throttle down to the min_freq_index
instead of stepping down 2 frequency steps at a time like when it hits
the throttle temp.

4) Added tuneables

/sys/module/msm_thermal/parameters/throttle_temp
/sys/module/msm_thermal/parameters/min_freq_index
/sys/module/msm_thermal/parameters/thermal_debug
msm8960_tsens: enable all thermal devices

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/thermal/msm8960_tsens.c
thermal: tsens8974: Fix delay in the TSENS handler

Add a workqueue to process the status register reads for
the sensors to verify if sensors thresholds are crossed
and send uevent to clients. This change is to avoid any delay
within the TSENS interrupt handler.

Change-Id: I3f3b713a84a6e74fb94e27b8a69be3b1dd0a9dac
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
thermal: pm8xxx-tm: Configure temperature alarm for always-on operation

Change the register initialization for the PMIC temperature alarm
module so that it is always on.  This ensures that die
temperature monitoring is active even if CXO is disabled (i.e.
when sleep_b is low).  This is necessary since CXO can be
disabled while the system is still heavily loaded.  Also, using
the alway-on instead of PWM-enabled configuration ensures that
the die temperature can be measured by the PMIC ADC without
reconfiguring the temperature alarm module first.

Change-Id: I4a76c959c81f222fbeca08b6c98b1e4b23653b4e
Signed-off-by: David Collins <collinsd@codeaurora.org>
driver: thermal: +10 over default settings
Revert "Async I/O latency to a ssd greatly increased, 34% gain (Creds: kleikamp)"

This reverts commit 57cd8d19b50fac2b23b23d5c3615c344ef0296f7.
Kernel Version: AK.NEO.0x032.JS