summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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