From 7b109428a4683b89400095e1c9c025b5e1b058cd Mon Sep 17 00:00:00 2001 From: BYZYB Date: Wed, 15 Nov 2023 22:03:49 +0800 Subject: [PATCH] perfd: Remove unnecessary logs The logs about "perf_lock" are triggered too frequently, remove them to reduce overhead. Change-Id: Ic02a915884128555e76e88fb3b95f89651f4a95b --- libqti-perfd-client/Android.bp | 1 + libqti-perfd-client/client.c | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/libqti-perfd-client/Android.bp b/libqti-perfd-client/Android.bp index 010d072..308b8cd 100644 --- a/libqti-perfd-client/Android.bp +++ b/libqti-perfd-client/Android.bp @@ -7,6 +7,7 @@ cc_library_shared { ], cflags: [ "-Werror", + "-Wno-error=unused-parameter", "-Wextra", "-Wall", ], diff --git a/libqti-perfd-client/client.c b/libqti-perfd-client/client.c index 91b4dba..c1e87eb 100644 --- a/libqti-perfd-client/client.c +++ b/libqti-perfd-client/client.c @@ -8,23 +8,13 @@ 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; + return handle; } void perf_lock_cmd() {} int perf_lock_rel(int handle) { - ALOGI("perf_lock_rel: handle: %d", handle); - - if (handle > 0) - return handle; - - return 233; + return handle; } void perf_lock_use_profile() {}