3
0
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
Andrew Dodd 1579100c87 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
2012-10-04 03:54:45 -07:00
Andrew Dodd de0d2f55ae power_profile: Bring a sane one from a Samsung firmware
Whatever is currently here looks like it's OMAP-ish
and results in what appears to be bogus ordering in
Battery stats.
2012-09-14 21:53:13 -04:00
Daniel Hillenbrand 51841ab0c5 initial commit 2012-07-25 04:32:16 +02:00