Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a00481ec authored by Connor O'Brien's avatar Connor O'Brien Committed by Android (Google) Code Review
Browse files

Merge "libtimeinstate: correctly handle devices with no boost freqs"

parents d25068ff e0b4d825
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -110,9 +110,10 @@ static bool initGlobals() {
            std::string path =
                    StringPrintf("%s/%s/scaling_%s_frequencies", basepath, policy.c_str(), name);
            auto nums = readNumbersFromFile(path);
            if (!nums) return false;
            if (!nums) continue;
            freqs.insert(freqs.end(), nums->begin(), nums->end());
        }
        if (freqs.empty()) return false;
        std::sort(freqs.begin(), freqs.end());
        gPolicyFreqs.emplace_back(freqs);