diff options
author | Angelo G. Del Regno <kholk11@gmail.com> | 2017-05-18 19:43:12 +0200 |
---|---|---|
committer | Steven Lay <arbiter1000@gmail.com> | 2017-05-31 06:15:00 +0000 |
commit | c9c13bb8669cdedb6bc93b1c5afd400927a1af2e (patch) | |
tree | 3f067f3c00b7ea08a5bdda39e16fe5bbd69ba7da | |
parent | 50680f56b82f1b1cfae22dc6e989e5ebf2f41691 (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
-rw-r--r-- | rootdir/system/etc/rqbalance_config.xml | 54 | ||||
-rw-r--r-- | shinano.mk | 5 | ||||
-rw-r--r-- | system.prop | 16 |
3 files changed, 59 insertions, 16 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> + @@ -106,6 +106,11 @@ PRODUCT_PACKAGES += \ com.qualcomm.location \ gps.msm8974 + +# RQBalance-PowerHAL configuration +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/rootdir/system/etc/rqbalance_config.xml:system/etc/rqbalance_config.xml + # IPC Security Config PRODUCT_COPY_FILES += \ $(COMMON_PATH)/rootdir/system/etc/sec_config:system/etc/sec_config diff --git a/system.prop b/system.prop index 52e2d67..0fe2f49 100644 --- a/system.prop +++ b/system.prop @@ -1,19 +1,3 @@ -# -# rqbalance specific values -# - -cpuquiet.low.min_cpus=1 -cpuquiet.low.max_cpus=2 -rqbalance.low.balance_level=80 -rqbalance.low.up_threshold=200 400 600 4294967295 -rqbalance.low.down_threshold=0 100 300 500 - -cpuquiet.normal.min_cpus=2 -cpuquiet.normal.max_cpus=4 -rqbalance.normal.balance_level=40 -rqbalance.normal.up_threshold=100 250 330 4294967295 -rqbalance.normal.down_threshold=0 130 220 300 - # Ril ro.use_data_netmgrd=true ro.ril.enable.amr.wideband=1 |