Embodiment
Below in conjunction with the Figure of description in the present invention, the technical scheme in invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of clock frequency management method, for the clock frequency to mobile device, manages, and especially according to CPU usage, adjusts external unit clock frequency.By implementing this clock frequency management method, can guarantee the fluency of task run, reduce the power consumption of mobile device simultaneously, thereby improve the flying power of mobile device.And can make slip-stick artist's required clock frequency when when exploitation need not be by task run take into account, therefore reduced development difficulty.The embodiment of the present invention also provides relevant mobile device, will be described in detail respectively below.
First embodiment of the invention will be elaborated to a kind of clock frequency management method, and the clock frequency management method idiographic flow described in the present embodiment refers to Fig. 1, comprises step:
101, the cpu clock frequency of mobile device is set as to higher limit.
In mobile device, CPU and external unit are used each self-corresponding clock frequency, so the clock frequency of the two is separate.While only having the two clock frequency collaborative work in the reasonable scope, could improve the performance of mobile device.
In this step, the cpu clock frequency of mobile device is set as to higher limit.Described higher limit does not refer to the maximum clock frequency that CPU can reach, but during mobile device steady operation, the clock frequency upper limit that CPU can reach.
Wherein, described higher limit is to determine according to the current operating voltage of CPU, and this higher limit can have different values according to the difference of CPU real work voltage.The clock frequency upper limit that CPU can reach when the cpu clock frequency of mobile device is set as to mobile device steady operation, can be in the system-based of this mobile device, the fluency while guaranteeing to greatest extent mobile device operation task.
102, according to the period 1, obtain the CPU usage of mobile device.
The task of CPU usage reflection operation takies the situation of cpu resource.CPU usage is higher, illustrates that mobile device has moved a lot of tasks on certain time period, otherwise less.Mobile device described in the present embodiment is TCM operating system, and system is that time segment is used to CPU.For example, task one takies 10 milliseconds, and then task two takies 30 milliseconds, and then CPU is idle 60 milliseconds, and in aforesaid 100 milliseconds, CPU usage is 40%=[(10+30 so) ÷ (10+30+60)] * 100%.
In this step, according to the period 1, periodically obtain the CPU usage of mobile device.
Wherein, in above-mentioned example, the period 1 is got 100 milliseconds without concrete limit value the period 1.The value size of period 1 can impact be carried out the sensitivity of followingsteps 103, and the period 1 is less, performsstep 103 sensitivelyer, and the period 1 is larger, and it is 103 more blunt to perform step.
103, according to CPU usage, adjust the external unit clock frequency of mobile device.
In this step, the CPU usage of obtaining according tostep 102 is adjusted the external unit clock frequency of described mobile device.Preferably, be specially: when CPU usage is greater than first threshold, raise the external unit clock frequency of described mobile device; When CPU usage is less than Second Threshold, lower the external unit clock frequency of described mobile device.
The present embodiment method is not done concrete restriction to first threshold and Second Threshold, but apparent, first threshold is greater than Second Threshold.
Instep 101, the cpu clock frequency of mobile device is set as to higher limit, only has by analysis two kinds of situations to cause CPU usage very large:
Some instruction sequence is carried out in situation one, the current circulation of CPU;
Situation two, CPU be the state in access external unit for a long time.
The probability that situation one occurs is smaller, can last very long even if occur also not, so CPU usage is very greatly often owing to having occurred situation two.When the situation two of appearance, raise the external unit clock frequency of mobile device and enough can accelerate the access speed of CPU to external unit, thereby shorten the time that CPU accesses external unit.
When CPU usage is very little, illustrate that CPU need not or seldom access external unit, now lower the external unit clock frequency of mobile device, thereby reduce mobile device power consumption.
In the present embodiment, by the cpu clock frequency of mobile device is set as to higher limit, can guarantee the fluency of task run, according to CPU usage, adjust the external unit clock frequency of mobile device, can accelerate the power consumption of CPU to the access speed of external unit or reduction mobile device, improve the flying power of mobile device.Thereby slip-stick artist's required clock frequency when when exploitation need not be by task run is taken into account, therefore reduced development difficulty.
Second embodiment of the invention remarks additionally the clock frequency management method to described in the first embodiment, and the clock frequency management method idiographic flow described in the present embodiment refers to Fig. 2, comprises step:
201, the clock frequency of in running order external unit is required to be set as the external unit clock frequency lower limit of mobile device.
Mobile device comprises at least one external unit, as DRAM, LCD, Camera and Flash etc.If some external units have specific requirement to outside equipment clock frequency in mobile device, this external unit is when in running order so, can send clock frequency requirement to mobile device, the clock frequency that this external unit requires is exactly the lower limit that the external unit clock frequency of mobile device can be lowered.Therefore can guarantee that mobile device works under suitable external unit clock frequency, guarantee the fluency of task run.
Wherein, above-mentioned clock frequency requires can be included in the driver of this external unit.
In addition, when having plural external unit to propose each self-corresponding clock frequency requirement, getting desired maximum clock frequency is the external unit clock frequency lower limit of mobile device.With an example, describe below.
When the external unit of mobile device does not have particular requirement to outside equipment clock frequency, external unit clock frequency adjustable range is as shown in Fig. 3-a.In this case, according to CPU usage situation, external unit clock frequency can be at fminto fmaxbetween dynamically adjust.When there is particular requirement to outside equipment clock frequency in the external unit of mobile device, suppose to exist two such external unit A and B, the clock frequency of external unit A requires as fa, the clock frequency of external unit B requires as fb, and fa< fb, refer to Fig. 3-b, in this case, according to CPU usage situation, external unit clock frequency is only with at fbto fmaxbetween dynamically adjust.In like manner, if do not register the clock frequency requirement of external unit B, so, external unit clock frequency is only with at fato fmaxbetween dynamically adjust.
In this step, the clock frequency of in running order external unit is required to be set as the external unit clock frequency lower limit of described mobile device.
Preferably, the clock frequency of external unit requires and does not require necessarily when mobile device starts just to propose, sostep 201 can also carry out before or after follow-up arbitrary step, and does not limit execution number of times, repeats no more here.
202, create idle task.
In this step, after mobile device starts, create immediately idle task, the priority of described idle task is minimum, therefore only has CPU usage to drop to approach 0 o'clock this idle task just can be moved.At described mobile device during in idle condition, CPU usage drops to and approaches 0, moves the idle task that described priority is minimum, and the practical function of this idle task is that the CPU that triggers mobile device enters Suspend Mode.Under Suspend Mode, even if CPU works in higher clock frequency, its power consumption is also little.
Wherein, a kind of energy-saving mode that Suspend Mode is CPU, under Suspend Mode, the CPU of described mobile device task out of service.CPU Suspend Mode is that a kind of economize on electricity of cpu power management is tactful, the CPU of different models, the difference that is for the description of Suspend Mode, for example:
ARM is described as: " Wait for interrupt, puts the ARM into a low power state and stops it executing further until and interrupt occurs. ".
MIPS is described as: " Register-Controlled Management; places the system into a low power state; until an exception or error occurs.Instruction-Controlled Power Management; Causes the intemal clocks to be suspended and pipeline to be frozen; until any enabled interrupt; NMI, debug interrupt, or reset condition occurs. ".
PowerPC is described as: " Put the processor in the wait state, and is disabled when an interrupt occurs. ".
But the essence of Suspend Mode is consistent, CPU stops carrying out instruction, and allows the state of CPU in a kind of low-power consumption.Even if different CPU is different to the control method of this function, describe also different, but do not affect the enforcement of the present embodiment method.
203, according to the CPU usage of CPU suspension time and period 1 calculating mobile device.
In this step, trigger CPU enter after Suspend Mode in idle task, described idle task can also be calculated according to CPU suspension time and described period 1 the CPU usage of described mobile device.
Wherein, the time of the CPU that described CPU suspension time is described mobile device in Suspend Mode.Suppose that the period 1 is T, suspension time is t, and CPU usage is RcPU.In this step, calculate CPU usage RcPUcalculating formula be:
RCPU=[(T-t)÷T]×100%。
The task of CPU usage reflection operation takies the situation of cpu resource.CPU usage is higher, illustrates that mobile device has moved a lot of tasks on certain time period, otherwise less.For example, task one takies 10 milliseconds, and then task two takies 30 milliseconds, and task one and task two free of discontinuities operations, then CPU is idle 60 milliseconds, and suspension time t is 60 milliseconds, if aforesaid 100 milliseconds is period 1 T, CPU usage R in period 1 TcPUfor:
RCPU=[(T-t)÷T]×100%=[(100-600)÷100]×100%=40%。
Mobile device can periodically calculate CPU usage by the described period 1.
Preferably, in this step, calculate the operation of CPU usage and carried out by idle task, if in a period 1 T without carrying out idle task, idle task can not calculated CPU usage, can get CPU usage is 100%.
204, the cpu clock frequency of mobile device is set as to higher limit.
In mobile device, CPU and external unit are used each self-corresponding clock frequency, so the clock frequency of the two is separate.While only having the two clock frequency collaborative work in the reasonable scope, could improve the performance of mobile device.
In this step, the cpu clock frequency of mobile device is set as to higher limit.Described higher limit does not refer to the maximum clock frequency that CPU can reach, but during mobile device steady operation, the clock frequency upper limit that CPU can reach.
Wherein, described higher limit is to determine according to the current operating voltage of CPU, and this higher limit can have different values according to the difference of CPU real work voltage.The clock frequency upper limit that CPU can reach when the cpu clock frequency of mobile device is set as to mobile device steady operation, can be in the system-based of this mobile device, the fluency while guaranteeing to greatest extent mobile device operation task.
205, according to the period 1, obtain the CPU usage of mobile device.
In this step, according to the period 1, periodically obtain the CPU usage of mobile device.
Wherein, in above-mentioned example, the period 1 is got 100 milliseconds without concrete limit value the period 1.The value size of period 1 can impact be carried out the sensitivity of followingsteps 206, and the period 1 is less, performsstep 206 sensitivelyer, and the period 1 is larger, and it is 206 more blunt to perform step.
Preferably, above-mentioned periodicity is obtained the period 1 of operation institute foundation and can be realized by timer is set, and repeats no more here.
206, according to CPU usage, adjust the external unit clock frequency of mobile device.
The present embodiment inventive method is pursued the balance of mobile device fluency and flying power, but with fluency, is preferably principle simultaneously.
In this step, the CPU usage of obtaining according to step 205 is adjusted the external unit clock frequency of describedmobile device.Step 206 specifically comprisesstep 2061 andstep 2062 liang sub-steps.Order is not relevant withstep 2062 forstep 2061, therefore can freely convert order, repeats no more here.
Step 2061 andstep 2062 are specially:
2061,, when CPU usage is greater than first threshold, raise the external unit clock frequency of mobile device.
Instep 204, the cpu clock frequency of mobile device is set as to higher limit, only has by analysis two kinds of situations to cause CPU usage very large:
Some instruction sequence is carried out in situation one, the current circulation of CPU;
Situation two, CPU be the state in access external unit for a long time.
The probability that situation one occurs is smaller, can last very long even if occur also not, so CPU usage is very greatly often owing to having occurred situation two.When the situation two of appearance, raise the external unit clock frequency of mobile device and enough can accelerate the access speed of CPU to external unit, thereby shorten the time that CPU accesses external unit.
Wherein, the concrete mode of rise can be to increase a range value, as raised 100MHz, can be also to raise in proportion, is as above adjusted to original twice, can also be other rise mode, does not do concrete restriction here.
Preferably, raise the operation meeting of external unit clock frequency and carry out immediately, to guarantee the fluency of task run.Under fluency priority principle, the external unit clock frequency after rise may exceed the external unit clock frequency of actual needs, now can lower gradually external unit clock frequency according to actual conditions again, finely tunes.
2062,, when CPU usage is less than Second Threshold, according to very first time time delay, lower the external unit clock frequency of mobile device.
When CPU usage is very little, illustrate that CPU need not or seldom access external unit, now according to very first time time delay, lower the external unit clock frequency of mobile device, thereby reduce mobile device power consumption.
Wherein, the very first time is not done to concrete restriction.The concrete mode of lowering can be to reduce by a range value, as lowered 100MHz, can be also to lower in proportion, is adjusted to as follows originally 70%, can also be other downward mode, does not do concrete restriction here.
Preferably, lower the operation meeting time delay of external unit clock frequency and carry out, to avoid frequently adjusting the fluency of external unit clock frequency impact operation.Under fluency priority principle, the external unit clock frequency after downward may exceed the external unit clock frequency of actual needs, now can lower gradually external unit clock frequency according to actual conditions again, finely tunes.
The present embodiment method is not done concrete restriction to first threshold and Second Threshold, but apparent, first threshold is greater than Second Threshold.
In the present embodiment, by the cpu clock frequency of mobile device is set as to higher limit, can guarantee the fluency of task run, under fluency priority principle, according to CPU usage, adjust the external unit clock frequency of mobile device, can accelerate the power consumption of CPU to the access speed of external unit or reduction mobile device, improve the flying power of mobile device.Thereby slip-stick artist's required clock frequency when when exploitation need not be by task run is taken into account, therefore reduced development difficulty.
Third embodiment of the invention will be elaborated to a kind of mobile device, in the mobile device described in the present embodiment, comprise one or more unit for realizing one or more steps of preceding method.Therefore, the description of each step in preceding method is applicable to corresponding unit in described mobile device.Mobile device concrete structure described in the present embodiment refers to Fig. 4, comprising:
Thefirst setup unit 401, for being set as higher limit by the cpu clock frequency of described mobile device.
In mobile device, CPU and external unit are used each self-corresponding clock frequency, so the clock frequency of the two is separate.While only having the two clock frequency collaborative work in the reasonable scope, could improve the performance of mobile device.
Thefirst setup unit 401 can be set as higher limit by the cpu clock frequency of mobile device.Described higher limit does not refer to the maximum clock frequency that CPU can reach, but during mobile device steady operation, the clock frequency upper limit that CPU can reach.
Wherein, described higher limit is to determine according to the current operating voltage of CPU, and this higher limit can have different values according to the difference of CPU real work voltage.The clock frequency upper limit that while the cpu clock frequency of mobile device being set as to mobile device steady operation by thefirst setup unit 401, CPU can reach, can be in the system-based of this mobile device, the fluency while guaranteeing to greatest extent mobile device operation task.
Acquiringunit 402, for obtaining the CPU usage of described mobile device according to the period 1.
The task of CPU usage reflection operation takies the situation of cpu resource.CPU usage is higher, illustrates that mobile device has moved a lot of tasks on certain time period, otherwise less.Mobile device described in the present embodiment is TCM operating system, and system is that time segment is used to CPU.For example, task one takies 10 milliseconds, and then task two takies 30 milliseconds, and then CPU is idle 60 milliseconds, and in aforesaid 100 milliseconds, CPU usage is 40%=[(10+30 so) ÷ (10+30+60)] * 100%.
Acquiringunit 402 can periodically obtain according to the period 1 CPU usage of mobile device.
Wherein, in above-mentioned example, the period 1 is got 100 milliseconds without concrete limit value the period 1.The value size of period 1 can affect the sensitivity ofadjustment unit 403, and the period 1 is less, andadjustment unit 403 is sensitiveer, and the period 1 is larger, andadjustment unit 403 is more blunt.
Adjustment unit 403, with acquiringunit 402 communication connections, for adjust the external unit clock frequency of described mobile device according to described CPU usage.
The CPU usage thatadjustment unit 403 can obtain according to acquiringunit 402 is adjusted the external unit clock frequency of described mobile device.Preferably, be specially: when CPU usage is greater than first threshold, raise the external unit clock frequency of described mobile device; When CPU usage is less than Second Threshold, lower the external unit clock frequency of described mobile device.The present embodiment is not done concrete restriction to first threshold and Second Threshold, but apparent, first threshold is greater than Second Threshold.
Thefirst setup unit 401 is set as higher limit by the cpu clock frequency of mobile device, only has by analysis two kinds of situations to cause CPU usage very large:
Some instruction sequence is carried out in situation one, the current circulation of CPU;
Situation two, CPU be the state in access external unit for a long time.
The probability that situation one occurs is smaller, can last very long even if occur also not, so CPU usage is very greatly often owing to having occurred situation two.When the situation two of appearance, the external unit clock frequency thatadjustment unit 403 raises mobile device enough can be accelerated the access speed of CPU to external unit, thereby shortens the time of CPU access external unit.
When CPU usage is very little, illustrate that CPU need not or seldom access external unit, nowadjustment unit 403 is lowered the external unit clock frequency of mobile device, thereby reduces mobile device power consumption.
In the present embodiment, by thefirst setup unit 401, the cpu clock frequency of mobile device is set as to higher limit, can guarantee the fluency of task run,adjustment unit 403 is adjusted the external unit clock frequency of mobile device according to CPU usage, can accelerate the power consumption of CPU to the access speed of external unit or reduction mobile device, improve the flying power of mobile device.Thereby slip-stick artist's required clock frequency when when exploitation need not be by task run is taken into account, therefore reduced development difficulty.
Fourth embodiment of the invention remarks additionally the mobile device to described in the 3rd embodiment, in the mobile device described in the present embodiment, comprises one or more unit for realizing one or more steps of preceding method.Therefore, the description of each step in preceding method is applicable to corresponding unit in described mobile device.Mobile device concrete structure described in the present embodiment refers to Fig. 5, comprising:
Thesecond setup unit 501, for requiring the clock frequency of in running order external unit to be set as the external unit clock frequency lower limit of described mobile device.
If some external units have specific requirement to outside equipment clock frequency in mobile device, this external unit is when in running order so, can send clock frequency requirement to thesecond setup unit 501 of mobile device, the clock frequency that this external unit requires is exactly the lower limit that the external unit clock frequency of mobile device can be lowered.Therefore can guarantee that mobile device works under suitable external unit clock frequency, guarantee the fluency of task run.
Wherein, above-mentioned clock frequency requires can be included in the driver of this external unit.
In addition, when having plural external unit to propose each self-corresponding clock frequency requirement, thesecond setup unit 501 is got the external unit clock frequency lower limit that desired maximum clock frequency is mobile device.
Instantiation refers to the relevant record ofstep 201 in the second embodiment, repeats no more here.
Thesecond setup unit 501 can require the clock frequency of in running order external unit to be set as the external unit clock frequency lower limit of described mobile device.
Creatingunit 502, for creating idle task.
Creatingunit 502 can create immediately idle task after mobile device starts, and the priority of described idle task is minimum, therefore only has CPU usage to drop to approach 0 o'clock this idle task just can be moved.At described mobile device during in idle condition, CPU usage drops to and approaches 0, CPU and move the idle task that described priority is minimum, and the practical function of this idle task is that the CPU that triggers mobile device enters Suspend Mode.Under Suspend Mode, even if CPU works in higher clock frequency, its power consumption is also little.
Wherein, a kind of energy-saving mode that Suspend Mode is CPU, under Suspend Mode, the CPU of described mobile device task out of service.
Computing unit 503, with creatingunit 502 communication connection, for calculate the CPU usage of described mobile device according to CPU suspension time and described period 1.
In idle task, trigger CPU and enter after Suspend Mode,computing unit 503 can calculate according to CPU suspension time and described period 1 the CPU usage of described mobile device.
Wherein, the time of the CPU that described CPU suspension time is described mobile device in Suspend Mode.The example that calculates CPU usage refers to the relevant record of thesecond embodiment step 203, repeats no more here.
Computing unit 503 can periodically calculate CPU usage by the described period 1.
Preferably, if if CPU does not carry out idle task in a period 1 T, computingunit 503 can not calculate CPU usage, and can get CPU usage is 100%.
Thefirst setup unit 504, for being set as higher limit by the central processing unit CPU clock frequency of described mobile device.
In mobile device, CPU and external unit are used each self-corresponding clock frequency, so the clock frequency of the two is separate.While only having the two clock frequency collaborative work in the reasonable scope, could improve the performance of mobile device.
Thefirst setup unit 504 can be set as higher limit by the cpu clock frequency of mobile device.Described higher limit does not refer to the maximum clock frequency that CPU can reach, but during mobile device steady operation, the clock frequency upper limit that CPU can reach.
Wherein, described higher limit is to determine according to the current operating voltage of CPU, and this higher limit can have different values according to the difference of CPU real work voltage.The clock frequency upper limit that CPU can reach when the cpu clock frequency of mobile device is set as to mobile device steady operation, can be in the system-based of this mobile device, the fluency while guaranteeing to greatest extent mobile device operation task.
Acquiringunit 505, for obtaining the CPU usage of described mobile device according to the period 1.
Acquiringunit 505 can periodically obtain according to the period 1 CPU usage of mobile device.
Wherein, the period 1 is without concrete limit value.The value size of period 1 can affect the sensitivity ofadjustment unit 506, and the period 1 is less, andadjustment unit 506 is sensitiveer, and the period 1 is larger, andadjustment unit 506 is more blunt.
Preferably, above-mentioned periodicity is obtained the period 1 of operation institute foundation and can be realized by timer is set, and repeats no more here.
Adjustment unit 506, with acquiringunit 505 communication connections, for adjust the external unit clock frequency of described mobile device according to described CPU usage.
Mobile device described in the present embodiment is pursued the balance of fluency and flying power, but with fluency, is preferably principle simultaneously.
The CPU usage thatadjustment unit 506 can obtain according to acquiringunit 505 is adjusted the external unit clock frequency of described mobiledevice.Adjustment unit 506 specifically also comprisesrise subelement 5061 and lowerssubelement 5062, the two communication connection.
Raise subelement 5061, for when described CPU usage is greater than first threshold, raise the external unit clock frequency of described mobile device.
Thefirst setup unit 504 is set as higher limit by the cpu clock frequency of mobile device, only has by analysis two kinds of situations to cause CPU usage very large:
Some instruction sequence is carried out in situation one, the current circulation of CPU;
Situation two, CPU be the state in access external unit for a long time.
The probability that situation one occurs is smaller, can last very long even if occur also not, so CPU usage is very greatly often owing to having occurred situation two.When the situation two of appearance, raise the external unit clock frequency ofsubelement 5061 rise mobile devices and enough can accelerate the access speed of CPU to external unit, thereby shorten the time of CPU access external unit.
Wherein, the concrete mode of rise can be to increase a range value, as raised 100MHz, can be also to raise in proportion, is as above adjusted to original twice, can also be other rise mode, does not do concrete restriction here.
Preferably, raise the operation meeting ofsubelement 5061 and carry out immediately, to guarantee the fluency of task run.Under fluency priority principle, the external unit clock frequency after rise may exceed the external unit clock frequency of actual needs, now lowers subelement 5062 and can lower gradually external unit clock frequency according to actual conditions again, finely tunes.In like manner, fine setting can also be carried out by raisingsubelement 5061.
Lower subelement 5062, for when described CPU usage is less than Second Threshold, according to very first time time delay, lower the external unit clock frequency of described mobile device.
When CPU usage is very little, illustrate that CPU need not or seldom access external unit, nowlower subelement 5062 and according to very first time time delay, lower the external unit clock frequency of mobile device, thereby reduce mobile device power consumption.
Wherein, the very first time is not done to concrete restriction.The concrete mode of lowering can be to reduce by a range value, as lowered 100MHz, can be also to lower in proportion, is adjusted to as follows originally 70%, can also be other downward mode, does not do concrete restriction here.
Preferably, lower the operation meeting time delay ofsubelement 5062 and carry out, to avoid frequently adjusting the fluency of external unit clock frequency impact operation.Under fluency priority principle, the external unit clock frequency after downward may exceed the external unit clock frequency of actual needs, now lowers subelement 5062 and can lower gradually external unit clock frequency according to actual conditions again, finely tunes.In like manner, fine setting can also be carried out by raisingsubelement 5061.
The present embodiment is not done concrete restriction to first threshold and Second Threshold, but apparent, first threshold is greater than Second Threshold.
Be below one this implement the concrete application scenarios of described mobile device:
Described mobile device is a MP4 digital code player, in the middle of have two application, an application is e-book, Another application is MP3 player.MP4 digital code player is opened after e-book, only in page turning, just needs CPU move a bit of code and carry out low volume data processing, and within the most of the time, CPU just can enter Suspend Mode.Now CPU usage approaches 0, so external unit clock frequency also can be very low.If application the present invention, power consumption can drop to 4 to 5 milliamperes, decreases by more than 70%.
During MP3 player plays MP3, relate to reading and decoding of mp3 file, and the data volume of processing is relevant with compressibility with the sampling rate of MP3, when sampling rate is larger or compressibility is higher, CPU usage will improve, now MP4 digital code player raises external unit clock frequency, will accelerate the access speed of CPU to external unit.If application the present invention, can allow power consumption decline 4 to 10 milliamperes, power consumption declines very obvious.
In the present embodiment, by thefirst setup unit 504, the cpu clock frequency of mobile device is set as to higher limit, can guarantee the fluency of task run, under fluency priority principle,adjustment unit 506 is adjusted the external unit clock frequency of mobile device according to CPU usage, can accelerate the power consumption of CPU to the access speed of external unit or reduction mobile device, improve the flying power of mobile device.Thereby slip-stick artist's required clock frequency when when exploitation need not be by task run is taken into account, therefore reduced development difficulty.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of clock frequency management method provided by the present invention and mobile device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.