From 78b497113770e7bd6aadd508753dc9effb10d25f Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Tue, 4 May 2021 08:56:07 -0700 Subject: [PATCH] common: perf: Add the poweropt service back. Change-Id: I2f4d083e159041b12a0864fb7ce3f44b08747988 --- perf/poweropt-service-disable.rc | 20 ++++++++++++++++++++ perf/proprietary-files.txt | 6 ++++++ perf/qti-perf.mk | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 perf/poweropt-service-disable.rc diff --git a/perf/poweropt-service-disable.rc b/perf/poweropt-service-disable.rc new file mode 100644 index 00000000..05aeacb9 --- /dev/null +++ b/perf/poweropt-service-disable.rc @@ -0,0 +1,20 @@ +# Copyright (C) 2021 Paranoid Android +# +# 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. + +service poweropt-service /vendor/bin/poweropt-service + override + class main + user root + group system + disabled diff --git a/perf/proprietary-files.txt b/perf/proprietary-files.txt index 193dbc8f..dddfb10c 100644 --- a/perf/proprietary-files.txt +++ b/perf/proprietary-files.txt @@ -58,11 +58,15 @@ vendor/bin/hw/vendor.qti.hardware.servicetracker@1.2-service vendor/bin/hw/vendor.qti.memory.pasrmanager@1.0-service vendor/bin/hw/vendor.qti.psiclient@1.0-service vendor/bin/msm_irqbalance +vendor/bin/poweropt-service +vendor/etc/init/poweropt-service.rc vendor/etc/init/vendor.qti.hardware.iop@2.0-service.rc vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc vendor/etc/init/vendor.qti.hardware.servicetracker@1.2-service.rc vendor/etc/init/vendor.qti.memory.pasrmanager@1.0-service.rc vendor/etc/init/vendor.qti.psiclient@1.0-service.rc +vendor/etc/pwr/PowerFeatureConfig.xml +vendor/etc/pwr/VideoPowerOptFeature.xml -vendor/etc/vintf/manifest/vendor.qti.hardware.servicetracker@1.2-service.xml -vendor/etc/vintf/manifest/vendor.qti.memory.pasrmanager@1.0-service.xml vendor/lib/hw/vendor.qti.hardware.servicetracker@1.2-impl.so @@ -100,6 +104,8 @@ vendor/lib64/libpasrutils.so vendor/lib64/libperfconfig.so vendor/lib64/libperfgluelayer.so vendor/lib64/libperfioctl.so +vendor/lib64/libpowercallback.so +vendor/lib64/libpowercore.so vendor/lib64/libprekill.so vendor/lib64/libqti-iopd.so vendor/lib64/libqti-iopd-client.so diff --git a/perf/qti-perf.mk b/perf/qti-perf.mk index 657c8fe8..e02674c1 100644 --- a/perf/qti-perf.mk +++ b/perf/qti-perf.mk @@ -31,6 +31,12 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/perf/vendor.qti.hardware.iop@2.0-service-disable.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.iop@2.0-service-disable.rc endif +# Disable the poweropt service for non 5.4 platforms. +ifneq ($(TARGET_KERNEL_VERSION),5.4) +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/perf/poweropt-service-disable.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/poweropt-service-disable.rc +endif + # Packages PRODUCT_PACKAGES += \ android.hardware.thermal@2.0 \