CN102129392B - Method for adaptive frequency regulation and electronic device related thereto - Google Patents

Method for adaptive frequency regulation and electronic device related thereto Download PDF

Info

Publication number
CN102129392B
CN102129392B CN2010100028210A CN201010002821A CN102129392B CN 102129392 B CN102129392 B CN 102129392B CN 2010100028210 A CN2010100028210 A CN 2010100028210A CN 201010002821 A CN201010002821 A CN 201010002821A CN 102129392 B CN102129392 B CN 102129392B
Authority
CN
China
Prior art keywords
frequency
result
calculation
scale value
target frequency
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.)
Expired - Fee Related
Application number
CN2010100028210A
Other languages
Chinese (zh)
Other versions
CN102129392A (en
Inventor
邱钰翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ali Corp
Original Assignee
Ali Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ali Corp filed Critical Ali Corp
Priority to CN2010100028210A priority Critical patent/CN102129392B/en
Publication of CN102129392A publication Critical patent/CN102129392A/en
Application granted granted Critical
Publication of CN102129392B publication Critical patent/CN102129392B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The invention discloses a method for adaptive frequency regulation, which is used for controlling the operating frequency of a central processing unit of an electronic device and comprises the steps of: obtaining at least one interruption service requesting time period and whereby calculating to generate a corresponding calculating result; and according to at least a comparison result of the calculation result and a predetermined range, dynamically determining a target frequency of the operating frequency of the central processing unit, so that the operating frequency is set according to the target frequency when the central processing unit is processed owing to the occurrence of next interruption, in order to realize adaptive frequency regulation. The invention further discloses an electronic device related thereto. According to the invention, the best processing efficiencies, which meet the different demands of various files respectively, can be provided without excessive power consumption, thereby reaching the best overall efficiency.

Description

Be used for carrying out the method for adaptability frequency adjustment and relevant electronic installation
Technical field
(Interrupt Service Request, ISR) control relate in particular to a kind of be used for the carrying out method of adaptability (Adaptive) frequency adjustment and relevant electronic installation to the present invention relates to breakout service request.
Background technology
In order to reach purpose of power saving, the portable electronic devices of realizing according to correlation technique has the operation frequency that is painstakingly reduced usually.Yet in case there is interruption (Interrupt) to take place, portable electronic devices must carry out necessary judgement and handling procedure, and the above-mentioned operation frequency that is painstakingly reduced will cause portable electronic devices to the delay of instantaneity event handling.So portable electronic devices just increases along with the reduction of operation frequency significantly at the total system burden of the processing of interrupting.
In order to solve the above problems, correlation technique provides the scheme of keeping working at high speed, bear at the total system of the processing of interrupting in the hope of reducing portable electronic devices, but this scheme can relatively produce the power consumption problem.Correlation technique provides in addition and has reduced the scheme of interrupting frequency, for example: processing can increase digital analog converter (Digital-to-Analog Converter at audio frequency, DAC) first in first out before (First In First Out, FIFO) degree of depth of impact damper, namely increase the cushion space of first-in first-out buffer, interrupt frequency in the hope of reducing.Note that the problem that this scheme can relatively cause hardware cost to increase.In addition, be not that the frequency of the interruption of any kind can be reduced; Timer interrupts (Timer Interrupt) and be the typical example that the interruption frequency can't reduce on real the work.
From the above, correlation technique faces these problems does not but have appropriate and comprehensive solution.Correlation technique haves much room for improvement really.
Summary of the invention
Therefore one of purpose of the present invention is to provide a kind of being used for to carry out the method for adaptability (Adaptive) frequency adjustment and relevant electronic installation, to address the above problem.
A kind of method that the adaptability frequency is adjusted that is used for carrying out is provided in the preferred embodiment of the present invention, this method is used for controlling CPU (central processing unit) (the Central Processing Unit of an electronic installation, CPU) operation frequency, this method includes: obtain at least one breakout service request (Interrupt Service Request, ISR) time, and calculate the ratio that this breakout service request time accounts for an expectation interruption time of origin; Dynamically determine a target frequency of the operation frequency of this CPU (central processing unit), with this CPU (central processing unit) in response to interrupt next time handle the time, set this operation frequency according to this target frequency, to carry out the adjustment of adaptability frequency.
The present invention also provides a kind of electronic installation accordingly when said method is provided, this electronic installation includes: a CPU (central processing unit), a breakout service request monitoring means and a dynamic adjustment unit.This CPU (central processing unit) is used for controlling the running of this electronic installation.In addition, this breakout service request monitoring means is used for obtaining at least one breakout service request time and calculates the ratio that this breakout service request time accounts for an expectation interruption time of origin according to this.In addition, this dynamic adjustment unit is used for dynamically determining a target frequency of the operation frequency of this CPU (central processing unit); Wherein when this CPU (central processing unit) in response to interrupt next time handle the time, this dynamic adjustment unit is set this operation frequency according to this target frequency, to carry out the adjustment of adaptability frequency.
One of benefit of the present invention is, at the application of multimedia device, utilizes method of the present invention dynamically to adjust and can allow the operation frequency of this CPU (central processing unit) maintain lower frequency haply, can not produce the power consumption problem.In addition, in case when having interruption (Interrupt) to take place, method of the present invention is dynamically set this operation frequency according to target frequency, causes system burden with regard to being unlikely to because low speed interrupts handling.Therefore, method of the present invention and relevant electronic installation can reach best overall efficiency.
Another benefit of the present invention is that this dynamic adjustment unit can dynamically determine the target frequency of this operation frequency according at least one result of calculation; Especially, have at this preset range under the situation of a high scale value and a low scale value, this dynamic adjustment unit can be according to result of calculation less than this low scale value/whether reach a pre-determined number greater than the cumulative number of the comparative result of this high scale value, the present invention optionally adjusts this target frequency, so can determine this target frequency validly.Therefore, at this electronic installation the voice files of various different sampling frequencies or the video/audio archive of different display rate (Frame Rate) may be arranged, the present invention can provide the optimization process usefulness of the different demands that satisfy various archives respectively under the condition of not excessive power consumption.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, does not constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the synoptic diagram according to the clock pulse system of a kind of electronic installation of the present invention one first embodiment;
Fig. 2 A is the process flow diagram of the method that is used for carrying out adaptability (Adaptive) frequency according to one embodiment of the invention a kind of and adjusts;
Fig. 2 B is that the method shown in Fig. 2 A is at a process flow diagram that changes in the example;
Fig. 3 and Fig. 4 are the implementation detail in one embodiment of the method shown in Fig. 2 A;
Fig. 5 is the implementation detail in another embodiment of the method shown in Fig. 2 A, and wherein present embodiment is variation example embodiment illustrated in fig. 4.
Drawing reference numeral:
100 Electronic installation
108 Break path
110 CPU (central processing unit)
120 The breakout service request monitoring means
130 Dynamic adjustment unit
140 The clock pulse controller
140K Clock pulse generator
910,910-1 Be used for carrying out the method that the adaptability frequency is adjusted
912,914,916-1,916-2,918, 920,922,924,925,930,932,934, 936,942,944,946,950 Step
CPU_CLK The CPU (central processing unit) clock pulse
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the embodiment of the invention is described in further details.At this, illustrative examples of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
Please refer to Fig. 1, Fig. 1 is the synoptic diagram according to the clock pulse system of a kind of electronic installation 100 of the present invention one first embodiment.For example: electronic installation 100 can represent portable multimedia player such as MP3 player or audio and video player.Again for example: electronic installation 100 can represent portable electronic devices such as mobile phone or personal digital assistant (Personal Digital Assistant, PDA).Yet this is not limitation of the present invention only for illustrative purposes.Change example according to some of present embodiment, electronic installation 100 can represent PC (Personal Computer, PC), such as desktop computer (DesktopComputer) or kneetop computer (Laptop Computer).According to some variation example of present embodiment, electronic installation 100 can represent the PC that possesses touch control screen.
As shown in Figure 1, electronic installation 100 includes: a CPU (central processing unit) (Central ProcessingUnit, CPU) 110, one breakout service request (Interrupt Service Request, ISR) monitoring means 120, dynamic adjustment unit 130 and a clock pulse controller 140, wherein the clock pulse controller 140 of present embodiment comprises a clock pulse generator 140K.Yet this is not limitation of the present invention only for illustrative purposes.Change example according to one of present embodiment, clock pulse generator 140K can be arranged at outside the clock pulse controller 140.According to another variation example of present embodiment, at least a portion element in the electronic installation 100 (for example: CPU (central processing unit) 110, breakout service request monitoring means 120, dynamic adjustment unit 130 and/or clock pulse controller 140) can be integrated into same element.In addition, electronic installation 100 comprises one in addition and interrupts (Interrupt) path 108, and wherein a part of element such as the CPU (central processing unit) in the electronic installation 100 110 can see through break path 108 with breakout service request monitoring means 120 and receive interruption.
According to present embodiment, CPU (central processing unit) 110 is used for controlling the running of electronic installation 100.In addition, breakout service request monitoring means 120 is used for obtaining at least one breakout service request time t ISRAnd calculate to produce a corresponding result of calculation according to this.For example: breakout service request monitoring means 120 calculates the ratio that this breakout service request time accounts for an expectation interruption time of origin, to produce this result of calculation.In addition, dynamically adjustment unit 130 is used for comparative result according to this result of calculation and a preset range at least dynamically to determine the operation frequency f of CPU (central processing unit) 110 CPU_CLKA target frequency f TARGETEspecially, when CPU (central processing unit) 110 in response to interrupt next time handle the time, dynamically adjustment unit 130 can be according to target frequency f TARGETSet operation frequency f CPU_CLK, to carry out the adjustment of adaptability frequency.
The CPU (central processing unit) clock pulse CPU_CLK of present embodiment is produced by clock pulse generator 140K, and it is required for its running to input to CPU (central processing unit) 110.On real the work, according to the adaptability frequency adjustment that dynamic adjustment unit 130 carries out, clock pulse controller 140 can be controlled the frequency of CPU (central processing unit) clock pulse CPU_CLK; So dynamically adjustment unit 130 can see through the operation frequency f of clock pulse controller 140 control CPU (central processing unit) 110 CPU_CLKCorrelative detail please refer to Fig. 2 A and further specifies.
Please refer to Fig. 2 A, Fig. 2 A is the process flow diagram of the method 910 that is used for carrying out adaptability (Adaptive) frequency according to one embodiment of the invention a kind of and adjusts, and wherein method 910 can be applicable to electronic installation shown in Figure 1 100.This method is described as follows.
Step 912: when interruption services request monitoring means 120 detects the interruption generation, enter step 914; Otherwise, enter step 950.
Step 914: breakout service request monitoring means 120 (for example: time point t stores the present time 1), and store above-mentioned operation frequency f CPU_CLKPresent value as a normal frequency f NORMALOn real the work, breakout service request monitoring means 120 can be with time point t 1And normal frequency f NORMALBe stored in the reservoir (not shown) in the electronic installation 100.For example: this reservoir can be the working storage that is arranged within the breakout service request monitoring means 120.Again for example: this reservoir can be working storage or the storer that is arranged at outside the breakout service request monitoring means 120.
Step 916-1: dynamically adjustment unit 130 foundations one target frequency is such as above-mentioned target frequency f TARGETSet operation frequency f CPU_CLKAccording to present embodiment, target frequency f TARGETRepresentative value more than or equal to normal frequency f NORMALRepresentative value.
Step 918: breakout service request monitoring means 120 checks whether the processing of carrying out in response to the generation of interrupting finishes.When detecting the processing of carrying out in response to the generation of interrupting and finished, enter step 920; Otherwise, reenter step 918, wait for the end of this processing.Yet this is not limitation of the present invention only for illustrative purposes.Change example according to one of present embodiment, breakout service request monitoring means 120 needn't check always whether this processing finishes, but by CPU (central processing unit) 110 proactive notification breakout service request monitoring means 120 when this processing finishes, to enter step 920.
Step 920: breakout service request monitoring means 120 is obtained breakout service request time t ISRAnd calculate to produce corresponding result of calculation according to this.Especially, breakout service request monitoring means 120 is obtained the present time earlier such as time point t 2, then computing time difference (t 2-t 1) as above-mentioned breakout service request time t ISRYet this is not limitation of the present invention only for illustrative purposes.Change example according to one of present embodiment, breakout service request monitoring means 120 is at time point t 1The storage running of carrying out is carried out after can changing into step 916-1; So, above-mentioned time difference (t 2-t 1) can be more accurate.
Step 930: dynamically adjustment unit 130 dynamically determines operation frequency f according to above-mentioned result of calculation CPU_CLKTarget frequency f TARGETOn real the work, the target frequency f that dynamic adjustment unit 130 can determine it TARGETBe stored in the reservoir (not shown) in the electronic installation 100.For example: this reservoir can be the working storage that is arranged within the dynamic adjustment unit 130.Again for example: this reservoir can be working storage or the storer that is arranged at outside the dynamic adjustment unit 130.
Step 916-2: dynamically adjustment unit 130 is according to normal frequency f NORMALSet operation frequency f CPU_CLKBecause present embodiment when execution in step 914, has stored operation frequency f CPU_CLKAt at that time numerical value as normal frequency f NORMALSo, normal frequency f NORMALCan be considered operation frequency f CPU_CLKNumerical value before the processing of carrying out in response to the generation of interrupting.Note that the operation frequency f of present embodiment CPU_CLKWhenever need can dynamically adjusting when handling at interrupting.Especially, when handling at interruption, the framework of present embodiment is with operation frequency f CPU_CLKTemporarily be set at the target frequency f that can dynamically adjust TARGET(this is operation frequency f CPU_CLKProvisional desired value during underway disconnected handle), so after the processing of carrying out in response to the generation of interrupting finishes, just can be with operation frequency f CPU_CLKAdjust back the processing numerical value before that carries out in response to the generation of interrupting, just normal frequency f NORMAL
Step 950: CPU (central processing unit) 110 is carried out normal process.
According to present embodiment, by step 912,914,916-1,918,920,930 and the formed circulation of 916-2 take place just to carry out once whenever interrupting, when wherein being somebody's turn to do the circulation execution for arbitrary time, dynamically adjustment unit 130 can be according to the target frequency f that dynamically determines when inferior result of calculation next time TARGETIn the present embodiment, this preset range has a high scale value UB and a low scale value LB; Especially, this preset range can be expressed as interval [LB, UB].When each time should circulation carrying out, when inferior result of calculation can produce in step 920, and when time result of calculation and the comparative result between this preset range can produce in step 930.In addition, can in step 930, list statistics in when inferior comparative result, especially carry out number of times accumulative total.
On real the work, the cumulative number that the cumulative number that can add up the comparative result of a certain type in step 930 has several times, can add up again the comparative result of another type has several times.So in step 930, dynamically adjustment unit 130 just can optionally determine to increase or downgrade target frequency f according to these cumulative numbers TARGET, or keep target frequency f TARGETValue will not change.For example: dynamically whether adjustment unit 130 can reach a pre-determined number N according to the cumulative number of the comparative result of " result of calculation is less than low scale value LB " LB, optionally adjust target frequency f TARGETAgain for example: dynamically whether adjustment unit 130 can reach a pre-determined number N according to the cumulative number of the comparative result of " result of calculation is greater than high scale value UB " UB, optionally adjust target frequency f TARGET
Note that in CPU (central processing unit) 110 in response to (for example when the execution in step 914) at the beginning of the handling of this interruption, breakout service request monitoring means 120 stores operation frequency f CPU_CLKPresent value, as normal frequency f NORMAL, for later use.Therefore, in response to (for example when the execution in step 916-2) after the handling of this interruption, dynamically adjustment unit 130 can be according to the normal frequency f that stores in advance in CPU (central processing unit) 110 NORMALSet operation frequency f CPU_CLKIn addition, step 916-2 carries out after step 930.This is not limitation of the present invention only for illustrative purposes.According to some variation example of present embodiment, step 916-2 can carry out after step 918 or step 920.According to other variation example of present embodiment, the running of step 916-2 can be incorporated step 918 any step afterwards into such as within step 920 or the step 930.
Fig. 2 B is that the method 910 shown in Fig. 2 A is at a process flow diagram that changes in the example.Above-mentioned method 910 changes in this variation example and is denoted as 910-1, has wherein increased step 925 newly.Discrepancy Description between this variation example and Fig. 2 A illustrated embodiment is as follows:
Step 920: breakout service request monitoring means 120 is obtained breakout service request time t ISRAnd calculate to produce corresponding result of calculation according to this.Especially, breakout service request monitoring means 120 is obtained the present time earlier such as time point t 2, then computing time difference (t 2-t 1) as above-mentioned breakout service request time t ISRYet this is not limitation of the present invention only for illustrative purposes.Change example according to one of present embodiment, breakout service request monitoring means 120 is at time point t 1The storage running of carrying out is carried out after can changing into step 916-1; So, above-mentioned time difference (t 2-t 1) can be more accurate.
Step 925: breakout service request monitoring means 120 checks whether met the condition that a frequency is adjusted flow process that enters.At this, this frequency is adjusted the flow process representative by the workflow of step 930 to step 916-2; This frequency is adjusted flow process and is used for dynamically adjusting target frequency f TARGETAnd/or with operation frequency f CPU_CLKTemporarily be set at the target frequency f that can dynamically adjust TARGET, to carry out this adaptability frequency adjustment.Enter frequency when adjusting the condition of flow process when detecting to meet, enter step 930; Otherwise, enter step 950.
Owing to increased step 925 newly in this variation example, can utilize the condition that enters frequency adjustment flow process to control function mode and the usefulness thereof of electronic installation 100 in clock pulse control.For example: the condition that enters frequency adjustment flow process can preestablish and no longer change.Again for example: the condition that enters frequency adjustment flow process is dynamically adjusted.
For example, entering frequency adjusts the condition of flow process and can be set at: N continuous is all estimated target frequency f when time interrupting taking place TARGETShould increase or N continuous time is all estimated target frequency f when interrupting taking place TARGETIn the time of should downgrading, should enter this frequency and adjust flow process.For example: under the situation of N=3, twice interruption originally takes place as long as enter step 950 once running into step 925; When interrupt taking place for the third time, double (be first and second time at this) all should increase target frequency f when interrupting taking place TARGETTo but downgrading target frequency f when interrupt taking place for the third time TARGET, because can't continuous integration " target frequency f TARGETShould increase " reach three times, so with " target frequency f TARGETShould increase " cumulative number be reset to zero; When the 5th time interrupt to take place, continuous three times (this be third and fourth, five times) all should downgrade target frequency f when interrupting taking place TARGET, because continuous integration " target frequency f TARGETShould downgrade " reach three times, so judge that should enter this frequency adjusts flow process.
Fig. 3 and Fig. 4 are the implementation detail of method 910 implementation detail in one embodiment, the especially step 920 shown in Fig. 2 A and step 930.These implementation details are described as follows.
Step 920 can comprise the following steps:
Step 922: breakout service request monitoring means 120 calculates above-mentioned time difference (t 2-t 1), to obtain breakout service request time t ISR
Step 924: breakout service request monitoring means 120 calculates above-mentioned breakout service request time tISR and accounts for an expectation interruption time of origin t EXPRatio F ISR2EXP, as the described result of calculation of step 920.On real the work, time of origin t is interrupted in expectation EXPCan be a preset parameter, it can make this result of calculation be easy to relatively or be suitable for the usefulness of assessment.Especially, time of origin t is interrupted in expectation EXPCan be set at a constant.
Step 930 can comprise the following steps:
Step 932: dynamically adjustment unit 130 checks that these result of calculations (are ratio F at present embodiment ISR2EXP) whether greater than high scale value UB.When this result of calculation during greater than high scale value UB, enter step 934; Otherwise, enter step 942.
Step 934: dynamically adjustment unit 130 checks whether the cumulative number of the comparative result of " result of calculation is greater than high scale value UB " reaches pre-determined number N UBWhen cumulative number reaches pre-determined number N UBThe time, enter step 936; Otherwise, enter step 916-2.
Step 936: dynamically adjustment unit 130 is optionally with target frequency f TARGETIncrease the predetermined value of a grade, unless target frequency f TARGETReached the predetermined value of highest ranking.For example: the predetermined value of the different brackets in the present embodiment comprises predetermined value f T, 1, f T, 2..., and f T, X, and dynamically adjustment unit 130 can be selected one and is set at target frequency f TARGET, f wherein T, 1<f T, 2<...<f T, X, and the predetermined value of this highest ranking is f T, XOn real the work, in case enter step 936 by step 934, dynamically adjustment unit 130 can be zero with the described cumulative number removing of step 934.After execution in step 936, enter step 916-2.
Step 942: dynamically adjustment unit 130 checks that these result of calculations (are ratio F at present embodiment ISR2EXP) whether less than low scale value LB.When this result of calculation during less than low scale value LB, enter step 944; Otherwise, enter step 916-2.
Step 944: dynamically adjustment unit 130 checks whether the cumulative number of the comparative result of " result of calculation is less than low scale value LB " reaches pre-determined number N LBWhen cumulative number reaches pre-determined number N LBThe time, enter step 946; Otherwise, enter step 916-2.
Step 946: dynamically adjustment unit 130 is optionally with target frequency f TARGETDowngrade the predetermined value of a grade, unless target frequency f TARGETReached the predetermined value of the lowest class.For example: the predetermined value of the different brackets in the present embodiment comprises predetermined value f T, 1, f T, 2..., and f T, X, and dynamically adjustment unit 130 can be selected one and is set at target frequency f TARGET, f wherein T, 1<f T, 2<...<f T, X, and the predetermined value of this lowest class is f T, 1On real the work, in case enter step 946 by step 944, dynamically adjustment unit 130 can be zero with the described cumulative number removing of step 944.After execution in step 946, enter step 916-2.
According to present embodiment, low scale value LB is not equal to high scale value UB; Especially, hang down scale value LB less than high scale value UB.This is not limitation of the present invention only for illustrative purposes.Change example according to one of present embodiment, low scale value LB can equal high scale value UB.In addition, in the present embodiment, pre-determined number N LBCan equal pre-determined number N UBThis is not limitation of the present invention only for illustrative purposes.Change example, pre-determined number N according to one of present embodiment LBCan be not equal to pre-determined number N UB
The dynamic adjustment unit 130 that note that present embodiment carries out the comparison of this result of calculation and high scale value UB earlier in step 932, in case enter the comparison that step 942 is just carried out this result of calculation and low scale value LB.This is not limitation of the present invention only for illustrative purposes.Some variation according to present embodiment is routine such as embodiment illustrated in fig. 5, and dynamically adjustment unit 130 can carry out the comparison of this result of calculation and low scale value LB in step 942 earlier, in case enter the comparison that step 932 is just carried out this result of calculation and high scale value UB.Present embodiment and the routine similar part of aforementioned each embodiment/variation no longer repeat to give unnecessary details.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to claim scope of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (10)

1. one kind is used for carrying out the method that the adaptability frequency is adjusted, and it is characterized in that, described method is used for controlling the operation frequency of the CPU (central processing unit) of an electronic installation, and described method includes:
Obtain at least one breakout service request time, and calculate the ratio that the described breakout service request time accounts for an expectation interruption time of origin;
Dynamically determine a target frequency of the operation frequency of described CPU (central processing unit), with described CPU (central processing unit) in response to interrupt next time handle the time, set described operation frequency according to described target frequency, to carry out the adjustment of adaptability frequency;
Wherein, calculating the described breakout service request time accounts for the step that an expectation interrupts the ratio of time of origin and further comprises: the described breakout service request time is accounted for the ratio that an expectation interrupts time of origin calculate to produce a corresponding result of calculation according to this;
Wherein, dynamically determine the step of a target frequency of the operation frequency of described CPU (central processing unit) further to comprise: described result of calculation and a preset range to be compared, to produce a comparative result.
2. the method for claim 1 is characterized in that, described preset range has a high scale value and a low scale value.
3. method as claimed in claim 2 is characterized in that, dynamically determines the step of a target frequency of the operation frequency of described CPU (central processing unit) to comprise in addition:
When described result of calculation reaches a pre-determined number greater than described high scale value and described result of calculation greater than the cumulative number of the described comparative result of described high scale value, optionally described target frequency is increased the predetermined value of a grade, unless described target frequency has reached the predetermined value of highest ranking; And
When described result of calculation greater than described high scale value, but described result of calculation does not then change described target frequency when not reaching described pre-determined number as yet greater than the cumulative number of the described comparative result of described high scale value.
4. method as claimed in claim 2 is characterized in that, dynamically determines the step of a target frequency of the operation frequency of described CPU (central processing unit) to comprise in addition:
When described result of calculation reaches a pre-determined number less than described low scale value and described result of calculation less than the cumulative number of the described comparative result of described low scale value, optionally described target frequency is downgraded the predetermined value of a grade, unless described target frequency has reached the predetermined value of the lowest class; And
When described result of calculation less than described low scale value, but described result of calculation does not then change described target frequency when not reaching described pre-determined number as yet less than the cumulative number of the described comparative result of described low scale value.
5. method as claimed in claim 2 is characterized in that, dynamically determines the step of a target frequency of the operation frequency of described CPU (central processing unit) to comprise in addition:
The described comparative result of accumulative total, when this described comparative result and described comparative result last time not simultaneously, accumulative total record is before removed, and
When identical comparative result continuous integration reaches a pre-determined number, optionally described target frequency is adjusted to the predetermined value of a contiguous grade, unless described target frequency has reached the predetermined value of limit grade.
6. the method for claim 1 is characterized in that, described method includes in addition:
In response at the beginning of the handling of described interruption, store the present value of described operation frequency, as a normal frequency in described CPU (central processing unit); And
In response to after the handling of described interruption, set described operation frequency according to described normal frequency in described CPU (central processing unit).
7. an electronic installation is characterized in that, described electronic installation includes:
One CPU (central processing unit) is used for controlling the running of described electronic installation;
One breakout service request monitoring means is used for obtaining at least one breakout service request time and calculates the ratio that the described breakout service request time accounts for an expectation interruption time of origin according to this; And
One dynamic adjustment unit is used for dynamically determining a target frequency of the operation frequency of described CPU (central processing unit);
Wherein when described CPU (central processing unit) in response to interrupt next time handle the time, described dynamic adjustment unit is set described operation frequency according to described target frequency, to carry out the adjustment of adaptability frequency;
Wherein, described breakout service request monitoring means calculates to produce a corresponding result of calculation according to this with the ratio that the described breakout service request time accounts for an expectation interruption time of origin, and described dynamic adjustment unit compares described result of calculation and a preset range, to produce a comparative result.
8. electronic installation as claimed in claim 7 is characterized in that, described preset range has a high scale value and a low scale value; When described result of calculation reaches a pre-determined number greater than described high scale value and described result of calculation greater than the cumulative number of the described comparative result of described high scale value, described dynamic adjustment unit optionally increases described target frequency the predetermined value of one grade, unless described target frequency has reached the predetermined value of highest ranking; And when described result of calculation did not reach described pre-determined number greater than described high scale value and described result of calculation as yet greater than the cumulative number of the described comparative result of described high scale value, described dynamic adjustment unit did not change described target frequency.
9. electronic installation as claimed in claim 7 is characterized in that, described preset range has a high scale value and a low scale value; When described result of calculation reaches a pre-determined number less than described low scale value and described result of calculation less than the cumulative number of the described comparative result of described low scale value, described dynamic adjustment unit optionally downgrades described target frequency the predetermined value of one grade, unless described target frequency has reached the predetermined value of minimum level; And when described result of calculation did not reach described pre-determined number less than described low scale value and described result of calculation as yet less than the cumulative number of the described comparative result of described low scale value, described dynamic adjustment unit did not change described target frequency.
10. electronic installation as claimed in claim 7 is characterized in that, in response at the beginning of the handling of described interruption, described breakout service request monitoring means stores the present value of described operation frequency, as a normal frequency in described CPU (central processing unit); And in described CPU (central processing unit) in response to after the handling of described interruption, described dynamic adjustment unit is set described operation frequency according to described normal frequency.
CN2010100028210A 2010-01-18 2010-01-18 Method for adaptive frequency regulation and electronic device related thereto Expired - Fee Related CN102129392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010100028210A CN102129392B (en) 2010-01-18 2010-01-18 Method for adaptive frequency regulation and electronic device related thereto

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100028210A CN102129392B (en) 2010-01-18 2010-01-18 Method for adaptive frequency regulation and electronic device related thereto

Publications (2)

Publication Number Publication Date
CN102129392A CN102129392A (en) 2011-07-20
CN102129392B true CN102129392B (en) 2013-09-04

Family

ID=44267481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100028210A Expired - Fee Related CN102129392B (en) 2010-01-18 2010-01-18 Method for adaptive frequency regulation and electronic device related thereto

Country Status (1)

Country Link
CN (1) CN102129392B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116418B (en) * 2013-02-04 2016-04-13 Tcl通讯(宁波)有限公司 A kind of method of dynamic conditioning touch-screen input detection rates and mobile terminal
CN104424031B (en) * 2013-08-23 2021-01-26 中兴通讯股份有限公司 Method and device for controlling working frequency of processor
CN104965885B (en) * 2015-06-15 2018-03-23 北京京东尚科信息技术有限公司 Information processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1168501A (en) * 1996-01-17 1997-12-24 德克萨斯仪器股份有限公司 Method and system for controlling computer operation in response to central processing unit operating characteristics
CN1338067A (en) * 1998-12-21 2002-02-27 西门子信息及通讯网络公司 Apparatus and method for automatic CPU speed control
CN1359041A (en) * 2000-12-18 2002-07-17 联想(北京)有限公司 Method for adjusting CPU frequency according to CPU availability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1168501A (en) * 1996-01-17 1997-12-24 德克萨斯仪器股份有限公司 Method and system for controlling computer operation in response to central processing unit operating characteristics
CN1338067A (en) * 1998-12-21 2002-02-27 西门子信息及通讯网络公司 Apparatus and method for automatic CPU speed control
CN1359041A (en) * 2000-12-18 2002-07-17 联想(北京)有限公司 Method for adjusting CPU frequency according to CPU availability

Also Published As

Publication number Publication date
CN102129392A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
JP4376897B2 (en) Memory controller considering processor power state
CN107256043B (en) Method for controlling temperature of terminal and terminal supporting the same
US20180157315A1 (en) System and method for proactive power and performance management of a workload in a portable computing device
CN102129392B (en) Method for adaptive frequency regulation and electronic device related thereto
WO2023005558A1 (en) Frequency conversion display method, ddic, display screen module, and terminal
US10535287B2 (en) Step-down pixel response correction systems and methods
CN102402454B (en) Method for regulating memory operation frequency and electronic device
CN107239348B (en) Multi-core processor scheduling method and device and mobile terminal
WO2015131723A1 (en) Method and apparatus for regulating speed of ptn device fan
WO2018208921A1 (en) System and method for intelligent adjustment of an immersive multimedia workload in a portable computing device
KR102568160B1 (en) Image processing device and display device having the same
KR20150054134A (en) Method of changing an operating frequency for performing a dynamic voltage and frequency scaling, system on-chip, and mobile device having the same
WO2023116206A1 (en) Water-pressure control method, secondary water supply system, electronic device and storage medium
US9030414B2 (en) Method of dynamically adjusting image frame rate and device using same
CN115268616A (en) Frequency control method and device for memory, electronic device and storage medium
US11960338B2 (en) Activity smoothener circuit controlling rates of change of localized processing activity in an integrated circuit (IC), and related methods
CN102375528A (en) System having tunable performance, and associated method
CN101885969A (en) Gas collector pressure control method
JP2017194931A (en) Storage management device, storage device management method, and storage device management program
CN106067288A (en) The method and apparatus adjusting the skew of virtual period timing control signal
CN106612329B (en) Caching method and device
JP2009048224A (en) Memory controller and processor system
US20180018332A1 (en) Prefetching Using Dynamic User Model To Reduce Latency
US8913049B2 (en) Motion detection circuit and motion detection method
WO2012041236A1 (en) Method and apparatus for displaying data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130904

Termination date: 20190118