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

Commit 214e7a5f authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

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

Change-Id: I2029bc94536f3617da34bfc4ac18489819baa14a
parents f01c6060 15bcefd3
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;
    }