Fix compile errors
Linux 3.4.88

Conflicts:
	Makefile

Conflicts:
	Makefile
Linux 3.4.89
cpufreq: Optimize cpufreq_frequency_table_verify()

cpufreq_frequency_table_verify() is rewritten here to make it more logical
and efficient.
 - merge multiple lines for variable declarations together.
 - quit early if any frequency between min/max is found.
 - don't call cpufreq_verify_within_limits() in case any valid freq is
   found as it is of no use.
 - rename the count variable as found and change its type to boolean.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Break out early when frequency equals target_freq

Many drivers keep frequencies in frequency table in ascending
or descending order. When governor tries to change to policy->min
or policy->max respectively then the cpufreq_frequency_table_target
could return on first iteration. This will save some iteration cycles.

So, break out early when a frequency in cpufreq_frequency_table
equals to target one.

Testing this during kernel compilation using ondemand governor
with a frequency table in ascending order, the
cpufreq_frequency_table_target returned early on the first
iteration at about 30% of times called.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: hotplug: Add MSM Hotplug driver
MSM_HOTPLUG: Set Screen Off Freq to 787200
msm: hotplug: Remove spinlock in load stats

It's too expensive and not nessecary.
msm: hotplug: Stop hotplug work a tad later
msm: hotplug: Protect suspend operations by mutex
Revert "msm: hotplug: Protect suspend operations by mutex"

This reverts commit 7a879c677475f302ef8b1581d363b0fe676f9a11.
msm: hotplug: Schedule suspend/resume work

Dennis is right, this is the proper way to suspend and resume.
hammerhead: touch: Remove touch boost

Revert "cpufreq: conservative: Boost all online cpus"

This reverts commit 3d2675da0500e4e9cd94de66f657790ca5e26467.

Revert "hammerhead: touch: Simple method of boosting cpu frequency on touch"

This reverts commit 2f25573cc2924e62d222f4fbd7a976121858dce2.

Conflicts:
	drivers/cpufreq/cpufreq_conservative.c
	drivers/cpufreq/cpufreq_interactive.c
	drivers/input/touchscreen/touch_synaptics_ds5.c
	include/linux/input/touch_synaptics.h
msm: hotplug: Increase down lock duration and janitize

Conflicts:
	arch/arm/mach-msm/msm_hotplug.c
msm: hotplug: Add input boost handler

Add an input handler to hotplug additional cpus. Down lock will
take care of keeping the cpu boosted.

Conflicts:
	arch/arm/mach-msm/msm_hotplug.c
msm: hotplug: Add minimum interval for input boost
msm: hotplug: Remove deprecated msm_cpufreq_set_freq_limits
msm: hotplug: Cleanup hotplugging routines

Remove paroid atomic operations that were causing issues.
cpufreq: add new routine cpufreq_verify_within_cpu_limits()

Most of the users of cpufreq_verify_within_limits() calls it for
limiting with min/max from policy->cpuinfo. We can make that code
simple by introducing another routine which will do this for them
automatically.

This patch adds another routine cpufreq_verify_within_cpu_limits()
and updates others to use it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
msm: hotplug: Optimize hotplugging routines

- Power down the slowest cpu
- Move checks from callback to calling function
- Clean it up a bit