From 4784f51d06575078946dbf84cc792d10a5a05084 Mon Sep 17 00:00:00 2001 From: Quallenauge Date: Thu, 27 Sep 2018 19:44:14 +0200 Subject: 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: I170cda016f99ab2ab00fbefe78ddde9757235c44 --- configs/perf/perf-profile0.conf | 2 ++ sdm660.mk | 3 +++ 2 files changed, 5 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 0000000..0c358e1 --- /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 d4c44af..7be5231 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -329,6 +329,9 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ android.hardware.power@1.1-service-qti +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/perf/perf-profile0.conf:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perf-profile0.conf + # Public Libraries PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt -- cgit v1.2.3