Skip to content

Commit

Permalink
sdm660-common: Add dummy perf profile.
Browse files Browse the repository at this point in the history
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

Change-Id: I0bf7ddb76864d597c3e6d334eddce51f20710381
  • Loading branch information
Quallenauge authored and rk779 committed Jul 30, 2020
1 parent 6f98c61 commit f7bcc53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/perf/perf-profile0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[priority] # This profile is reserved for perflock requests
99
4 changes: 4 additions & 0 deletions sdm660.mk
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml \
$(LOCAL_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml

# QTI Performance
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/perf/perf-profile0.conf:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perf-profile0.conf

# Ramdisk
PRODUCT_PACKAGES += \
init.class_main.sh \
Expand Down

0 comments on commit f7bcc53

Please sign in to comment.