From 916a8281fbd35ab72d85e386b31161822c9cb236 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Wed, 16 Mar 2022 17:22:35 +0800 Subject: [PATCH] powerstats: add devfreq state residency for BO Bug: 216600952 Test: dump power stats and see the state residencies appear Test: verified that the string buffer is enough Change-Id: I3dacc12f307c8d2ddbe92380e751c4e285dd9b8d Signed-off-by: Darren Hsu --- powerstats/Gs101CommonDataProviders.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/powerstats/Gs101CommonDataProviders.cpp b/powerstats/Gs101CommonDataProviders.cpp index cc42e826..05d009fb 100644 --- a/powerstats/Gs101CommonDataProviders.cpp +++ b/powerstats/Gs101CommonDataProviders.cpp @@ -611,6 +611,10 @@ void addDevfreq(std::shared_ptr p) { p->addStateResidencyDataProvider(std::make_unique( "MFC", "/sys/devices/platform/17000070.devfreq_mfc/devfreq/17000070.devfreq_mfc")); + + p->addStateResidencyDataProvider(std::make_unique( + "BO", + "/sys/devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo")); } void addTPU(std::shared_ptr p) {