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

Commit 15bcefd3 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Check argument in PowerProfile.getNumCoresInCpuCluster" am: 74952231 am: 310c1b76

Change-Id: I1094043068575b6b2a77852d12ac341265aaf6df
parents e82a74f1 310c1b76
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -393,6 +393,9 @@ public class PowerProfile {
    }

    public int getNumCoresInCpuCluster(int cluster) {
        if (cluster < 0 || cluster >= mCpuClusters.length) {
            return 0; // index out of bound
        }
        return mCpuClusters[cluster].numCpus;
    }