Skip to content

Commit

Permalink
Add CPU performance profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmower committed Oct 8, 2014
1 parent 7d1c2ce commit 40d33ae
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions recovery/etc/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ on boot
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "ondemand"
setprop recovery.perf.mode 0
start choice_fn
start chargeled

on property:recovery.perf.mode=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
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/cpu1/online 0
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0

on property:recovery.perf.mode=1
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "performance"

service choice_fn /sbin/choice_fn
disabled

Expand Down

0 comments on commit 40d33ae

Please sign in to comment.