sdm660-common: libqti-perfd-client: Clean up
* Run clang-format * Add newlines between functions * Use elvis operator `?:` for return value Change-Id: I920044df12c99d32ddd2ef3fb5edf24bcd0c7360
This commit is contained in:
parent
96cf0f2314
commit
3fa90f8034
1 changed files with 17 additions and 12 deletions
|
@ -1,24 +1,29 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2021-2024 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "libqti-perfd-client"
|
#define LOG_TAG "libqti-perfd-client"
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
void perf_get_feedback() {}
|
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_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);
|
||||||
|
return handle ?: 233;
|
||||||
}
|
}
|
||||||
|
|
||||||
void perf_lock_cmd() {}
|
void perf_lock_cmd() {}
|
||||||
|
|
||||||
int perf_lock_rel(int handle) {
|
int perf_lock_rel(int handle) {
|
||||||
ALOGI("perf_lock_rel: handle: %d", handle);
|
ALOGI("perf_lock_rel: handle: %d", handle);
|
||||||
if (handle > 0)
|
return handle ?: 233;
|
||||||
return handle;
|
|
||||||
|
|
||||||
return 233;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void perf_lock_use_profile() {}
|
void perf_lock_use_profile() {}
|
||||||
|
|
Loading…
Reference in a new issue