aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas-Karl Pietrowski <thopiekar@googlemail.com>2015-07-10 15:23:04 +0200
committerAndreas Blaesius <skate4life@gmx.de>2015-07-14 00:35:09 -0700
commit14e68b0dc18f22498c4493455f9a321fbf15f834 (patch)
tree325fe9b88cc8c41900338873912b8c2cf275f67e
parent584a97a022f5066e51415113a9afb37af8110867 (diff)
downloaddevice_samsung_espressowifi-14e68b0dc18f22498c4493455f9a321fbf15f834.zip
device_samsung_espressowifi-14e68b0dc18f22498c4493455f9a321fbf15f834.tar.gz
device_samsung_espressowifi-14e68b0dc18f22498c4493455f9a321fbf15f834.tar.bz2
P31XX: add performance profiles
Change-Id: I085f25019510b65d21020db22ff313980cb095c1
-rw-r--r--overlay/cm-common/frameworks/base/core/res/res/values/config.xml4
-rwxr-xr-xrootdir/init.espresso.rc13
2 files changed, 17 insertions, 0 deletions
diff --git a/overlay/cm-common/frameworks/base/core/res/res/values/config.xml b/overlay/cm-common/frameworks/base/core/res/res/values/config.xml
index 4b7dfa3..be240bd 100644
--- a/overlay/cm-common/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/cm-common/frameworks/base/core/res/res/values/config.xml
@@ -52,4 +52,8 @@
<!-- Is the device LTE capable -->
<bool name="config_lte_capable">false</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.espresso.rc b/rootdir/init.espresso.rc
index 48dab84..d9aae5e 100755
--- a/rootdir/init.espresso.rc
+++ b/rootdir/init.espresso.rc
@@ -444,3 +444,16 @@ on property:ro.bootmode=charger
service charger /charger
class charger
user root
+
+## CyanogenMod Performance Profiles
+# Powersave
+on property:sys.perf.profile=0
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
+
+# Balanced, here interactive governor
+on property:sys.perf.profile=1
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
+
+# Performance
+on property:sys.perf.profile=2
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance