CN104424031A - Working frequency control method and device for processor - Google Patents
Working frequency control method and device for processor Download PDFInfo
- Publication number
- CN104424031A CN104424031A CN201310373208.3A CN201310373208A CN104424031A CN 104424031 A CN104424031 A CN 104424031A CN 201310373208 A CN201310373208 A CN 201310373208A CN 104424031 A CN104424031 A CN 104424031A
- Authority
- CN
- China
- Prior art keywords
- frequency
- application program
- processor
- duration
- described application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3228—Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention discloses working frequency control method and device for a processor. The method comprises the steps of counting the running hour of the processor at each working frequency when the application program runs in foreground; selecting the maximum processor working frequency for the application program on the basis of the running length of the previous processor corresponding to the application program at each working frequency when starting the application program through the foreground at present; treating the maximum processor working frequency as the upper limit of the working frequency, to be reached by the processor when the current application program runs. The device comprises a running hour counting module and a frequency control module. According to the method and device, the processor performances for the running of each application program in the foreground are counted and learnt, and the dynamic frequency modulating range of the processor is limited to be within a proper range when the application program runs in the foreground, and therefore, the performance of the application program can be ensured, and the energy can be saved to the maximum.
Description
Technical field
The present invention relates to power consumption of processing unit control technology field, particularly relate to a kind of control method and device of processor working frequency.
Background technology
Power problems has become various electronic equipment, an important limiting factor of especially mobile device development, and along with the processor of mobile device and CPU are to the future development of high-frequency and multinuclear, CPU power consumption becomes the main electrical source consumption person of mobile device.Therefore, CPU power consumption control is significant to the service time extending mobile device.
The basic ideas of CPU power consumption control carry out dynamic frequency according to system loading to CPU frequency of operation, and classical dynamic frequency algorithm is the occupancy of timing statistics CPU, promotes or reduce CPU frequency of operation according to the situation of CPU usage.For equipment such as mobile phones, its system loading has paroxysmal feature, and timing frequency modulation to pop-up mission (touch control operation as user) response not in time, can affect and experience user's touch control operation.To this type systematic, timing frequency modulation basis increases a raising frequency operation immediately, namely when user has touch control operation, immediately CPU frequency of operation is elevated to an acquiescence high frequency, and then carries out frequency lifting by timing dynamic frequency algorithm.No matter how concrete dynamic frequency algorithm changes, and all needs setting frequency adjustment range, i.e. the frequency that reaches of maximum possible and the minimum frequency that may reach.Same dynamic frequency algorithm, arranges difference due to frequency range, and the energy-saving effect that can play also is different.But existing dynamic frequency algorithm, be all a fixed value on frequency range is arranged, this value has been got greatly then affects energy-saving effect, and having got little can affect application program capacity.
Therefore, be badly in need of a kind of performance neither affecting application program at present, the method for CPU power consumption can be reduced again.
Summary of the invention
The technical problem to be solved in the present invention is, provides a kind of control method and device of processor working frequency, to realize adjusting processor working frequency flexibly according to the service condition of application program.
The technical solution used in the present invention is, the control method of described processor working frequency, comprising:
When foreground initiation application program, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
Further, the acquisition process of the operation duration of the processor that described application program was corresponding in the past in each frequency of operation, comprising:
Add up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation;
The operation duration of described processor in each frequency of operation before application program is started to this and does statistical average, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
Further, this application program of described statistics at the operation duration of time period inner treater in each frequency of operation of front stage operation, specifically comprises at every turn:
When application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0.
Further, as the optional technical scheme of one, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, specifically comprise:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare.
Further, as the preferred technical scheme of one, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, specifically comprise:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if there are one of two situations below, then stops continuing to compare:
First situation: if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program;
Second situation: if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program.
Further, as the optional technical scheme of one, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, specifically comprise:
The respective threshold of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
Further, the upper operational frequency limit that when the highest point reason device frequency of operation described application program needed is run as this application program, processor can reach, specifically comprises:
The highest point reason device frequency of operation described application program needed is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
The present invention also provides a kind of control device of processor working frequency, comprising:
Frequency control module, for when foreground initiation application program, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
Further, described device also comprises:
Duration statistical module, for adding up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation, the operation duration of described processor in each frequency of operation before application program is started to this and does statistical average, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
Further, described duration statistical module, specifically for:
When application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0.
Further, as the optional technical scheme of one, described frequency control module, specifically for:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare.
Further, as the preferred technical scheme of one, described frequency control module, specifically for:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if there are one of two situations below, then stops continuing to compare:
First situation: if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program;
Second situation: if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program.Further, as the optional technical scheme of one, described frequency control module, specifically for:
The respective threshold of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
Further, described frequency control module, specifically for:
The highest point reason device frequency of operation described application program needed is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
Adopt technique scheme, the present invention at least has following advantages:
The control method of processor working frequency of the present invention and device, the processor performance that each application program of statistical learning needs when front stage operation, then just processor dynamic frequency scope is limited in suitable scope when this application program is at front stage operation, so both ensure that the performance of application program, again can be energy-conservation to greatest extent.
Accompanying drawing explanation
Fig. 1 is the control method process flow diagram of the processor working frequency of first embodiment of the invention;
Fig. 2 is the control device composition schematic diagram of the processor working frequency of second embodiment of the invention;
Fig. 3 is the method flow diagram controlled CPU frequency of operation based on application program operating statistic of application example one of the present invention.
Embodiment
For further setting forth the present invention for the technological means reaching predetermined object and take and effect, below in conjunction with accompanying drawing and preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of control method of processor working frequency, as shown in Figure 1, comprises following concrete steps:
Step S101, adds up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation.
Concrete, application program is when front stage operation, and the operation time of processor in each frequency of operation is all that the mode added up with timeslice upgrades.When this application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while this application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0, those skilled in the art are to be understood that, T0 and T1 is the vector comprising operation time in multiple frequency of operation, and deltaT to be operation time correspondence in each frequency of operation subtract each other the new vector of of obtaining.The processor service condition of the present invention's statistics application program when front stage operation, because application program is when running background usually, do not need to carry out with user touch-control mutual, less to the burst demand of processor working frequency, substantially performance when application program and user interactions can not be reflected, so in order to meet the instant experience of user, the present invention only focuses on application program when foreground and user have touch-control mutual.
The number of the frequency of operation of processor and the numerical value of each frequency of operation relevant with the model of concrete processor, therefore the present invention is not construed as limiting this.
Step S102, when this is in foreground initiation application program, the operation duration of described processor in each frequency of operation before application program is started to this and does statistical average, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
Concrete, the acquisition process of the operation duration of the processor that described application program was corresponding in the past in each frequency of operation, comprising:
Based on this application program operation duration of processor in each frequency of operation when front stage operation at every turn of step S102 statistics, before starting application program to this, the operation duration of described processor in each frequency of operation of set point number does statistical average, such as: for each frequency of operation, the operation duration of each time is averaged or done weighted mean, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.In the present embodiment, before why only starting application program to this, the operation duration of described processor in each frequency of operation of set point number does statistical average, instead of statistical average is done to all operation duration of described processor in each frequency of operation before this startup application program, the consideration for saving system memory space on the one hand, the statistics to exceeding set point number is now needed to carry out aging, because when running recent application program, the service condition of CPU is added up on the other hand, more be close to user at present to the user demand of this application program.
Step S103, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
Preferably, in step s 103, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, specifically comprise:
According to frequency of operation order from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare; Preferably, if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program, stop continuing to compare, to avoid limit, the too low system responses that causes is slack-off frequently.
Optionally, in step s 103, also can adopt the highest point reason device frequency of operation that mode easy as follows needs to determine described application program, detailed process comprises:
The threshold value of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
In step s 103, the upper operational frequency limit that when the highest point reason device frequency of operation described application program needed is run as this application program, processor can reach, specifically comprises:
The highest point reason device frequency of operation described application program needed is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
Second embodiment of the invention, a kind of control device of processor working frequency, as shown in Figure 2, comprising:
1) duration statistical module 100, for adding up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation, before starting application program to this, the operation duration of described processor in each frequency of operation of set point number does statistical average, such as: for each frequency of operation, the operation duration of each time is averaged or done weighted mean, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
Concrete, duration statistical module 100, for:
When application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0.
2) frequency control module 200, for when this is in foreground initiation application program, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
Preferably, frequency control module 200 determines the highest point reason device frequency of operation that described application program needs in the following way:
According to frequency of operation order from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare; Preferably, if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program, stop continuing to compare, to avoid limit, the too low system responses that causes is slack-off frequently.
Or, the highest point reason device frequency of operation that frequency control module 200 also can adopt mode easy as follows to need to determine described application program:
The threshold value of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
Next, the highest point reason device frequency of operation that described application program needs by frequency control module 200 is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
Based on above-described embodiment, introduce the application example of two technical solution of the present invention.
Application example one
This application example provides a kind of method controlled CPU frequency of operation based on application program operating statistic, without loss of generality, with an arbitrary application A for example illustrates, as shown in Figure 3, the method circulation performs, each cycle period be application A from foreground initiation to the time period of exiting foreground, the step in each cycle period is as follows:
Step a1, while application A is switched to foreground, obtains the operation time T0 of CPU in each frequency of operation;
Step a2, judges whether the statistics number of the operating statistic data of application A reaches the numerical value of setting, if so, then think statistics can reflect application A and user normal mutual time cpu performance, go to step a6; Otherwise think can not reflect application A and user normal mutual time cpu performance, now go to step a3;
Step a3, while application A is switched to backstage, obtains the operation time T1 of CPU in each running frequency;
Step a4, deducting with T1 the value that T0 obtains is deltaT, the service condition that this value is exactly application A to CPU in this section working time;
Step a5, the deltaT value record obtained by step a4, in the data structure of application A, goes to step a8;
The operating statistic data of step a6, application programs A carry out statistical average process, then determine application A the highest operable CPU frequency of operation f according to the result of statistical average process;
Step a7, is set to operating system nucleus the f determined in step a6, thus operating system nucleus is when automatic frequency-conversion, limits the highest frequency conversion value and more than f, can not go to step a3;
Step a8, flow process terminates.
Application example two
This application case introduction frequency control process realized in Android phone.In android system, the switching of ActivityManagerService module in charge Application Program Interface Activity.Concrete implementing procedure in android system is as follows:
During step b1, ActivityManagerService module switch application program display interface A ctivity, according to the application program belonging to this display interface of ActivityRecord information acquisition;
Step b2, if application program is different with the application program belonging to Activity before switching, the switching that there occurs foreground application is described, goes to step b3, otherwise flow process terminates;
Step b3, according to application name, the Uid.Pkg object (i.e. said data structure in application example one) finding internal system corresponding, this Uid.Pkg object internal record CPU operating statistic data of corresponding application program, calculate the CPU time that on foreground, an application spends, and this data value is kept at the Uid.Pkg object on foreground corresponding to an application;
Step b4, judges whether the CPU operating statistic data recorded reach 3 times, if so, illustrates that statistics is effective, goes to step b5, otherwise, go to step b6;
Step b5, according to the CPU operating statistic data of 3 application recorded, calculate the operable CPU maximum operation frequency of this application, and this frequency values is write in file "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq ", like this, operating system nucleus just can be no more than this frequency values by volitional check maximum running frequency;
Step b6, flow process terminates.
By the explanation of embodiment, should to the present invention for the technological means reaching predetermined object and take and effect be able to more deeply and concrete understanding, but appended diagram be only to provide with reference to and the use of explanation, be not used for being limited the present invention.
Claims (10)
1. a control method for processor working frequency, is characterized in that, comprising:
When foreground initiation application program, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
2. the control method of processor working frequency according to claim 1, is characterized in that, the acquisition process of the operation duration of the processor that described application program is corresponding in the past in each frequency of operation, comprising:
Add up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation;
The operation duration of described processor in each frequency of operation before application program is started to this and does statistical average, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
3. the control method of processor working frequency according to claim 2, is characterized in that, this application program of described statistics at the operation duration of time period inner treater in each frequency of operation of front stage operation, specifically comprises at every turn:
When application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0.
4. the control method of processor working frequency according to claim 1, it is characterized in that, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, specifically comprise:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare;
Or,
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if there are one of two situations below, then stops continuing to compare:
First situation: if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program;
Second situation: if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program;
Or,
The respective threshold of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
5. the control method of the processor working frequency according to any one of Claims 1 to 4, it is characterized in that, the upper operational frequency limit that when the highest point reason device frequency of operation described application program needed is run as this application program, processor can reach, specifically comprises:
The highest point reason device frequency of operation described application program needed is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
6. a control device for processor working frequency, is characterized in that, comprising:
Frequency control module, for when foreground initiation application program, based on the operation duration of processor in each frequency of operation that described application program is in the past corresponding, select the highest point reason device frequency of operation that described application program needs, and the upper operational frequency limit that when it can be used as this application program to run, processor can reach.
7. the control device of processor working frequency according to claim 6, is characterized in that, described device also comprises:
Duration statistical module, for adding up this application program at every turn at the operation duration of time period inner treater in each frequency of operation of front stage operation, the operation duration of described processor in each frequency of operation before application program is started to this and does statistical average, using the result of statistical average as the operation duration of processor in each frequency of operation corresponding to described application program in the past.
8. the control device of processor working frequency according to claim 7, is characterized in that, described duration statistical module, specifically for:
When application program is while foreground initiation, record the operation time T0 of processor in each frequency of operation, while application program exits foreground, record the operation time T1 of processor in each frequency of operation, then during this operation of this application program, the operation duration of processor in each frequency of operation is deltaT=T1-T0.
9. the control device of processor working frequency according to claim 6, is characterized in that, described frequency control module, specifically for:
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, the highest point reason device frequency of operation then selecting this frequency of operation to need as described application program, stops continuing to compare;
Or,
With frequency of operation from high to low, successively the respective threshold of the operation duration in each frequency of operation and setting is compared, if there are one of two situations below, then stops continuing to compare:
First situation: if once certain frequency of operation be run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program;
Second situation: if the operation duration summation in the frequency of operation relatively crossed reaches total duration threshold value of setting, then get the maximum operation frequency value that the reckling in the frequency of operation relatively crossed needs as described application program;
Or,
Described frequency control module, specifically for:
The respective threshold of the operation duration in the current maximum operation frequency of processor and setting is compared, if this frequency of operation is run the respective threshold that duration is more than or equal to setting, then select the highest point reason device frequency of operation that this frequency of operation needs as described application program, otherwise the highest point reason device frequency of operation that the secondary high operate frequency of selection processor needs as described application program.
10. the control device of the processor working frequency according to any one of claim 6 ~ 9, is characterized in that, described frequency control module, specifically for:
The highest point reason device frequency of operation described application program needed is set to operating system nucleus, by operating system nucleus when described application program is run, the highest frequency of restriction automatic frequency-conversion can not exceed the highest point reason device frequency of operation of described application program needs.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310373208.3A CN104424031B (en) | 2013-08-23 | 2013-08-23 | Method and device for controlling working frequency of processor |
PCT/CN2014/073405 WO2014135129A1 (en) | 2013-08-23 | 2014-03-13 | Processor operating frequency control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310373208.3A CN104424031B (en) | 2013-08-23 | 2013-08-23 | Method and device for controlling working frequency of processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104424031A true CN104424031A (en) | 2015-03-18 |
CN104424031B CN104424031B (en) | 2021-01-26 |
Family
ID=51490648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310373208.3A Active CN104424031B (en) | 2013-08-23 | 2013-08-23 | Method and device for controlling working frequency of processor |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104424031B (en) |
WO (1) | WO2014135129A1 (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794005A (en) * | 2015-03-23 | 2015-07-22 | 北京畅游天下网络技术有限公司 | Method and device for optimizing CPU running frequencies |
CN105975050A (en) * | 2016-05-24 | 2016-09-28 | 青岛海信移动通信技术股份有限公司 | Terminal power consumption control method and device |
CN106055070A (en) * | 2016-05-24 | 2016-10-26 | 青岛海信移动通信技术股份有限公司 | Terminal power consumption control method and apparatus |
CN106155733A (en) * | 2015-04-23 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of method and apparatus running application program |
WO2016184048A1 (en) * | 2015-10-10 | 2016-11-24 | 中兴通讯股份有限公司 | Method and device for frequency management for multi-core processor cpu |
CN106200707A (en) * | 2015-05-08 | 2016-12-07 | 展讯通信(上海)有限公司 | The temperature-controlled process of a kind of electronic equipment and device |
WO2017113696A1 (en) * | 2015-12-31 | 2017-07-06 | 乐视控股(北京)有限公司 | Frequency modulation parameter adjusting method, device, frequency modulator and mobile terminal |
WO2018018820A1 (en) * | 2016-07-29 | 2018-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Method, device and terminal for adjusting processor operation frequency and/or operation core number |
CN109117262A (en) * | 2017-06-22 | 2019-01-01 | 深圳市中兴微电子技术有限公司 | A kind of baseband processing chip CPU dynamic frequency method and wireless terminal |
CN109298774A (en) * | 2018-09-30 | 2019-02-01 | 联想(北京)有限公司 | A kind of method of adjustment and device |
CN109739642A (en) * | 2018-12-18 | 2019-05-10 | 努比亚技术有限公司 | A kind of CPU frequency modulation method and device, mobile terminal and computer readable storage medium |
CN109739641A (en) * | 2018-12-18 | 2019-05-10 | 努比亚技术有限公司 | A kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and storage medium |
CN109886542A (en) * | 2019-01-15 | 2019-06-14 | 新奥数能科技有限公司 | A kind of equipment is had holidays by turns recommended method, device, readable medium and electronic equipment |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105786561B (en) * | 2016-01-29 | 2020-06-02 | 北京小米移动软件有限公司 | Method and device for calling process |
CN108541054B (en) * | 2018-07-16 | 2020-12-18 | 深圳市本牛科技有限责任公司 | Terminal low power consumption keeping method, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622044A (en) * | 2003-11-24 | 2005-06-01 | 顺德市顺达电脑厂有限公司 | Method of adjusting processor frequency for portable digital devices |
CN1702602A (en) * | 2005-06-23 | 2005-11-30 | 英特维数位科技股份有限公司 | Method for regulating processor working frequency during video data playing |
CN1737772A (en) * | 2004-08-04 | 2006-02-22 | 惠普开发有限公司 | Systems and methods to determine processor utilization |
CN101216727A (en) * | 2008-01-16 | 2008-07-09 | 浙江大学 | Embedded type low-power consumption operating system dynamic frequency regulation mapping method |
CN101223490A (en) * | 2005-07-14 | 2008-07-16 | Nxp股份有限公司 | Using historic load profiles to dynamically adjust operating frequency and available power to a handheld multimedia device processor core |
CN101477398A (en) * | 2008-12-25 | 2009-07-08 | 深圳华为通信技术有限公司 | Terminal power consumption control method and apparatus |
CN101699368A (en) * | 2009-11-02 | 2010-04-28 | 中兴通讯股份有限公司 | Method and device for adaptive dynamic frequency or voltage adjustment of CPU |
CN101770274A (en) * | 2008-12-29 | 2010-07-07 | 大唐移动通信设备有限公司 | Energy-saving digital signal processor system, device and realizing method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210740A1 (en) * | 2008-02-14 | 2009-08-20 | Song Huang | Off-chip access workload characterization methodology for optimizing computing efficiency |
CN102129392B (en) * | 2010-01-18 | 2013-09-04 | 扬智科技股份有限公司 | Method for adaptive frequency regulation and electronic device related thereto |
CN103019367B (en) * | 2012-12-03 | 2015-07-08 | 福州瑞芯微电子有限公司 | Embedded type GPU (Graphic Processing Unit) dynamic frequency modulating method and device based on Android system |
-
2013
- 2013-08-23 CN CN201310373208.3A patent/CN104424031B/en active Active
-
2014
- 2014-03-13 WO PCT/CN2014/073405 patent/WO2014135129A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622044A (en) * | 2003-11-24 | 2005-06-01 | 顺德市顺达电脑厂有限公司 | Method of adjusting processor frequency for portable digital devices |
CN1737772A (en) * | 2004-08-04 | 2006-02-22 | 惠普开发有限公司 | Systems and methods to determine processor utilization |
CN1702602A (en) * | 2005-06-23 | 2005-11-30 | 英特维数位科技股份有限公司 | Method for regulating processor working frequency during video data playing |
CN101223490A (en) * | 2005-07-14 | 2008-07-16 | Nxp股份有限公司 | Using historic load profiles to dynamically adjust operating frequency and available power to a handheld multimedia device processor core |
US20120284546A1 (en) * | 2005-07-14 | 2012-11-08 | Nytell Software LLC | Using historic load profiles to dynamically adjust operating frequency and available power to a handheld multimedia device processor core |
CN101216727A (en) * | 2008-01-16 | 2008-07-09 | 浙江大学 | Embedded type low-power consumption operating system dynamic frequency regulation mapping method |
CN101477398A (en) * | 2008-12-25 | 2009-07-08 | 深圳华为通信技术有限公司 | Terminal power consumption control method and apparatus |
CN101770274A (en) * | 2008-12-29 | 2010-07-07 | 大唐移动通信设备有限公司 | Energy-saving digital signal processor system, device and realizing method thereof |
CN101699368A (en) * | 2009-11-02 | 2010-04-28 | 中兴通讯股份有限公司 | Method and device for adaptive dynamic frequency or voltage adjustment of CPU |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794005A (en) * | 2015-03-23 | 2015-07-22 | 北京畅游天下网络技术有限公司 | Method and device for optimizing CPU running frequencies |
CN106155733A (en) * | 2015-04-23 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of method and apparatus running application program |
CN106155733B (en) * | 2015-04-23 | 2020-07-17 | 腾讯科技(深圳)有限公司 | Method and device for running application program |
CN106200707A (en) * | 2015-05-08 | 2016-12-07 | 展讯通信(上海)有限公司 | The temperature-controlled process of a kind of electronic equipment and device |
WO2016184048A1 (en) * | 2015-10-10 | 2016-11-24 | 中兴通讯股份有限公司 | Method and device for frequency management for multi-core processor cpu |
WO2017113696A1 (en) * | 2015-12-31 | 2017-07-06 | 乐视控股(北京)有限公司 | Frequency modulation parameter adjusting method, device, frequency modulator and mobile terminal |
CN106055070B (en) * | 2016-05-24 | 2019-08-09 | 青岛海信移动通信技术股份有限公司 | Terminal power consumption control method and device |
CN105975050A (en) * | 2016-05-24 | 2016-09-28 | 青岛海信移动通信技术股份有限公司 | Terminal power consumption control method and device |
CN106055070A (en) * | 2016-05-24 | 2016-10-26 | 青岛海信移动通信技术股份有限公司 | Terminal power consumption control method and apparatus |
WO2018018820A1 (en) * | 2016-07-29 | 2018-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Method, device and terminal for adjusting processor operation frequency and/or operation core number |
CN109117262A (en) * | 2017-06-22 | 2019-01-01 | 深圳市中兴微电子技术有限公司 | A kind of baseband processing chip CPU dynamic frequency method and wireless terminal |
CN109117262B (en) * | 2017-06-22 | 2022-01-11 | 深圳市中兴微电子技术有限公司 | Baseband processing chip CPU dynamic frequency modulation method and wireless terminal |
CN109298774A (en) * | 2018-09-30 | 2019-02-01 | 联想(北京)有限公司 | A kind of method of adjustment and device |
CN109298774B (en) * | 2018-09-30 | 2022-05-31 | 联想(北京)有限公司 | Adjusting method and device |
CN109739641A (en) * | 2018-12-18 | 2019-05-10 | 努比亚技术有限公司 | A kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and storage medium |
CN109739642A (en) * | 2018-12-18 | 2019-05-10 | 努比亚技术有限公司 | A kind of CPU frequency modulation method and device, mobile terminal and computer readable storage medium |
CN109739641B (en) * | 2018-12-18 | 2023-08-11 | 努比亚技术有限公司 | Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium |
CN109739642B (en) * | 2018-12-18 | 2023-08-11 | 努比亚技术有限公司 | CPU frequency modulation method and device, mobile terminal and computer readable storage medium |
CN109886542A (en) * | 2019-01-15 | 2019-06-14 | 新奥数能科技有限公司 | A kind of equipment is had holidays by turns recommended method, device, readable medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104424031B (en) | 2021-01-26 |
WO2014135129A1 (en) | 2014-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424031A (en) | Working frequency control method and device for processor | |
CN102819313B (en) | Operating method of terminal equipment and terminal equipment | |
CN104239153A (en) | Method and device for balancing multi-core CPU load | |
CN103840526B (en) | Method and device for processing information and electronic equipment | |
CN104346226A (en) | Processor frequency control method and electronic equipment | |
TWI441009B (en) | Method for clock frequency admustment for a processing unit of a computer system and ralated device | |
CN104394675B (en) | A kind of terminal | |
CN103488532A (en) | Method and equipment for adjusting processor frequency | |
CN104808767A (en) | Terminal control method | |
CN110837456B (en) | Control method and device and electronic equipment | |
CN104808766A (en) | Terminal | |
CN202995614U (en) | Electronic equipment | |
CN111697556A (en) | Operation control method of electrical equipment and terminal equipment | |
CN104424142B (en) | The method and apparatus of shared resource is accessed in a kind of multi-core processor system | |
WO2016180241A1 (en) | Energy-conservation management method and apparatus for terminal and terminal | |
CN110650538A (en) | Resource, time slot format configuration, data transmission method, device, equipment and medium | |
CN106060905A (en) | Method and apparatus for improving radio frequency power consumption of mobile terminal | |
CN103051793A (en) | Method and device for controlling data transmission mode of mobile terminal | |
CN105116985A (en) | DDR clock frequency control method and system | |
CN105072290B (en) | The screen brightness regulation method and device of a kind of terminal | |
CN104699224A (en) | Power-saving control method | |
CN111093247A (en) | Discrete network access method, system, medium and device suitable for narrow-band Internet of things terminal device | |
CN114466365B (en) | Spectrum resource acquisition method, spectrum resource acquisition device and computer readable storage medium | |
CN110544950A (en) | energy storage battery charging and discharging control method, device and equipment | |
CN111025178B (en) | Stability test method for main-standby switching of power supply module and related components |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |