drivers/thermal: Add 3-phase in kernel thermal management

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

Conflicts:
	arch/arm/mach-msm/htc/ville/board-ville.c
	drivers/thermal/msm_thermal.c
	include/linux/msm_thermal.h

Conflicts:
	arch/arm/mach-msm/htc/ville/board-ville.c

Conflicts:
	arch/arm/mach-msm/board-ville.c
	arch/arm/mach-msm/htc/elite/board-elite.c
	arch/arm/mach-msm/htc/fighter/board-fighter.c
	arch/arm/mach-msm/htc/jet/board-jet.c
	arch/arm/mach-msm/htc/m7/board-m7.c
	drivers/thermal/msm_thermal.c
	include/linux/msm_thermal.h
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>
thermal: Fix critical enable/disable bug from STOCK source
This fixes a critical bug which only allowed to disable the thermal guard
but not to re-enable it again. Once disabled the thermal guard would stay
off until rebooted. This allows to re-enable it again. (sysfs)

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
update defconfig for 3-stage thermal
msm8960_tsens: enable all thermal devices

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

This reverts commit 242417400ca7814773e9ea3652ef181b84924e67.

Conflicts:
	drivers/thermal/msm_thermal.c
msm_thermal: enable msm_thermal

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

Conflicts:
	drivers/thermal/msm_thermal.c
defconfig enable config_thermal for mpdecision to recognize when throttled