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:34:07 -0700
commit8e1b21fdadaae0fd58351b80a368d64ccfe54bb2 (patch)
tree22141e2ecaf124bd75458bb8653c322600db6bb6
parent3bf8f77c33cbc700101de83dc1787a98a5d0fd36 (diff)
downloaddevice_samsung_espresso3g-8e1b21fdadaae0fd58351b80a368d64ccfe54bb2.zip
device_samsung_espresso3g-8e1b21fdadaae0fd58351b80a368d64ccfe54bb2.tar.gz
device_samsung_espresso3g-8e1b21fdadaae0fd58351b80a368d64ccfe54bb2.tar.bz2
P51XX: add performance profiles
Change-Id: I085f25019510b65d21020db22ff313980cb095c1
-rw-r--r--overlay/cm-common/frameworks/base/core/res/res/values/config.xml4
-rwxr-xr-xrootdir/init.espresso10.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.espresso10.rc b/rootdir/init.espresso10.rc
index 9174450..5a9c634 100755
--- a/rootdir/init.espresso10.rc
+++ b/rootdir/init.espresso10.rc
@@ -450,3 +450,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