cpu_boost: Allow boosts equal to the maxfreq

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

Conflicts:
	drivers/cpufreq/cpu_boost.c
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>

Conflicts:
	drivers/cpufreq/cpu-boost_framework.c
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>
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>
Change CPU-boost framework to CPU Input Boost

Most, if not all of the cases where the CPU-boost framework was useful are obsolete when input boosting is used, so remove the cpu_boost_timeout() API and make this driver handle only input boosting.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Add keypad boosting

Thanks to CAF for this mode.