power_profile: Add cpu.awake parameter
One of the remaining issues with the new profile is lack of a cpu.awake parameter - without this, wakelock holders won't be penalized in battery stats. Make a wild-ass guesstimate of 15 mA, based on: Best-case consumption is around 0.5%/hour with radio on, assume 8.25 mA consumption of non-CPU stuff in deep sleep. Best case consumption when wakelocked is usually around 1.25-1.5%/hour, assume then, about 25 mA total when wakelocked. Subtract the baseline and it's 15-16 mA. Let's just round to a multiple of 5 here, since it IS a WAG. Also, consumption when the CPU is running at 200 MHz (for example, governor set to ignore nice load, and a program is endlessly looping but niced to avoid bumping the gov) is usually around 4-5%/hour, which is semi-consistent with a number of 55 mA for 200 MHz op. Change-Id: I6aa08842dd2acfced0c70a95d973aa0b415799cc
This commit is contained in:
parent
6f4d2ebc76
commit
1579100c87
@ -25,6 +25,7 @@
|
||||
<value>200000</value>
|
||||
</array>
|
||||
<item name="cpu.idle">2</item>
|
||||
<item name="cpu.awake">15</item>
|
||||
<array name="cpu.active">
|
||||
<value>577</value>
|
||||
<value>408</value>
|
||||
|
Loading…
Reference in New Issue
Block a user