Add my Hotplug driver.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: we can live with 80% threshold.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: we can now cap max freq to 1GHz on screen off.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: without updating the policy nothing actually happened.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: make sure the notifier does not go through for every damn CPUFREQ_ADJUST otherwise it's a mess.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: lets try this fix for the crippling sound when changing networks.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: minor code optimisations.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: small fix to make sure we don't try to cpu_up(x) if x is alread online.

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

* clean up the store functions using proper and modern kstrtoul

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

* fix a bug where cpu_smash()->cpus_cpufreq_work()->cpus_offline_work()
was being called every 100ms

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: fix checkpatch warnings

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: we can shift left here instead.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Squash 'enhance power efficiency' patches

Series of patches from NVIDIA on some critical blocking
code paths to allow the CPU to relax instead of busy spinning
thus lowering the load_average and lowering power consumption.

Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: thermal: fix init with msm_thermal

 * not using ioctl interface for this in-kernel solution
so prevent msm_thermal-dev to be built
 * use higher frequency points than my N5 driver because
Bacon rarely gets really hot so we don't need to throttle
as heavy
 * re-structure init->register<->exit flow compared to the
N5 code. We don't rely on board init call anymore. Besides
externs are fugly. The rest is on the msm_thermal merge side

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: thermal: add my cleaned up in-kernel driver

 * mostly copy-pasta from the N5
 * thermal-engine daemon is disabled in userspace
 * users can now ajudst the thermal throttle point in sysfs
 * well... it's clean :)
 * stability test responds very well and the device doesn't
heat up too much. On stock thermal solution the device rapidly
reached un-bearable temperature on the back (running stability test)
due to it's weird throttling mechanics (at least from what we can
observe since the code is proprietary) and doesn't cool down easily.
With this solution that doesn't happen.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpufreq: cpu-boost: we can hit a small performance loss by not queuing input works less than 150ms apart when our default input work duration is only 40ms, so use that 40ms as a magic value instead of the 150ms minimum interval.

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

Signed-off-by: Petr kecinzer Řezníček <kecinzer@gmail.com>