power: Modify definitions of Perf client calls
Now conforms to the exact definition in the shared perf library Change-Id: I6f92140b42800072283c2f3a52e6814fc0f1d5d2
This commit is contained in:
9
utils.c
9
utils.c
@@ -52,11 +52,12 @@ char scaling_gov_path[4][80] ={
|
|||||||
|
|
||||||
#define PERF_HAL_PATH "libqti-perfd-client.so"
|
#define PERF_HAL_PATH "libqti-perfd-client.so"
|
||||||
static void *qcopt_handle;
|
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);
|
int list[], int numArgs);
|
||||||
static int (*perf_lock_rel)(unsigned long handle);
|
static int (*perf_lock_rel)(int handle);
|
||||||
static int (*perf_hint)(int, char *, int, int);
|
static int (*perf_hint)(int, const char *, int, int);
|
||||||
static struct list_node active_hint_list_head;
|
static struct list_node active_hint_list_head;
|
||||||
|
const char *pkg = "QTI PowerHAL";
|
||||||
|
|
||||||
static void *get_qcopt_handle()
|
static void *get_qcopt_handle()
|
||||||
{
|
{
|
||||||
@@ -253,7 +254,7 @@ int perf_hint_enable(int hint_id , int duration)
|
|||||||
|
|
||||||
if (qcopt_handle) {
|
if (qcopt_handle) {
|
||||||
if (perf_hint) {
|
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)
|
if (lock_handle == -1)
|
||||||
ALOGE("Failed to acquire lock for hint_id: %X.", hint_id);
|
ALOGE("Failed to acquire lock for hint_id: %X.", hint_id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user