thermal: adjust temparature for thermal notification
authortaeyoung <ty317.kim@samsung.com>
Tue, 29 Nov 2016 04:21:41 +0000 (13:21 +0900)
committertaeyoung <ty317.kim@samsung.com>
Wed, 30 Nov 2016 01:46:03 +0000 (10:46 +0900)
- Warning temparature is 75. If the temparature is
  changed to 85 or more, that is the critical status.

Change-Id: I4a99b332c23db2be4c0532603ff166d778fecca2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
hw/thermal/thermal.c

index 9301044..cc2af86 100644 (file)
@@ -68,13 +68,7 @@ static int thermal_get_state(struct thermal_info *info)
 
        _I("AP temparature(%d)", value);
 
-       if (value < 30) {
-               info->state = THERMAL_STATE_LOW;
-               info->level = THERMAL_LEVEL_NORMAL;
-               return 0;
-       }
-
-       if (value < 40) {
+       if (value < 75) {
                info->state = THERMAL_STATE_NORMAL;
                info->level = THERMAL_LEVEL_NORMAL;
                return 0;
@@ -82,9 +76,9 @@ static int thermal_get_state(struct thermal_info *info)
 
        info->state = THERMAL_STATE_HIGH;
 
-       if (value < 42)
+       if (value < 85)
                info->level = THERMAL_LEVEL_WARNING;
-       else if (value < 43)
+       else if (value < 100)
                info->level = THERMAL_LEVEL_CRITICAL;
        else
                info->level = THERMAL_LEVEL_POWEROFF;