Patent ID: 8930735
Filing Date: 2015-01-06
Classification: G06F,H04W,Y02D

Abstract:
1. A method for managing handheld device power consumption, comprising the following steps: calculating an operating frequency needed by a function currently operated by a handheld device; and setting a system clock of the handheld device according to the operating frequency, wherein the step of calculating the operating frequency needed by the function currently operated by the handheld device further comprises: performing statistics on a number of cycles of clocks used by tasks or functions called by the currently operated function; formulating a relation table between the tasks or functions and the number of cycles, and revising the formulated relation table by using the number of cycles of the tasks or functions; and calculating the needed operating frequency according to the number of cycles of the clocks used by the tasks or functions called by the currently operated function, wherein the step of setting the system clock of the handheld device according to the operating frequency further comprises: step 1: selecting a NO value according to where NR is an input frequency division parameter, NF is a feedback parameter, NO is an output frequency division parameter, Fin is an input frequency, and Fout is an output frequency of the system clock; step 2: estimating the value of NF/NR; and step 3: determining whether the output frequency obtained through a calculation is equal to the operating frequency; if the output frequency is equal to the operating frequency, configuring the handheld device with the NO, NF and NR values to which the output frequency corresponds; if the output frequency is not equal to the operating frequency, executing step 1 till there is not an unselected NO value, finding an output frequency closest to the operating frequency and configuring the handheld device with the NO, NF and NR values to which the closest output frequency corresponds when there is not an unselected NO value.