mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-17 02:47:16 +09:00
sm6250-common: power-libperfmgr: Remove ATRACE instances
Change-Id: I50eaf5fd6c3763ab005ec965c3dfa173808313e3
This commit is contained in:
parent
e41ad9878e
commit
8dd85e63a9
@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr"
|
||||
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
@ -105,7 +104,6 @@ void InteractionHandler::PerfLock() {
|
||||
if (!mHintManager->DoHint("INTERACTION")) {
|
||||
ALOGE("%s: do hint INTERACTION failed", __func__);
|
||||
}
|
||||
ATRACE_INT("interaction_lock", 1);
|
||||
}
|
||||
|
||||
void InteractionHandler::PerfRel() {
|
||||
@ -113,7 +111,6 @@ void InteractionHandler::PerfRel() {
|
||||
if (!mHintManager->EndHint("INTERACTION")) {
|
||||
ALOGE("%s: end hint INTERACTION failed", __func__);
|
||||
}
|
||||
ATRACE_INT("interaction_lock", 0);
|
||||
}
|
||||
|
||||
size_t InteractionHandler::CalcTimespecDiffMs(struct timespec start, struct timespec end) {
|
||||
@ -124,7 +121,6 @@ size_t InteractionHandler::CalcTimespecDiffMs(struct timespec start, struct time
|
||||
}
|
||||
|
||||
void InteractionHandler::Acquire(int32_t duration) {
|
||||
ATRACE_CALL();
|
||||
|
||||
std::lock_guard<std::mutex> lk(mLock);
|
||||
if (mState == INTERACTION_STATE_UNINITIALIZED) {
|
||||
@ -170,7 +166,6 @@ void InteractionHandler::Acquire(int32_t duration) {
|
||||
void InteractionHandler::Release() {
|
||||
std::lock_guard<std::mutex> lk(mLock);
|
||||
if (mState == INTERACTION_STATE_WAITING) {
|
||||
ATRACE_CALL();
|
||||
PerfRel();
|
||||
mState = INTERACTION_STATE_IDLE;
|
||||
} else {
|
||||
@ -195,7 +190,6 @@ void InteractionHandler::WaitForIdle(int32_t wait_ms, int32_t timeout_ms) {
|
||||
ssize_t ret;
|
||||
struct pollfd pfd[2];
|
||||
|
||||
ATRACE_CALL();
|
||||
|
||||
ALOGV("%s: wait:%d timeout:%d", __func__, wait_ms, timeout_ms);
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr"
|
||||
|
||||
#include <android-base/file.h>
|
||||
@ -100,7 +99,6 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
|
||||
if (!mReady) {
|
||||
return Void();
|
||||
}
|
||||
ATRACE_INT(android::hardware::power::V1_0::toString(hint).c_str(), data);
|
||||
ALOGD_IF(hint != PowerHint_1_0::INTERACTION, "%s: %d",
|
||||
android::hardware::power::V1_0::toString(hint).c_str(), static_cast<int>(data));
|
||||
switch (hint) {
|
||||
@ -218,7 +216,6 @@ Return<void> Power::powerHintAsync_1_2(PowerHint_1_2 hint, int32_t data) {
|
||||
return Void();
|
||||
}
|
||||
|
||||
ATRACE_INT(android::hardware::power::V1_2::toString(hint).c_str(), data);
|
||||
ALOGD_IF(hint >= PowerHint_1_2::AUDIO_STREAMING, "%s: %d",
|
||||
android::hardware::power::V1_2::toString(hint).c_str(), static_cast<int>(data));
|
||||
|
||||
@ -255,7 +252,6 @@ Return<void> Power::powerHintAsync_1_3(PowerHint_1_3 hint, int32_t data) {
|
||||
}
|
||||
|
||||
if (hint == PowerHint_1_3::EXPENSIVE_RENDERING) {
|
||||
ATRACE_INT(android::hardware::power::V1_3::toString(hint).c_str(), data);
|
||||
if (mSustainedPerfModeOn) {
|
||||
ALOGV("%s: ignoring due to other active perf hints", __func__);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user