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>

Conflicts:

	drivers/cpufreq/freq_table.c
cpufreq - ondemand: Removel lge_boosted

Signed-off-by: Muhammad Najmi Ahmad Zabidi <najmi.zabidi@gmail.com>
intelli-thermal: use its own dedicated workqueue

this should reduce the load on the shared global workqueue for other
processes and also give its own unique variable name for cpu limit

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:

	drivers/thermal/intelli/msm_thermal.c
mach-msm:cpufreq_limit: fix merge derp and minor code clean up

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:

	arch/arm/mach-msm/cpufreq_limit.c
cpufreq_limit: adapted for use as built-in kernel option

set default stock frequency and remove unnecessary debug messages

bump version to 1.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq_limit: adapt for S4 Pro

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq: limit initial speed to stock speeds

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: switch to use dedicated high priority workqueue

from the shared global workqueue.  This should prevent hang ups while the
global workqueue is busy and cleaned up some logic issues.

give input boost its own workqueue

bump to version 2.2

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:

	arch/arm/mach-msm/intelli_plug.c
cpufreq: fix logic issue with turbo boost

Signed-off-by: Paul Reioux <reioux@gmail.com>
Various fixes

Get rid of duplicate code in the fast charge mod and add an intermediary pool structure element for the workqueue backport code (in order to fix a compilation error).
Optimisations for A15
Increase gain
Tuning IntelliActive
msm: kgsl: Remove adreno_a3xx_pwron_fixup_init
This is not needed for mako
--mrg666
FS: import F2FS

Signed-off-by: Paul Reioux <reioux@gmail.com>
f2fs: data: AIO optimization compatibility fixup

Signed-off-by: Paul Reioux <reioux@gmail.com>
msm: camera: Added the NULL pointer check

Added the NULL pointer check for isp_config
to avoid the crashes

Change-Id: I2df7eeb5c633b04c3aac5d985cf50c2ece7f1076
CRs-Fixed: 495652
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
arch: msm: intelli_plug: merge N5 faux kernel

Conflicts:

	arch/arm/mach-msm/intelli_plug.c
msm: remove perf_debug
wireless: remove wext sysfs

The only user of this was hal prior to its 0.5.12
release which happened over two years ago, so I'm
sure this can be removed without issues.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>