summaryrefslogtreecommitdiff
path: root/power-libperfmgr
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2018-01-04 22:30:07 -0800
committerRobb Glasser <rglasser@google.com>2018-01-09 15:20:37 -0800
commitfbf24e51fd3fa1079fb676033041bf15e590313e (patch)
treec0be76de1b56df8eed8e3d13ad14fb2a7e2d521f /power-libperfmgr
parente828bc608573d12b597c8e66f037b505f5761141 (diff)
downloadbonito-fbf24e51fd3fa1079fb676033041bf15e590313e.tar.gz
bluecross: power: change node owner early to reduce permission denial log spam
PowerHAL (started in class hal) will try to reset nodes to their initial values, however the node permission is granted only upon boot_complete which leads some permission log spam. This CL is to address the logspam. Test: boot and do powerhint Bug: 62041945 Bug: 69270928 Change-Id: I35ad8dfe23f35c829f50479ca951445afeb46b87
Diffstat (limited to 'power-libperfmgr')
-rw-r--r--power-libperfmgr/Power.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/power-libperfmgr/Power.cpp b/power-libperfmgr/Power.cpp
index 0996f27a..4c0900e0 100644
--- a/power-libperfmgr/Power.cpp
+++ b/power-libperfmgr/Power.cpp
@@ -91,6 +91,7 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
break;
case PowerHint_1_0::SUSTAINED_PERFORMANCE:
if (data && !mSustainedPerfModeOn) {
+ ALOGD("SUSTAINED_PERFORMANCE ON");
if (!mVRModeOn) { // Sustained mode only.
mHintManager->DoHint("SUSTAINED_PERFORMANCE");
} else { // Sustained + VR mode.
@@ -99,6 +100,7 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
}
mSustainedPerfModeOn = true;
} else if (!data && mSustainedPerfModeOn) {
+ ALOGD("SUSTAINED_PERFORMANCE OFF");
mHintManager->EndHint("VR_SUSTAINED_PERFORMANCE");
mHintManager->EndHint("SUSTAINED_PERFORMANCE");
if (mVRModeOn) { // Switch back to VR Mode.
@@ -109,6 +111,7 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
break;
case PowerHint_1_0::VR_MODE:
if (data && !mVRModeOn) {
+ ALOGD("VR_MODE ON");
if (!mSustainedPerfModeOn) { // VR mode only.
mHintManager->DoHint("VR_MODE");
} else { // Sustained + VR mode.
@@ -117,6 +120,7 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
}
mVRModeOn = true;
} else if (!data && mVRModeOn) {
+ ALOGD("VR_MODE OFF");
mHintManager->EndHint("VR_SUSTAINED_PERFORMANCE");
mHintManager->EndHint("VR_MODE");
if (mSustainedPerfModeOn) { // Switch back to sustained Mode.