Skip to content

Commit

Permalink
mofd-common: init: Make ondemand a little less on demand
Browse files Browse the repository at this point in the history
Turn off io_is_busy which helps reduce the power consumption
when doing things like playing youtube videos (slightly).

For lower frequencies, enable a tiny powersave_bias.  That will
target lower frequencies and should cause us to idle more often
at min frequency and generally slide the frequency utilizations
down a little bit.  Cap the bias at a low frequency though so
we don't sacrifice top end performance for lower end power savings.

Change-Id: I1aaae883ff55249bdaebfcf203c55d4d0e9d55d8
  • Loading branch information
crpalmer authored and andreaturchet committed Jan 31, 2016
1 parent a7e14e3 commit 8515296
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootdir/etc/init.power.mofd_v1.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on property:sys.boot_completed=1
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 0
write /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias 1
write /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias_threshold 700000
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 20000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq ${ro.sys.perf.device.full}
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq ${ro.sys.perf.device.full}
Expand Down

0 comments on commit 8515296

Please sign in to comment.