sdm660-common: power-libperfmgr: Remove dumpstate support
Change-Id: I28416d1b09c1157119ea3ac0de3d015b71896c02
This commit is contained in:
parent
b44a490cf4
commit
b5e7add355
2 changed files with 0 additions and 25 deletions
|
@ -24,7 +24,6 @@
|
|||
#include <android-base/file.h>
|
||||
#include <android-base/logging.h>
|
||||
#include <android-base/properties.h>
|
||||
#include <android-base/stringprintf.h>
|
||||
#include <android-base/strings.h>
|
||||
|
||||
#include <utils/Log.h>
|
||||
|
@ -219,29 +218,6 @@ Return<void> Power::powerHintAsync_1_3(PowerHint_1_3 hint, int32_t data) {
|
|||
return Void();
|
||||
}
|
||||
|
||||
constexpr const char *boolToString(bool b) {
|
||||
return b ? "true" : "false";
|
||||
}
|
||||
|
||||
Return<void> Power::debug(const hidl_handle &handle, const hidl_vec<hidl_string> &) {
|
||||
if (handle != nullptr && handle->numFds >= 1 && mReady) {
|
||||
int fd = handle->data[0];
|
||||
|
||||
std::string buf(android::base::StringPrintf(
|
||||
"HintManager Running: %s\n"
|
||||
"SustainedPerformanceMode: %s\n",
|
||||
boolToString(mHintManager->IsRunning()),
|
||||
boolToString(mSustainedPerfModeOn)));
|
||||
// Dump nodes through libperfmgr
|
||||
mHintManager->DumpToFd(fd);
|
||||
if (!android::base::WriteStringToFd(buf, fd)) {
|
||||
PLOG(ERROR) << "Failed to dump state to fd";
|
||||
}
|
||||
fsync(fd);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_3
|
||||
} // namespace power
|
||||
|
|
|
@ -66,7 +66,6 @@ class Power : public IPower {
|
|||
Return<void> powerHintAsync_1_3(PowerHint_1_3 hint, int32_t data) override;
|
||||
|
||||
// Methods from ::android::hidl::base::V1_0::IBase follow.
|
||||
Return<void> debug(const hidl_handle &fd, const hidl_vec<hidl_string> &args) override;
|
||||
|
||||
private:
|
||||
std::shared_ptr<HintManager> mHintManager;
|
||||
|
|
Loading…
Reference in a new issue