summaryrefslogtreecommitdiffstats
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
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
-rwxr-xr-xoverlay/frameworks/base/core/res/res/values/config.xml4
-rw-r--r--rootdir/init.smdk4210.rc13
2 files changed, 17 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index f7e2816..65c84bf 100755
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -160,4 +160,8 @@
<!-- Boolean to enable stk functionality on Samsung phones -->
<bool name="config_samsung_stk">true</bool>
+
+ <!-- Performance profiles -->
+ <string name="config_perf_profile_prop">sys.perf.profile</string>
+ <string name="config_perf_profile_default_entry">1</string>
</resources>
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