pass-hal: tw3: Add new Doze scenario to control maximum CPU frequency 02/239802/4
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jul 2020 03:54:24 +0000 (12:54 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 4 Aug 2020 04:40:15 +0000 (13:40 +0900)
Add new Doze scenario which handles h/w resources like CPU frequency
when right after LCD off and before entering the suspend-to-RAM
for reducing the idle power-consumption.

In case of Doze mode, it control the maximum CPU frequency to reduce
the idle power-consumption.

And just add Doze scenario to memory h/w resource
but when Doze scenario is requied, it doesn't change any h/w resource.

Change-Id: I92fb748221f77213fa505e77ae2e09842b1b6ac2
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
scripts/pass-resource0.conf
scripts/pass-resource1.conf

index 08e19ac..dcf9d00 100644 (file)
@@ -2,7 +2,7 @@
 pass_support=1
 pass_gov_type=1
 
-pass_num_scenario_levels=3
+pass_num_scenario_levels=4
 pass_init_scenario_level=0
 
 ####################################################
@@ -26,12 +26,16 @@ limit_max_freq=449000
 limit_min_cpu=0
 limit_max_cpu=1
 
+[ScenarioLevel3]
+limit_min_freq=449000
+limit_max_freq=1014000
+
 #########################
 ### Scenario of PMQoS ###
 #########################
 [PassScenario]
 pass_scenario_support=yes
-pass_num_scenarios=2
+pass_num_scenarios=3
 
 [Scenario0]
 name=AppLaunch
@@ -43,6 +47,11 @@ name=UltraPowerSaving
 support=yes
 scenario_level=2
 
+[Scenario2]
+name=Doze
+support=yes
+scenario_level=3
+
 ###################################
 ### Scenario of Thermal Monitor ###
 ###################################
index 78697e2..d7a8ecb 100644 (file)
@@ -19,7 +19,7 @@ fault_around_bytes=65536
 #########################
 [PassScenario]
 pass_scenario_support=yes
-pass_num_scenarios=2
+pass_num_scenarios=3
 
 [Scenario0]
 name=AppLaunch
@@ -30,3 +30,8 @@ scenario_level=1
 name=UltraPowerSaving
 support=yes
 scenario_level=0
+
+[Scenario2]
+name=Doze
+support=no
+scenario_level=0