sm6375-common: power-libperfmgr: move trace point to libperfmgr.

Test: systrace
Bug: 199776250
Change-Id: I9bb4d5a50faa93e7bc638ef723bdc2662fb63b24
This commit is contained in:
Wei Wang 2024-07-18 12:56:42 +05:30 committed by Anand S
commit c674edc828
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
3 changed files with 0 additions and 11 deletions

View file

@ -14,7 +14,6 @@
* limitations under the License.
*/
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
#define LOG_TAG "powerhal-libperfmgr"
#include "Power.h"
@ -26,10 +25,8 @@
#include <android-base/properties.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <cutils/properties.h>
#include <utils/Log.h>
#include <utils/Trace.h>
#include "PowerHintSession.h"
#include "PowerSessionManager.h"
@ -87,7 +84,6 @@ Power::Power(std::shared_ptr<HintManager> hm)
ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
LOG(DEBUG) << "Power setMode: " << toString(type) << " to: " << enabled;
ATRACE_INT(toString(type).c_str(), enabled);
PowerSessionManager::getInstance()->updateHintMode(toString(type), enabled);
switch (type) {
#ifdef TAP_TO_WAKE_NODE
@ -148,7 +144,6 @@ ndk::ScopedAStatus Power::isModeSupported(Mode type, bool *_aidl_return) {
ndk::ScopedAStatus Power::setBoost(Boost type, int32_t durationMs) {
LOG(DEBUG) << "Power setBoost: " << toString(type) << " duration: " << durationMs;
ATRACE_INT(toString(type).c_str(), durationMs);
switch (type) {
case Boost::INTERACTION:
if (mSustainedPerfModeOn) {