From d000c4ac1c5979be1e75391181f6af8a49a501e6 Mon Sep 17 00:00:00 2001 From: DY3413 Date: Wed, 3 Jul 2024 15:50:00 +0900 Subject: [PATCH] Spacewar: Use common libqti-perfd-client - Add libqti-perfd-client namespace import Change-Id: I9278d402937e87ebd06a91ad482982cb27a2b5fa Signed-off-by: DY3413 --- device.mk | 8 +++----- libqti-perfd-client/Android.bp | 17 ----------------- libqti-perfd-client/client.c | 24 ------------------------ 3 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 libqti-perfd-client/Android.bp delete mode 100644 libqti-perfd-client/client.c diff --git a/device.mk b/device.mk index 62f7d80..04836ac 100644 --- a/device.mk +++ b/device.mk @@ -29,6 +29,7 @@ PRODUCT_SOONG_NAMESPACES += \ hardware/nothing \ hardware/google/interfaces \ hardware/google/pixel \ + hardware/qcom-caf/common/libqti-perfd-client \ hardware/lineage/interfaces/power-libperfmgr \ vendor/qcom/opensource/usb/etc @@ -334,14 +335,11 @@ PRODUCT_PACKAGES += \ libOmxQcelp13Enc \ libstagefrighthw -# Perfd (dummy) -PRODUCT_PACKAGES += \ - libqti-perfd-client - # Power PRODUCT_PACKAGES += \ android.hardware.power-service.lineage-libperfmgr \ - android.hardware.power@1.3.vendor + android.hardware.power@1.3.vendor \ + libqti-perfd-client PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/perf/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json diff --git a/libqti-perfd-client/Android.bp b/libqti-perfd-client/Android.bp deleted file mode 100644 index 1c8e282..0000000 --- a/libqti-perfd-client/Android.bp +++ /dev/null @@ -1,17 +0,0 @@ -cc_library_shared { - name: "libqti-perfd-client", - proprietary: true, - defaults: ["hidl_defaults"], - srcs: [ - "client.c", - ], - cflags: [ - "-Werror", - "-Wextra", - "-Wall", - ], - shared_libs: [ - "libutils", - "liblog", - ], -} diff --git a/libqti-perfd-client/client.c b/libqti-perfd-client/client.c deleted file mode 100644 index 42b3cdc..0000000 --- a/libqti-perfd-client/client.c +++ /dev/null @@ -1,24 +0,0 @@ -#define LOG_TAG "libqti-perfd-client" - -#include -#include - -void perf_get_feedback() {} -void perf_hint() {} -int perf_lock_acq(int handle, int duration, int arg3[], int arg4) { - ALOGI("perf_lock_acq: handle: %d, duration: %d, arg3[0]: %d, arg4: %d", - handle, duration, arg3[0], arg4); - if (handle > 0) - return handle; - - return 233; -} -void perf_lock_cmd() {} -int perf_lock_rel(int handle) { - ALOGI("perf_lock_rel: handle: %d", handle); - if (handle > 0) - return handle; - - return 233; -} -void perf_lock_use_profile() {}