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
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