arch/arm/mach-msm/cpufreq.c: reduce dmesg log spam

Signed-off-by: Paul Reioux <reioux@gmail.com>
Removed Useless TRACE CPU FREQUENCY SWITCH. TNX Alucard24

Conflicts:

	arch/arm/mach-msm/cpufreq.c
msm: thermal: Limit maximum cpu frequency instantly.

If current policy's max cpu frequency is below the maximum
possible frequency, instead of wasting time cycling through
indices, we are now limiting maximum cpu frequency instantly.
However, if limits are changed manually during throttling,
the logic may be confused.

Also, cleanup some kmsg info spam in the process.

Dorimanx Note:
I have checked the full source at myfluxi build
and found more useful code diff.

Merged along with the original commit.
https://github.com/myfluxi/kernel_msm/commit/b40409da9081b8ea7cafd2ae9efb7777fc9e1ca8

Conflicts:

	arch/arm/mach-msm/include/mach/cpufreq.h
	drivers/thermal/msm_thermal.c
MSM CPUFREQ: Small fix nothing important.

Conflicts:

	arch/arm/mach-msm/cpufreq.c
MSM_THERMAL: After lost of work, here is NEW Intelligent Thermal!

I have merged only the good stuff from latest thermal subsystem
https://github.com/faux123/Nexus_5/commit/f9295cdbd03282f876ce9b882e936847c47dc81d

and from Intelligent Thermal V2 by @faux123
https://github.com/faux123/Nexus_5/commit/8a12801b55e96d188b95947b6dd5751194b7ef14

*Msm: thermal: Clean up msm cpufreq function calls
*Added new struct for Intelli INIT dunamic values.
*Merged new way to init and change min/max freq on termal limits.
*Merged msm_thermal_dev_exit
*Cleaned all 80 char lines.
*Merged info strings for dmesg
*Changed core_control sysfs name from enable to core_control_enable
This prevent ROM thermal code to mess with this control! see also userspace mods.
https://github.com/dorimanx/LG-G2-D802-Ramdisk/commit/a3e156b88aeec2ba9805c0a36634289b18dd132a
*Init Intelli Thermal as ON on boot.
*For LG, added fix for stuck min freq at high freq... usually 1.4Ghz so it's will be low min
if above 960Mhz as MIN FREQ.
*DEFAULT_POLLING_MS to 500
*Added comments to find all needed other functions in arch/arm/mach-msm/cpufreq.c
and include/linux/cpufreq.h

I have tested this driver for hours, and it's performing perfect!

Conflicts:

	drivers/thermal/msm_thermal.c
	include/linux/cpufreq.h
msm: cpufreq: Avoid NULL clock pointer references

The MSM CPUfreq driver defines a mapping from cpu number to clock
pointer. On SOCs with synchronous cpus, only the mapping for cpu#0
is defined, even though there may be more than 1 cpu. Handle this
case by skipping certain unnecessary initialization steps for SOCs
with synchronous cpus.

Conflicts:
	arch/arm/mach-msm/cpufreq.c

Change-Id: Iaeba7a8615e3cb7da2c725250db92595450bfa46
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>