From f7bcc5396bdbef0a5be14e2cf93b4f8a3b227bd6 Mon Sep 17 00:00:00 2001 From: Quallenauge Date: Fri, 31 May 2019 18:07:08 +0000 Subject: [PATCH] sdm660-common: 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 Change-Id: I0bf7ddb76864d597c3e6d334eddce51f20710381 --- configs/perf/perf-profile0.conf | 2 ++ sdm660.mk | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 configs/perf/perf-profile0.conf diff --git a/configs/perf/perf-profile0.conf b/configs/perf/perf-profile0.conf new file mode 100644 index 00000000..0c358e14 --- /dev/null +++ b/configs/perf/perf-profile0.conf @@ -0,0 +1,2 @@ +[priority] # This profile is reserved for perflock requests +99 diff --git a/sdm660.mk b/sdm660.mk index 03e70815..a30f34e6 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -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 \