Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eced0f42 authored by Sooraj S's avatar Sooraj S 👽
Browse files

FP3: Add dummy perf profile

Since lineageos 15.1 the power hal doesn't use the

perf_lock_use_profile() method anymore.

It was used to apply performance profiles.

On startup the perfd daemon is looking for at least

one profile which is used as default.

So there is only a perf-profiles0.conf to make the

daemon happy.

Removes log spam:

E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
parent 67b653fe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
[priority] # This profile is reserved for perflock requests
99
+3 −2
Original line number Diff line number Diff line
@@ -339,9 +339,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
	$(LOCAL_PATH)/rootdir/bin/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh

# Powerhint configuration file
# Perf
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/configs/powerhint.xml:system/etc/powerhint.xml
    $(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml \
    $(LOCAL_PATH)/configs/perf/perf-profile0.conf:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perf-profile0.conf

# Enable vndk-sp Libraries
PRODUCT_PACKAGES += \