summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2015-09-03 19:04:28 -0300
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-09-03 15:25:15 -0700
commitf0a445c957036e791c2bd146e5b8cf1e082e099b (patch)
tree9cc51d6c65d33f2e2f169abbaddf7cde46ffa4a8 /rootdir
parent1c708f0110715d9e3712122204e55ee220c5ff69 (diff)
downloaddevice_samsung_galaxys2-common-f0a445c957036e791c2bd146e5b8cf1e082e099b.zip
device_samsung_galaxys2-common-f0a445c957036e791c2bd146e5b8cf1e082e099b.tar.gz
device_samsung_galaxys2-common-f0a445c957036e791c2bd146e5b8cf1e082e099b.tar.bz2
Add CM performance profiles
Change-Id: I9979c903d63d2638f12a0a5774fa2290d1181324
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.smdk4210.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/rootdir/init.smdk4210.rc b/rootdir/init.smdk4210.rc
index efabcfe..f4139e7 100644
--- a/rootdir/init.smdk4210.rc
+++ b/rootdir/init.smdk4210.rc
@@ -441,3 +441,16 @@ service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1
service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0
class late_start
disabled
+
+## CyanogenMod Performance Profiles
+# Powersave
+on property:sys.perf.profile=0
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
+
+# Balanced
+on property:sys.perf.profile=1
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
+
+# Performance
+on property:sys.perf.profile=2
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance