common: perf: Add the poweropt service back.

Change-Id: I2f4d083e159041b12a0864fb7ce3f44b08747988
This commit is contained in:
Alexander Koskovich 2021-05-04 08:56:07 -07:00
parent f464fcff66
commit 78b4971137
No known key found for this signature in database
GPG Key ID: F1107C9A417AC130
3 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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.memory.pasrmanager@1.0-service
vendor/bin/hw/vendor.qti.psiclient@1.0-service vendor/bin/hw/vendor.qti.psiclient@1.0-service
vendor/bin/msm_irqbalance 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.iop@2.0-service.rc
vendor/etc/init/vendor.qti.hardware.perf@2.2-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.hardware.servicetracker@1.2-service.rc
vendor/etc/init/vendor.qti.memory.pasrmanager@1.0-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/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.hardware.servicetracker@1.2-service.xml
-vendor/etc/vintf/manifest/vendor.qti.memory.pasrmanager@1.0-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 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/libperfconfig.so
vendor/lib64/libperfgluelayer.so vendor/lib64/libperfgluelayer.so
vendor/lib64/libperfioctl.so vendor/lib64/libperfioctl.so
vendor/lib64/libpowercallback.so
vendor/lib64/libpowercore.so
vendor/lib64/libprekill.so vendor/lib64/libprekill.so
vendor/lib64/libqti-iopd.so vendor/lib64/libqti-iopd.so
vendor/lib64/libqti-iopd-client.so vendor/lib64/libqti-iopd-client.so

View File

@ -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 $(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 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 # Packages
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.thermal@2.0 \ android.hardware.thermal@2.0 \