summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnanth Raghavan Subramanian <sananth@codeaurora.org>2019-05-28 11:40:44 -0700
committerAnanth Raghavan Subramanian <sananth@codeaurora.org>2019-05-28 11:47:11 -0700
commit2731f95e03f6e7d3a6448560bf1e4c300c9f5cdd (patch)
tree0005e09f4cf00db4a22893deec373e61745396ed
parent561cffcbfa66192e839e040d2da3bff2ecf8dcac (diff)
downloadvendor_qcom_opensource_power-2731f95e03f6e7d3a6448560bf1e4c300c9f5cdd.tar.gz
vendor_qcom_opensource_power-2731f95e03f6e7d3a6448560bf1e4c300c9f5cdd.tar.bz2
vendor_qcom_opensource_power-2731f95e03f6e7d3a6448560bf1e4c300c9f5cdd.zip
power: Modify definitions of Perf client calls
Now conforms to the exact definition in the shared perf library Change-Id: I6f92140b42800072283c2f3a52e6814fc0f1d5d2
-rw-r--r--utils.c9
1 files changed, 5 insertions, 4 deletions
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);
}