summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorAngelo G. Del Regno <kholk11@gmail.com>2017-05-18 19:43:12 +0200
committerSteven Lay <arbiter1000@gmail.com>2017-05-31 06:15:00 +0000
commitc9c13bb8669cdedb6bc93b1c5afd400927a1af2e (patch)
tree3f067f3c00b7ea08a5bdda39e16fe5bbd69ba7da /rootdir
parent50680f56b82f1b1cfae22dc6e989e5ebf2f41691 (diff)
Migrate to new RQBalance-PowerHAL's XML configuration
The new RQBalance-PowerHAL deprecates configuration through Android properties. Now the configuration is parsed from an XML, located at /system/etc/rqbalance_config.xml. Change-Id: Iebc85a4f420e9b471139063a03a3831f95be5e28
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/system/etc/rqbalance_config.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/rootdir/system/etc/rqbalance_config.xml b/rootdir/system/etc/rqbalance_config.xml
new file mode 100644
index 0000000..ce43a99
--- /dev/null
+++ b/rootdir/system/etc/rqbalance_config.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Copyright (C) 2017 AngeloGioacchino Del Regno <kholk11@gmail.com> -->
+<!-- -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
+<!-- you may not use this file except in compliance with the License. -->
+<!-- You may obtain a copy of the License at -->
+<!-- -->
+<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
+<!-- -->
+<!-- Unless required by applicable law or agreed to in writing, software -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and -->
+<!-- limitations under the License. -->
+
+<rqbalance_config>
+
+ <batterysave>
+ <cpuquiet min_cpus="1" max_cpus="2"/>
+ <rqbalance balance_level="80"/>
+ <rqbalance down_thresholds="0 100 300 500 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="200 400 600 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </batterysave>
+
+ <balanced>
+ <cpuquiet min_cpus="2" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </balanced>
+
+ <performance>
+ <cpuquiet min_cpus="4" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </performance>
+
+ <video_decoding>
+ <cpuquiet min_cpus="1" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 90 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 115 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </video_decoding>
+
+ <video_encoding>
+ <cpuquiet min_cpus="3" max_cpus="4"/>
+ <rqbalance balance_level="60"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </video_encoding>
+
+</rqbalance_config>
+