msm8x60_celox: Fix memory allocation bug

Fixes green video bug that only seems to happen with this kernel.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Allow boosts equal to the maxfreq

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_boost: Only boost CPU0 and add safety checks

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpufreq: Rename cpu_boost.c to cpu-boost_framework.c
cpu-boost_framework: Improve maxfreq check and logging

Maxfreq is now checked in realtime, versus saving it to an int and checking the int.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Use kHz instead of MHz

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Add input-boost handler

Input boosting is disabled by default; to enable, write to input_boost_freq and input_boost_ms nodes in sysfs. CPU will be boosted on touchscreen input.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpufreq: ondemand: Remove input boost

A probably imperfect extermination of ondemand's input boost.
We rely on the universal cpu boost input handler now.
cpu-boost_framework: Set boost to maxfreq if boost > maxfreq

Make this driver more generic.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Clean out useless features

*Infinite boost is kinda useless
*Startup & shutdown functions are not very useful
*Cleaned up syntax in some places

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Add proper hotplug management

Now the CPU-boost framework will properly boost/unboost cores on its own, regardless of whether or not they've been hotplugged. CPU-boost framework is also no longer arch-dependent for proper functionality (it can be used on devices that don't use an MSM chipset).

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Move working variables into boost struct

This cleans up some redundancies and overall looks cleaner.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu-boost_framework: Remove local_policy

This is useless.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Revert "audio: Backport from CAF kk_2.7-stable"

This reverts commit 98ac40fd2497b697a10aa46449d9ce77184d1997.
qt602240_ts: add additional mutex protection

Change-Id: I174920431e0eaba2b59dda78e478af228affb9d7
msm8660: add additional locking protection to touckey driver

Change-Id: Ic00b8c37ce445f933981d41c727403e6ae9f5cbd
cypress-touchkey: Remove mutex locks from touch_led_control()

On some devices these new mutex locks are locking onto null pointers, causing a subsequent kernel crash.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Update CPU-boost hooks

Removed deprecated hooks.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm: cpufreq: Don't sync minfreq of CPU0 across all cores

CPU-boost no longer needs this.
msm: cpufreq: Add cpufreq_cpu_get() safety

Signed-off-by: Sultanxda <sultanxda@gmail.com>