drivers: thermal: prevent this driver to call out msm_limits function unless the device is being throttled.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
mako_hotplug/load_stats: cpuu0 load decices if cpu2 comes online or stays offline and cpu1 load decides if cpu3 comes online or stays dead.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
drivers: thermal: increase to 65ºC CPU threshold and make throttling a global variable.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
mako_hotplug: return to 10 checks a second.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
drivers: thermal: reduce to one level of throttling to simplify the code. Also clean the code and fix a bug on r165 which could block the max_freq of the device to 1350MHz.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
msm_otg: hack to allow externally powered usb host mode

Force ID_A (host mode + charging) on detection of proprietary charger (Apple-compatible charger with voltage on D+/D-).
Unforce ID_A on PMIC: BSV clear (detection of loss of charger).
Simulate ACA since using ID_A for host mode (prevents host from getting stuck in suspended state).
Two test cases for detection of actual proprietary charger (extra debug output for now).
Remove charge current limit in host mode (ID_A).
Enable debugfs /sys/kernel/debug/msm_otg/mode for manual otg mode manipulation.
Always force requested mode (debugfs).

Note: ID pin detection not working (perhaps due to Slimport), hence the "alternate" triggers used to switch to/from host mode.
msm_otg: move ID_A forcing to ACA detection (workaround for proprietary chargers)
Move ID_A forcing to ACA detect so that automatic host mode can be disabled by disabling ACA (# echo disable > /sys/kernel/debug/msm_otg/aca).
No longer need to simulate ACA since (debug) ACA will now be forced.
Remove test cases for actual proprietary chargers since they were causing false positives (manually disable ACA to use proprietary chargers).
msm_otg: start charging immediately when entering host mode (compatibility with proprietary chargers)
msm_otg: fix bad if-statement in last commit
msm_otg: allow automatic host mode without charging
Force !ID (ID_GND) where proprietary charger is detected. Subsequently set charger type to invalid.
This allows automatic host mode without charging when ACA is disabled:
"echo disable > /sys/kernel/debug/msm_otg/aca"
Doing so has the side-effect of breaking support for Apple-compatible chargers (proprietary chargers...)