summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuallenauge <Hamsi2k@freenet.de>2018-09-27 19:44:14 +0200
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:53 +0300
commit4784f51d06575078946dbf84cc792d10a5a05084 (patch)
treec6c5bcadc4298f77c9ac8bbb70d1c637de43413f
parent39841e917824b9f115ccfc4788ed2e94b0810a7b (diff)
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
-rw-r--r--configs/perf/perf-profile0.conf2
-rw-r--r--sdm660.mk3
2 files changed, 5 insertions, 0 deletions
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