pass-hal: rpi: Update temperature property 46/264246/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.093428 accepted/tizen/unified/20210926.235740 submit/tizen/20210924.100744 submit/tizen_6.5/20211028.161501 tizen_6.5.m2_release
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 14 Sep 2021 06:39:21 +0000 (15:39 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 15 Sep 2021 03:38:02 +0000 (12:38 +0900)
Since pass core is changed to handle temperature property with range
value, it should be updated as using object which has start and end
values. Optionally, temperature object can have threshold  used for
preserving upper level policies until temperature is down enoughly.

Change-Id: Ie07c9f70334070ad9f83ead27aa91e4f51ba381d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
scripts/pass-cpu0.json

index fd535d06f99d6bf485b2737f572a6094f7988ff8..c921eb0bffb47f6a23a7724b6f79dba0ef940ac5 100644 (file)
        [
                {
                        "name"                  : "Release",
-                       "temperature"           : 73,
+                       "temperature"           : { "start": 0, "end": 75, "threshold": 72},
                        "timer_interval_ms"     : 5000,
                        "target_level"          : 0
                }, {
                        "name"                  : "Warning",
-                       "temperature"           : 77,
+                       "temperature"           : { "start": 75, "end": 80, "threshold": 77 },
                        "timer_interval_ms"     : 3000,
                        "target_level"          : 0
                }, {
                        "name"                  : "LimitAction",
-                       "temperature"           : 80,
+                       "temperature"           : { "start": 80, "end": 85, "threshold": 82 },
                        "timer_interval_ms"     : 1000,
                        "target_level"          : 2
                }, {
                        "name"                  : "Shutdown",
-                       "temperature"           : 85,
+                       "temperature"           : { "start": 85, "end": 100 },
                        "timer_interval_ms"     : 1000,
                        "target_level"          : 2
                }