auto_hotplug: decrease the jiffies for the scheduled works.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:

	arch/arm/kernel/auto_hotplug.c

Signed-off-by: Andreas Pohl <apohl79@gmail.com>
auto_hotplug: fix the detection of pending works, fix the cancel work calls, change the count condition to 10, and exported it to userspace by the name of sampling_rate. The change from 4 to 10 should help filtering low load spikes when the device is under stress.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:

	arch/arm/kernel/auto_hotplug.c

Signed-off-by: Andreas Pohl <apohl79@gmail.com>
drivers: msm_thermal: make thermal throttle temperature threshold user configurable.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
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.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
drivers: thermal: small fixes.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
Revert "drivers: thermal: small fixes."

This reverts commit 0299b1ec38a63cd7edbadda2f6d64c79753f1e36.

Signed-off-by: Andreas Pohl <apohl79@gmail.com>
drivers: thermal: fix its behaviour and increase polling time.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
msm_thermal: scale polling according to temperature, less polling when the device is cool, more polling with its hot. Borrowed idea @motley.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
msm8960_tsens: enable all thermal devices

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
arch: arm: mako: increase threshold of the thermal control.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
mach-msm: mako: according to @morfic we can change the sensor id to 0 and stop thermald binary and the kernel will manage the heat by itself from its drivers. So lets test it.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
board: mako: decrease the previous throttle temperature from 80ºC to 70ºC. Now that we're not using proprietary Qualcomm Thermald anymore msm_thermal works fine.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
board: mako: tune thermal control to be a little bit more aggressive, this should help decreasing the device temperature on heavy loads.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
msm: dcvs: change tz buffer to 32KB - https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git;a=commitdiff;h=3edb5de258e187af999aafc35dc9588d980d3cbf

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
board: mako: add support for retention power state on mako's board. Borrow touch values from Harsh.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
board: mako: since showp's patch we can already use sensor 7 just like Qualcomm intends.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
board: mako: revert the touch values to stock.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
drivers: input: remove boostpulse call on this driver since we're going to do it based on x and y coordinates on lge_touch_core driver.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Andreas Pohl <apohl79@gmail.com>
Merge branch 'jb' into msm_thermal