From 2731f95e03f6e7d3a6448560bf1e4c300c9f5cdd Mon Sep 17 00:00:00 2001 From: Ananth Raghavan Subramanian Date: Tue, 28 May 2019 11:40:44 -0700 Subject: power: Modify definitions of Perf client calls Now conforms to the exact definition in the shared perf library Change-Id: I6f92140b42800072283c2f3a52e6814fc0f1d5d2 --- utils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 66c45e0..f7f2251 100644 --- a/utils.c +++ b/utils.c @@ -52,11 +52,12 @@ char scaling_gov_path[4][80] ={ #define PERF_HAL_PATH "libqti-perfd-client.so" static void *qcopt_handle; -static int (*perf_lock_acq)(unsigned long handle, int duration, +static int (*perf_lock_acq)(int handle, int duration, int list[], int numArgs); -static int (*perf_lock_rel)(unsigned long handle); -static int (*perf_hint)(int, char *, int, int); +static int (*perf_lock_rel)(int handle); +static int (*perf_hint)(int, const char *, int, int); static struct list_node active_hint_list_head; +const char *pkg = "QTI PowerHAL"; static void *get_qcopt_handle() { @@ -253,7 +254,7 @@ int perf_hint_enable(int hint_id , int duration) if (qcopt_handle) { if (perf_hint) { - lock_handle = perf_hint(hint_id, NULL, duration, -1); + lock_handle = perf_hint(hint_id, pkg, duration, -1); if (lock_handle == -1) ALOGE("Failed to acquire lock for hint_id: %X.", hint_id); } -- cgit v1.2.3