sm6250-common: power-libperfmgr: Remove ATRACE instances

Change-Id: I50eaf5fd6c3763ab005ec965c3dfa173808313e3
This commit is contained in:
Subhajeet Muhuri 2020-01-21 20:43:22 +05:30 committed by Volodymyr Zhdanov
parent e41ad9878e
commit 8dd85e63a9
2 changed files with 0 additions and 10 deletions

View File

@ -15,7 +15,6 @@
*/ */
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr" #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 <fcntl.h>
#include <poll.h> #include <poll.h>
@ -105,7 +104,6 @@ void InteractionHandler::PerfLock() {
if (!mHintManager->DoHint("INTERACTION")) { if (!mHintManager->DoHint("INTERACTION")) {
ALOGE("%s: do hint INTERACTION failed", __func__); ALOGE("%s: do hint INTERACTION failed", __func__);
} }
ATRACE_INT("interaction_lock", 1);
} }
void InteractionHandler::PerfRel() { void InteractionHandler::PerfRel() {
@ -113,7 +111,6 @@ void InteractionHandler::PerfRel() {
if (!mHintManager->EndHint("INTERACTION")) { if (!mHintManager->EndHint("INTERACTION")) {
ALOGE("%s: end hint INTERACTION failed", __func__); ALOGE("%s: end hint INTERACTION failed", __func__);
} }
ATRACE_INT("interaction_lock", 0);
} }
size_t InteractionHandler::CalcTimespecDiffMs(struct timespec start, struct timespec end) { 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) { void InteractionHandler::Acquire(int32_t duration) {
ATRACE_CALL();
std::lock_guard<std::mutex> lk(mLock); std::lock_guard<std::mutex> lk(mLock);
if (mState == INTERACTION_STATE_UNINITIALIZED) { if (mState == INTERACTION_STATE_UNINITIALIZED) {
@ -170,7 +166,6 @@ void InteractionHandler::Acquire(int32_t duration) {
void InteractionHandler::Release() { void InteractionHandler::Release() {
std::lock_guard<std::mutex> lk(mLock); std::lock_guard<std::mutex> lk(mLock);
if (mState == INTERACTION_STATE_WAITING) { if (mState == INTERACTION_STATE_WAITING) {
ATRACE_CALL();
PerfRel(); PerfRel();
mState = INTERACTION_STATE_IDLE; mState = INTERACTION_STATE_IDLE;
} else { } else {
@ -195,7 +190,6 @@ void InteractionHandler::WaitForIdle(int32_t wait_ms, int32_t timeout_ms) {
ssize_t ret; ssize_t ret;
struct pollfd pfd[2]; struct pollfd pfd[2];
ATRACE_CALL();
ALOGV("%s: wait:%d timeout:%d", __func__, wait_ms, timeout_ms); ALOGV("%s: wait:%d timeout:%d", __func__, wait_ms, timeout_ms);

View File

@ -14,7 +14,6 @@
* limitations under the License. * 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" #define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr"
#include <android-base/file.h> #include <android-base/file.h>
@ -100,7 +99,6 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
if (!mReady) { if (!mReady) {
return Void(); return Void();
} }
ATRACE_INT(android::hardware::power::V1_0::toString(hint).c_str(), data);
ALOGD_IF(hint != PowerHint_1_0::INTERACTION, "%s: %d", ALOGD_IF(hint != PowerHint_1_0::INTERACTION, "%s: %d",
android::hardware::power::V1_0::toString(hint).c_str(), static_cast<int>(data)); android::hardware::power::V1_0::toString(hint).c_str(), static_cast<int>(data));
switch (hint) { switch (hint) {
@ -218,7 +216,6 @@ Return<void> Power::powerHintAsync_1_2(PowerHint_1_2 hint, int32_t data) {
return Void(); return Void();
} }
ATRACE_INT(android::hardware::power::V1_2::toString(hint).c_str(), data);
ALOGD_IF(hint >= PowerHint_1_2::AUDIO_STREAMING, "%s: %d", ALOGD_IF(hint >= PowerHint_1_2::AUDIO_STREAMING, "%s: %d",
android::hardware::power::V1_2::toString(hint).c_str(), static_cast<int>(data)); 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) { if (hint == PowerHint_1_3::EXPENSIVE_RENDERING) {
ATRACE_INT(android::hardware::power::V1_3::toString(hint).c_str(), data);
if (mSustainedPerfModeOn) { if (mSustainedPerfModeOn) {
ALOGV("%s: ignoring due to other active perf hints", __func__); ALOGV("%s: ignoring due to other active perf hints", __func__);
} else { } else {