From 400509afa421c6a4026ea81a5af4e6003414b316 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 Signed-off-by: Atman --- 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 b357ca44..1654ae6b 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -343,6 +343,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ libjson +# QTI Performance +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/perf/perf-profile0.conf:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perf-profile0.conf + # RCS PRODUCT_PACKAGES += \ rcs_service_aidl \