Patent ID: 8732488

Claim:
A method comprising: within a sample window, determining an active time of a central processing unit (CPU) at an operating frequency; if there are any different operating frequencies within the sample window, determining active times of the CPU at the different operating frequencies within the sample window; based upon the active times for the operating frequencies within the sample window, calculating a millions of instructions per second (MIPS) value for the sample window, wherein the MIPS value for the sample window is calculated by ((F1×A1)+(F2×A2)+ . . . +(Fn×An))/W, where F1, . . . , Fn are different operating frequencies of the CPU within the sample window, A1, . . . , An are the active times of the CPU at respectively the operating frequencies F1, . . . , Fn, and W is a size of the sample window; performing a comparison of the MIPS value to a threshold value; and based upon the comparison of the MIPS value to the threshold value, setting an operating frequency of the CPU for a next sample window.