msm_thermal: 3-phase thermal throttling

This introduces 3-phase thermal throttling to the existing
msm_thermal driver (it now works more like thermald).
This also changes the sampling rate to check every second
for increased temperatures.
Additionally this adds clear thresholds for the 2 new tripping
points.

Signed-off-by: showp1984 <showp1984@gmail.com>
Signed-off-by: Zarboz <zarboz@gmail.com>
Signed-off-by: BanBxda <banbxda@gmail.com>
msm_thermal: patch to upstream

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Signed-off-by: Zarboz <zarboz@gmail.com>
thermal: update upstream msm_thermal with 3-phase control

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Signed-off-by: Zarboz <zarboz@gmail.com>
Fixing thermald for sprint board

Signed-off-by: Zarboz <zarboz@gmail.com>

Signed-off-by: BanBxda <banbxda@gmail.com>
msm_thermal: export if we are currently throttled

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_thermal: fix spacing throughout the whole file

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_thermal: add stats for throttling

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Revert "msm_thermal: remove platform driver"

This reverts commit 705f7b32f714a4a7dab6aacae43a72e3400136c1.