msm: thermal: add new thermal solution

This is directly based on this work; https://github.com/franciscofranco/hammerhead/commit/7c64ea63d67b254c8dd10739a5dd722af8452f6f

I just adjusted a few things and made some coding style
fixes for easier reading.
The temp threshold is controlable over this interface;
/sys/module/msm_thermal/parameters/temp_threshold

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpufreq: freq_table: bail out early if freq = target_freq

If the target_freq is equal to freq we don't need
to do some extra checks, we can just bail out.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>