[go: up one dir, main page]

CN102129392B - Method and associated electronic device for performing adaptive frequency adjustment - Google Patents

Method and associated electronic device for performing adaptive frequency adjustment 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
value
calculation result
target frequency
interrupt
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 adjustment, which is used for controlling the operating frequency of a central processing unit of an electronic device and comprises the following steps: obtaining at least one interrupt service request time and calculating to generate a corresponding calculation result; and dynamically determining a target frequency of the operating frequency of the CPU according to at least the comparison result of the calculation result and a predetermined range, so as to set the operating frequency according to the target frequency when the CPU processes in response to the occurrence of the next interrupt, thereby performing adaptive frequency adjustment. The invention also discloses a related electronic device. The invention can provide the best processing efficiency respectively meeting different requirements of various files under the condition of not excessive power consumption, thereby achieving the best overall efficiency.

Description

用来进行适应性频率调整的方法以及相关的电子装置Method and associated electronic device for performing adaptive frequency adjustment

技术领域 technical field

本发明涉及中断服务请求(Interrupt Service Request,ISR)控制,尤其涉及一种用来进行适应性(Adaptive)频率调整的方法以及相关的电子装置。The present invention relates to Interrupt Service Request (Interrupt Service Request, ISR) control, in particular to a method for performing adaptive (Adaptive) frequency adjustment and related electronic devices.

背景技术 Background technique

为了达到省电的目的,依据相关技术所实现的可携式电子装置通常具有被刻意降低的运作频率。然而,一旦有中断(Interrupt)发生,可携式电子装置必须进行必要的判定与处理程序,而上述被刻意降低的运作频率就会造成可携式电子装置对即时性事件处理的延迟。于是,可携式电子装置针对中断的处理的整体系统负担就随着运作频率的降低而大幅地增加。In order to achieve the purpose of saving power, the portable electronic devices implemented according to the related art usually have a deliberately lowered operating frequency. However, once an interrupt occurs, the portable electronic device must perform necessary determination and processing procedures, and the above-mentioned deliberately reduced operating frequency will cause delays in the portable electronic device's processing of immediate events. As a result, the overall system load of the portable electronic device for interrupt processing increases significantly as the operating frequency decreases.

为了解决上述的问题,相关技术提供了维持高速运作的方案,以期减少可携式电子装置针对中断的处理的整体系统负担,但此方案会相对地产生耗电问题。相关技术另提供了减少中断发生次数的方案,例如:针对音频处理可以增加数字模拟转换器(Digital-to-Analog Converter,DAC)之前的先进先出(First In First Out,FIFO)缓冲器的深度,即增加先进先出缓冲器的缓冲空间,以期减少中断发生次数。请注意,此方案会相对地造成硬件成本增加的问题。另外,并非任何类型的中断的发生次数都可以予以减少;计时器中断(Timer Interrupt)即为中断发生次数在实作上无法减少的典型的例子。In order to solve the above problems, the related art provides a solution for maintaining high-speed operation in order to reduce the overall system load of the portable electronic device for interrupt processing, but this solution will relatively generate power consumption. Related technologies also provide a solution to reduce the number of interrupts, for example: for audio processing, the depth of the First In First Out (FIFO) buffer before the Digital-to-Analog Converter (Digital-to-Analog Converter, DAC) can be increased , that is to increase the buffer space of the first-in first-out buffer in order to reduce the number of interrupts. Please note that this solution will relatively cause the problem of increased hardware cost. In addition, not all types of interrupts can reduce the number of occurrences; timer interrupt (Timer Interrupt) is a typical example that the number of interrupts cannot be reduced in practice.

由上述可知,相关技术面临这诸多问题却没有妥善且全面的解决方案。相关技术实在有待改进。It can be seen from the above that the relevant technologies face many problems but have no proper and comprehensive solutions. Related technologies really need to be improved.

发明内容Contents of the invention

因此本发明的目的之一在于提供一种用来进行适应性(Adaptive)频率调整的方法以及相关的电子装置,以解决上述问题。Therefore, one object of the present invention is to provide a method for adaptive frequency adjustment and related electronic devices to solve the above problems.

本发明的较佳实施例中提供一种用来进行适应性频率调整的方法,该方法用来控制一电子装置的中央处理单元(Central Processing Unit,CPU)的运作频率,该方法包含有:取得至少一中断服务请求(Interrupt Service Request,ISR)时间,且计算该中断服务请求时间占一期望中断发生时间的比例;动态地决定该中央处理单元的运作频率的一目标频率,以在该中央处理单元因应下一次中断的发生进行处理时,依据该目标频率设定该运作频率,以进行适应性频率调整。A preferred embodiment of the present invention provides a method for adaptive frequency adjustment, the method is used to control the operating frequency of a central processing unit (Central Processing Unit, CPU) of an electronic device, the method includes: obtaining At least one interrupt service request (Interrupt Service Request, ISR) time, and calculate the ratio of the interrupt service request time to an expected interrupt occurrence time; dynamically determine a target frequency of the operating frequency of the central processing unit to process in the central processing unit When processing the next interrupt, the unit sets the operating frequency according to the target frequency to perform adaptive frequency adjustment.

本发明在提供上述方法的同时,亦对应地提供一种电子装置,该电子装置包含有:一中央处理单元、一中断服务请求监测单元、以及一动态调整单元。该中央处理单元用来控制该电子装置的运作。另外,该中断服务请求监测单元用来取得至少一中断服务请求时间并据以计算该中断服务请求时间占一期望中断发生时间的比例。此外,该动态调整单元用来动态地决定该中央处理单元的运作频率的一目标频率;其中当该中央处理单元因应下一次中断的发生进行处理时,该动态调整单元依据该目标频率设定该运作频率,以进行适应性频率调整。While providing the above method, the present invention also provides an electronic device correspondingly, the electronic device includes: a central processing unit, an interrupt service request monitoring unit, and a dynamic adjustment unit. The central processing unit is used to control the operation of the electronic device. In addition, the interrupt service request monitoring unit is used to obtain at least one interrupt service request time and calculate a ratio of the interrupt service request time to an expected interrupt occurrence time. In addition, the dynamic adjustment unit is used to dynamically determine a target frequency of the operating frequency of the central processing unit; wherein when the central processing unit performs processing in response to the occurrence of the next interrupt, the dynamic adjustment unit sets the target frequency according to the target frequency operating frequency for adaptive frequency adjustment.

本发明的好处之一是,针对多媒体装置的应用,利用本发明的方法来进行动态调整可让该中央处理单元的运作频率大致上维持在较低频率,不会产生耗电问题。另外,一旦有中断(Interrupt)发生时,本发明的方法可动态地依据目标频率设定该运作频率,就不至于因低速进行中断处理而造成系统负担。因此,本发明的方法以及相关的电子装置可达到最佳的整体效能。One of the advantages of the present invention is that, for the application of multimedia devices, using the method of the present invention to dynamically adjust the operating frequency of the central processing unit can be maintained at a relatively low frequency without causing power consumption problems. In addition, once an interrupt occurs, the method of the present invention can dynamically set the operating frequency according to the target frequency, so that the system will not be burdened by low-speed interrupt processing. Therefore, the method of the present invention and the related electronic device can achieve the best overall performance.

本发明的另一好处是,该动态调整单元可依据至少一计算结果动态地决定该运作频率的目标频率;尤其是,在该预定范围具有一高标值与一低标值的状况下,该动态调整单元可依据计算结果小于该低标值/大于该高标值的比较结果的累计次数是否达到一预定次数,来选择性地调整该目标频率,故本发明可以妥当地决定该目标频率。因此,针对该电子装置可能有各种不同取样频率的声音档案或不同显示率(Frame Rate)的影音档案,本发明可在不过度耗电的条件下,提供分别满足各种档案的不同需求的最佳处理效能。Another benefit of the present invention is that the dynamic adjustment unit can dynamically determine the target frequency of the operating frequency according to at least one calculation result; especially, when the predetermined range has a high standard value and a low standard value, the The dynamic adjustment unit can selectively adjust the target frequency according to whether the cumulative number of comparison results of calculation results smaller than the low standard value/greater than the high standard value reaches a predetermined number of times, so the present invention can properly determine the target frequency. Therefore, the electronic device may have various sound files with different sampling frequencies or audio-visual files with different display rates (Frame Rate). Optimum processing performance.

附图说明 Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,并不构成对本发明的限定。在附图中:The drawings described here are used to provide further understanding of the present invention, constitute a part of the application, and do not limit the present invention. In the attached picture:

图1为依据本发明一第一实施例的一种电子装置的时脉系统的示意图;1 is a schematic diagram of a clock system of an electronic device according to a first embodiment of the present invention;

图2A为依据本发明一实施例的一种用来进行适应性(Adaptive)频率调整的方法的流程图;FIG. 2A is a flowchart of a method for adaptive (Adaptive) frequency adjustment according to an embodiment of the present invention;

图2B为图2A所示的方法在一变化例中的流程图;FIG. 2B is a flow chart of a variation example of the method shown in FIG. 2A;

图3与图4为图2A所示的方法在一实施例中的实施细节;3 and 4 are implementation details of the method shown in FIG. 2A in an embodiment;

图5为图2A所示的方法在另一实施例中的实施细节,其中本实施例为图4所示实施例的变化例。FIG. 5 is the implementation details of the method shown in FIG. 2A in another embodiment, where this embodiment is a modification example of the embodiment shown in FIG. 4 .

附图标号:Figure number:

 100 100   电子装置 electronic device  108 108   中断路径 Interrupt path  110 110   中央处理单元 Central processing unit  120 120   中断服务请求监测单元 Interrupt service request monitoring unit  130 130   动态调整单元 Dynamic adjustment unit  140 140   时脉控制器 clock controller  140K 140K   时脉产生器 clock generator  910,910-1 910, 910-1   用来进行适应性频率调整的方法 The method used to perform adaptive frequency adjustment  912,914,916-1,916-2,918,920,922,924,925,930,932,934,936,942,944,946,950 912, 914, 916-1, 916-2, 918, 920, 922, 924, 925, 930, 932, 934, 936, 942, 944, 946, 950   步骤 steps

  CPU_CLK CPU_CLK   中央处理单元时脉 Central processing unit clock

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

请参考图1,图1为依据本发明一第一实施例的一种电子装置100的时脉系统的示意图。例如:电子装置100可代表可携式多媒体播放器诸如MP3播放器或影音播放器。又例如:电子装置100可代表可携式电子装置诸如行动电话或个人数字助理(Personal Digital Assistant,PDA)。然而,这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的某些变化例,电子装置100可代表个人电脑(Personal Computer,PC),诸如桌上型电脑(DesktopComputer)或膝上型电脑(Laptop Computer)。依据本实施例的某些变化例,电子装置100可代表具备触控荧幕的个人电脑。Please refer to FIG. 1 , which is a schematic diagram of a clock system of an electronic device 100 according to a first embodiment of the present invention. For example, the electronic device 100 may represent a portable multimedia player such as an MP3 player or a video player. Another example: the electronic device 100 may represent a portable electronic device such as a mobile phone or a personal digital assistant (Personal Digital Assistant, PDA). However, this is for the purpose of illustration only and not limitation of the present invention. According to some variations of this embodiment, the electronic device 100 may represent a personal computer (Personal Computer, PC), such as a desktop computer (Desktop Computer) or a laptop computer (Laptop Computer). According to some variations of this embodiment, the electronic device 100 may represent a personal computer with a touch screen.

如图1所示,电子装置100包含有:一中央处理单元(Central ProcessingUnit,CPU)110、一中断服务请求(Interrupt Service Request,ISR)监测单元120、一动态调整单元130、以及一时脉控制器140,其中本实施例的时脉控制器140包含一时脉产生器140K。然而,这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,时脉产生器140K可设置于时脉控制器140之外。依据本实施例的另一变化例,电子装置100中的至少一部分元件(例如:中央处理单元110、中断服务请求监测单元120、动态调整单元130及/或时脉控制器140)可以整合为同一个元件。此外,电子装置100另包含一中断(Interrupt)路径108,其中电子装置100中的一部分元件诸如中央处理单元110与中断服务请求监测单元120可透过中断路径108接收中断。As shown in FIG. 1 , the electronic device 100 includes: a central processing unit (Central Processing Unit, CPU) 110, an interrupt service request (Interrupt Service Request, ISR) monitoring unit 120, a dynamic adjustment unit 130, and a clock controller 140, wherein the clock controller 140 of this embodiment includes a clock generator 140K. However, this is for the purpose of illustration only and not limitation of the present invention. According to a variation of this embodiment, the clock generator 140K can be disposed outside the clock controller 140 . According to another variation of this embodiment, at least some components in the electronic device 100 (for example: the central processing unit 110, the interrupt service request monitoring unit 120, the dynamic adjustment unit 130 and/or the clock controller 140) can be integrated into a same a component. In addition, the electronic device 100 further includes an interrupt path 108 , wherein some components in the electronic device 100 such as the central processing unit 110 and the interrupt service request monitoring unit 120 can receive interrupts through the interrupt path 108 .

依据本实施例,中央处理单元110用来控制电子装置100的运作。另外,中断服务请求监测单元120用来取得至少一中断服务请求时间tISR并据以计算以产生相对应的一计算结果。例如:中断服务请求监测单元120计算该中断服务请求时间占一期望中断发生时间的比例,以产生该计算结果。此外,动态调整单元130用来依据至少该计算结果与一预定范围的比较结果以动态地决定中央处理单元110的运作频率fCPU_CLK的一目标频率fTARGET。尤其是,当中央处理单元110因应下一次中断的发生进行处理时,动态调整单元130可依据目标频率fTARGET设定运作频率fCPU_CLK,以进行适应性频率调整。According to this embodiment, the central processing unit 110 is used to control the operation of the electronic device 100 . In addition, the ISR monitoring unit 120 is used to obtain and calculate at least one ISR time t ISR to generate a corresponding calculation result. For example: the interrupt service request monitoring unit 120 calculates the proportion of the interrupt service request time to an expected interrupt occurrence time to generate the calculation result. In addition, the dynamic adjustment unit 130 is used to dynamically determine a target frequency f TARGET of the operating frequency f CPU_CLK of the central processing unit 110 according to at least a comparison result between the calculation result and a predetermined range. In particular, when the central processing unit 110 performs processing in response to the occurrence of the next interrupt, the dynamic adjustment unit 130 can set the operating frequency f CPU_CLK according to the target frequency f TARGET to perform adaptive frequency adjustment.

本实施例的中央处理单元时脉CPU_CLK由时脉产生器140K所产生,并输入至中央处理单元110以供其运作所需。实作上,依据动态调整单元130所进行的适应性频率调整,时脉控制器140可控制中央处理单元时脉CPU_CLK的频率;于是,动态调整单元130可透过时脉控制器140控制中央处理单元110的运作频率fCPU_CLK。相关细节请参考图2A来进一步说明。The central processing unit clock CPU_CLK in this embodiment is generated by the clock generator 140K and input to the central processing unit 110 for its operation. In practice, according to the adaptive frequency adjustment performed by the dynamic adjustment unit 130, the clock controller 140 can control the frequency of the central processing unit clock CPU_CLK; thus, the dynamic adjustment unit 130 can control the central processing unit through the clock controller 140 The operating frequency f CPU_CLK of 110. For details, please refer to FIG. 2A for further description.

请参考图2A,图2A为依据本发明一实施例的一种用来进行适应性(Adaptive)频率调整的方法910的流程图,其中方法910可应用于图1所示的电子装置100。该方法说明如下。Please refer to FIG. 2A . FIG. 2A is a flowchart of a method 910 for performing adaptive (Adaptive) frequency adjustment according to an embodiment of the present invention, wherein the method 910 is applicable to the electronic device 100 shown in FIG. 1 . The method is described below.

步骤912:当中断服务请求监测单元120检测到中断发生时,进入步骤914;否则,进入步骤950。Step 912: When the interrupt service request monitoring unit 120 detects that an interrupt occurs, go to step 914; otherwise, go to step 950.

步骤914:中断服务请求监测单元120储存目前时间(例如:时间点t1),并储存上述的运作频率fCPU_CLK的目前值作为一正常频率fNORMAL。实作上,中断服务请求监测单元120可将时间点t1以及正常频率fNORMAL储存于电子装置100中的一储存器(未显示)。例如:该储存器可为设置于中断服务请求监测单元120之内的暂存器。又例如:该储存器可为设置于中断服务请求监测单元120之外的暂存器或存储器。Step 914: The ISR monitoring unit 120 stores the current time (for example: time point t 1 ), and stores the above-mentioned current value of the operating frequency f CPU_CLK as a normal frequency f NORMAL . In practice, the interrupt service request monitoring unit 120 can store the time point t 1 and the normal frequency f NORMAL in a memory (not shown) in the electronic device 100 . For example: the storage may be a register provided in the interrupt service request monitoring unit 120 . For another example: the storage may be a register or a memory disposed outside the interrupt service request monitoring unit 120 .

步骤916-1:动态调整单元130依据一目标频率诸如上述的目标频率fTARGET设定运作频率fCPU_CLK。依据本实施例,目标频率fTARGET的典型值大于或等于正常频率fNORMAL的典型值。Step 916-1: The dynamic adjustment unit 130 sets the operating frequency f CPU_CLK according to a target frequency such as the above-mentioned target frequency f TARGET . According to this embodiment, the typical value of the target frequency f TARGET is greater than or equal to the typical value of the normal frequency f NORMAL .

步骤918:中断服务请求监测单元120检查因应中断的发生所进行的处理是否结束。当检测到因应中断的发生所进行的处理已结束时,进入步骤920;否则,重新进入步骤918,等待该处理的结束。然而,这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,中断服务请求监测单元120不必一直检查该处理是否结束,而是由中央处理单元110在该处理结束之际主动通知中断服务请求监测单元120,以进入步骤920。Step 918: The interrupt service request monitoring unit 120 checks whether the processing in response to the occurrence of the interrupt is completed. When it is detected that the processing in response to the interruption has ended, go to step 920; otherwise, go back to step 918 and wait for the processing to end. However, this is for the purpose of illustration only and not limitation of the present invention. According to a variation of this embodiment, the interrupt service request monitoring unit 120 does not have to check whether the processing is finished, but the central processing unit 110 actively notifies the interrupt service request monitoring unit 120 to enter step 920 when the processing is finished.

步骤920:中断服务请求监测单元120取得中断服务请求时间tISR并据以计算以产生相对应的计算结果。尤其是,中断服务请求监测单元120先取得目前时间诸如时间点t2,然后计算时间差值(t2-t1)作为上述的中断服务请求时间tISR。然而,这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,中断服务请求监测单元120针对时间点t1所进行的储存运作可改在步骤916-1之后执行;如此,上述的时间差值(t2-t1)会更加精确。Step 920: The ISR monitoring unit 120 obtains the ISR time t ISR and calculates it to generate a corresponding calculation result. In particular, the ISR monitoring unit 120 first obtains the current time such as the time point t 2 , and then calculates the time difference (t 2 −t 1 ) as the above-mentioned ISR time t ISR . However, this is for the purpose of illustration only and not limitation of the present invention. According to a variation of this embodiment, the storage operation performed by the interrupt service request monitoring unit 120 for the time point t 1 can be changed to be performed after step 916-1; thus, the above-mentioned time difference (t 2 -t 1 ) will be more precise.

步骤930:动态调整单元130依据上述的计算结果动态地决定运作频率fCPU_CLK的目标频率fTARGET。实作上,动态调整单元130可将其所决定的目标频率fTARGET储存于电子装置100中的一储存器(未显示)。例如:该储存器可为设置于动态调整单元130之内的暂存器。又例如:该储存器可为设置于动态调整单元130之外的暂存器或存储器。Step 930: The dynamic adjustment unit 130 dynamically determines the target frequency f TARGET of the operating frequency f CPU_CLK according to the above calculation result. In practice, the dynamic adjustment unit 130 can store the determined target frequency f TARGET in a memory (not shown) in the electronic device 100 . For example: the storage may be a temporary register disposed in the dynamic adjustment unit 130 . Another example: the storage may be a temporary register or a memory disposed outside the dynamic adjustment unit 130 .

步骤916-2:动态调整单元130依据正常频率fNORMAL设定运作频率fCPU_CLK。由于本实施例在执行步骤914时,已储存运作频率fCPU_CLK在当时的数值作为正常频率fNORMAL,故正常频率fNORMAL可视为运作频率fCPU_CLK在因应中断的发生所进行的处理之前的数值。请注意,本实施例的运作频率fCPU_CLK在每逢需要针对中断进行处理时是可以动态调整的。尤其是,每逢针对中断进行处理时,本实施例的架构将运作频率fCPU_CLK暂时地设定为可动态调整的目标频率fTARGET(此即运作频率fCPU_CLK在进行中断处理时的临时性的目标值),故在因应中断的发生所进行的处理结束后,就可以将运作频率fCPU_CLK调整回因应中断的发生所进行的处理之前的数值,也就是正常频率fNORMALStep 916-2: The dynamic adjustment unit 130 sets the operating frequency f CPU_CLK according to the normal frequency f NORMAL . Since this embodiment has stored the value of the operating frequency f CPU_CLK at that time as the normal frequency f NORMAL when step 914 is executed, the normal frequency f NORMAL can be regarded as the value of the operating frequency f CPU_CLK before processing in response to the occurrence of an interrupt. . Please note that the operating frequency f CPU_CLK of this embodiment can be dynamically adjusted whenever an interrupt needs to be processed. In particular, whenever an interrupt is processed, the architecture of this embodiment temporarily sets the operating frequency f CPU_CLK to the dynamically adjustable target frequency f TARGET (that is, the temporary setting of the operating frequency f CPU_CLK when interrupt processing is performed). target value), so after the processing in response to the interrupt is completed, the operating frequency f CPU_CLK can be adjusted back to the value before the processing in response to the interrupt, that is, the normal frequency f NORMAL .

步骤950:中央处理单元110进行正常处理。Step 950: The central processing unit 110 performs normal processing.

依据本实施例,由步骤912、914、916-1、918、920、930与916-2所形成的循环每逢中断发生就执行一次,其中任一次该循环执行时,动态调整单元130可依据当次的计算结果来动态地决定下一次的目标频率fTARGET。在本实施例中,该预定范围具有一高标值UB与一低标值LB;尤其是,该预定范围可表示为区间[LB,UB]。每一次该循环执行时,当次的计算结果可在步骤920产生,且当次的计算结果与该预定范围之间的比较结果可在步骤930产生。另外,当次的比较结果可在步骤930中列入统计,尤其是进行次数累计。According to this embodiment, the loop formed by steps 912, 914, 916-1, 918, 920, 930, and 916-2 is executed every time an interruption occurs, and any time the loop is executed, the dynamic adjustment unit 130 can be based on The current calculation result is used to dynamically determine the next target frequency f TARGET . In this embodiment, the predetermined range has a high standard value UB and a low standard value LB; especially, the predetermined range can be expressed as an interval [LB, UB]. Every time the loop is executed, the current calculation result can be generated in step 920 , and the comparison result between the current calculation result and the predetermined range can be generated in step 930 . In addition, the current comparison result can be included in the statistics in step 930, especially the number of times is accumulated.

实作上,在步骤930中可统计某一类型的比较结果的累计次数有几次、又可统计另一类型的比较结果的累计次数有几次。于是,在步骤930中,动态调整单元130就可依据这些累计次数来选择性地决定调升或调降目标频率fTARGET、或维持目标频率fTARGET的值不予变动。例如:动态调整单元130可依据“计算结果小于低标值LB”的比较结果的累计次数是否达到一预定次数NLB,来选择性地调整目标频率fTARGET。又例如:动态调整单元130可依据“计算结果大于高标值UB”的比较结果的累计次数是否达到一预定次数NUB,来选择性地调整目标频率fTARGETIn practice, in step 930 , the accumulated times of a certain type of comparison results can be counted, and the accumulated times of another type of comparison results can also be counted. Therefore, in step 930 , the dynamic adjustment unit 130 can selectively decide to increase or decrease the target frequency f TARGET according to these accumulated times, or keep the value of the target frequency f TARGET unchanged. For example, the dynamic adjustment unit 130 can selectively adjust the target frequency f TARGET according to whether the cumulative number of comparison results of "the calculation result is less than the low standard value LB" reaches a predetermined number N LB . For another example, the dynamic adjustment unit 130 can selectively adjust the target frequency f TARGET according to whether the cumulative number of comparison results of "the calculation result is greater than the high standard value UB" reaches a predetermined number N UB .

请注意,在中央处理单元110因应该中断的发生进行处理之初(例如执行步骤914之际),中断服务请求监测单元120储存运作频率fCPU_CLK的目前值,作为正常频率fNORMAL,以供后续利用。因此,在中央处理单元110因应该中断的发生进行处理之后(例如执行步骤916-2之际),动态调整单元130即可依据预先储存的正常频率fNORMAL来设定运作频率fCPU_CLK。另外,步骤916-2在步骤930之后执行。这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的某些变化例,步骤916-2可在步骤918或步骤920之后执行。依据本实施例的其它变化例,步骤916-2的运作可并入步骤918之后的任何步骤诸如步骤920或步骤930之内。Please note that at the beginning when the central processing unit 110 processes the interrupt (for example, when step 914 is executed), the interrupt service request monitoring unit 120 stores the current value of the operating frequency f CPU_CLK as the normal frequency f NORMAL for subsequent use use. Therefore, after the CPU 110 processes the interrupt (for example, when executing step 916-2), the dynamic adjustment unit 130 can set the operating frequency f CPU_CLK according to the pre-stored normal frequency f NORMAL . Additionally, step 916 - 2 is performed after step 930 . This is for illustrative purposes only, not limitation of the invention. According to some variations of this embodiment, step 916 - 2 may be performed after step 918 or step 920 . According to other variations of this embodiment, the operation of step 916 - 2 may be incorporated into any step after step 918 such as step 920 or step 930 .

图2B为图2A所示的方法910在一变化例中的流程图。上述的方法910在本变化例中改标示为910-1,其中新增了步骤925。本变化例与图2A所示实施例之间的差异说明如下:FIG. 2B is a flowchart of a variation of the method 910 shown in FIG. 2A . The above-mentioned method 910 is marked as 910-1 in this variation example, and a new step 925 is added. The differences between this variation example and the embodiment shown in Figure 2A are as follows:

步骤920:中断服务请求监测单元120取得中断服务请求时间tISR并据以计算以产生相对应的计算结果。尤其是,中断服务请求监测单元120先取得目前时间诸如时间点t2,然后计算时间差值(t2-t1)作为上述的中断服务请求时间tISR。然而,这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,中断服务请求监测单元120针对时间点t1所进行的储存运作可改在步骤916-1之后执行;如此,上述的时间差值(t2-t1)会更加精确。Step 920: The ISR monitoring unit 120 obtains the ISR time t ISR and calculates it to generate a corresponding calculation result. In particular, the ISR monitoring unit 120 first obtains the current time such as time point t 2 , and then calculates the time difference (t 2 −t 1 ) as the above-mentioned ISR time t ISR . However, this is for the purpose of illustration only and not limitation of the present invention. According to a variation of this embodiment, the storage operation performed by the interrupt service request monitoring unit 120 for the time point t 1 can be changed to be performed after step 916-1; thus, the above-mentioned time difference (t 2 -t 1 ) will be more precise.

步骤925:中断服务请求监测单元120检查是否已符合进入一频率调整流程的条件。在此,该频率调整流程代表由步骤930至步骤916-2的工作流程;该频率调整流程用来动态地调整目标频率fTARGET及/或将运作频率fCPU_CLK暂时地设定为可动态调整的目标频率fTARGET,以进行该适应性频率调整。当检测到已符合进入频率调整流程的条件时,进入步骤930;否则,进入步骤950。Step 925: The ISR monitoring unit 120 checks whether a condition for entering a frequency adjustment procedure is met. Here, the frequency adjustment process represents the workflow from step 930 to step 916-2; the frequency adjustment process is used to dynamically adjust the target frequency f TARGET and/or temporarily set the operating frequency f CPU_CLK to be dynamically adjustable The target frequency f TARGET for this adaptive frequency adjustment. When it is detected that the condition for entering the frequency adjustment procedure is met, go to step 930 ; otherwise, go to step 950 .

由于本变化例中新增了步骤925,故可以利用进入频率调整流程的条件来控制电子装置100在时脉控制上的运作方式及其效能。例如:进入频率调整流程的条件可预先设定而不再改变。又例如:进入频率调整流程的条件可动态地调整。Since step 925 is newly added in this variation example, the conditions for entering the frequency adjustment process can be used to control the operation mode and performance of the electronic device 100 in clock control. For example: the conditions for entering the frequency adjustment process can be preset and not changed. Another example: the conditions for entering the frequency adjustment process can be dynamically adjusted.

举例而言,进入频率调整流程的条件可设定为:连续N次中断发生时均预估目标频率fTARGET应予调升、或连续N次中断发生时均预估目标频率fTARGET应予调降时,应进入该频率调整流程。例如:在N=3的状况下,起初两次中断发生只要一遇到步骤925就进入步骤950;在第三次中断发生时,已经连续两次(在此即第一、二次)中断发生时均应予调升目标频率fTARGET;到了第三次中断发生时却应予调降目标频率fTARGET,由于无法连续累计“目标频率fTARGET应予调升”达三次,故将“目标频率fTARGET应予调升”的累计次数重设为零;在第五次中断发生时,已经连续三次(在此即第三、四、五次)中断发生时均应予调降目标频率fTARGET,由于已经连续累计“目标频率fTARGET应予调降”达三次,故判断应进入该频率调整流程。For example, the condition for entering the frequency adjustment process can be set as: when N consecutive interruptions occur, the estimated target frequency f TARGET should be increased, or when N consecutive interruptions occur, the estimated target frequency f TARGET should be adjusted When it drops, it should enter the frequency adjustment process. For example: under the situation of N=3, just enter step 950 once encountering step 925 as soon as two interruptions take place at first; The target frequency f TARGET should be raised every time; when the third interruption occurs, the target frequency f TARGET should be lowered. Since the "target frequency f TARGET should be raised" cannot be continuously accumulated for three times, the "target frequency f TARGET should be raised" and reset to zero; when the fifth interruption occurs, the target frequency f TARGET should be lowered when three consecutive interruptions (here, the third, fourth, and fifth times) occur , since the "target frequency f TARGET should be lowered" has accumulated three times in a row, it is judged that the frequency adjustment process should be entered.

图3与图4为图2A所示的方法910在一实施例中的实施细节,尤其是步骤920与步骤930的实施细节。这些实施细节说明如下。FIG. 3 and FIG. 4 are implementation details of the method 910 shown in FIG. 2A in an embodiment, especially implementation details of step 920 and step 930 . These implementation details are described below.

步骤920可以包括下列步骤:Step 920 may include the following steps:

步骤922:中断服务请求监测单元120计算上述的时间差值(t2-t1),以取得中断服务请求时间tISRStep 922: The ISR monitoring unit 120 calculates the above-mentioned time difference (t 2 −t 1 ) to obtain the ISR time t ISR .

步骤924:中断服务请求监测单元120计算上述的中断服务请求时间tISR占一期望中断发生时间tEXP的比例FISR2EXP,作为步骤920所述的计算结果。实作上,期望中断发生时间tEXP可为一预定参数,其可使该计算结果易于比较或适于评估之用。尤其是,期望中断发生时间tEXP可设定为一常数。Step 924: The ISR monitoring unit 120 calculates the ratio F ISR2EXP of the above-mentioned ISR time tISR to an expected interrupt occurrence time t EXP as the calculation result in step 920 . In practice, the expected interrupt occurrence time t EXP can be a predetermined parameter, which can make the calculation results easy to compare or suitable for evaluation. In particular, the expected interrupt occurrence time t EXP can be set as a constant.

步骤930可以包括下列步骤:Step 930 may include the following steps:

步骤932:动态调整单元130检查该计算结果(在本实施例即比例FISR2EXP)是否大于高标值UB。当该计算结果大于高标值UB时,进入步骤934;否则,进入步骤942。Step 932: The dynamic adjustment unit 130 checks whether the calculation result (in this embodiment, the ratio F ISR2EXP ) is greater than the upper threshold UB. When the calculation result is greater than the high standard value UB, go to step 934; otherwise, go to step 942.

步骤934:动态调整单元130检查“计算结果大于高标值UB”的比较结果的累计次数是否达到预定次数NUB。当累计次数达到预定次数NUB时,进入步骤936;否则,进入步骤916-2。Step 934: The dynamic adjustment unit 130 checks whether the cumulative number of comparison results of "the calculation result is greater than the high standard value UB" reaches a predetermined number N UB . When the cumulative number reaches the predetermined number N UB , go to step 936; otherwise, go to step 916-2.

步骤936:动态调整单元130选择性地将目标频率fTARGET调升一等级的预定值,除非目标频率fTARGET已达最高等级的预定值。例如:本实施例中的不同等级的预定值包含预定值fT,1、fT,2、…、与fT,X,而动态调整单元130可择一设定为目标频率fTARGET,其中fT,1<fT,2<…<fT,X,且该最高等级的预定值即为fT,X。实作上,一旦由步骤934进入步骤936,动态调整单元130可将步骤934所述的累计次数清除为零。在执行步骤936之后,进入步骤916-2。Step 936 : The dynamic adjustment unit 130 selectively increases the target frequency f TARGET by a predetermined value, unless the target frequency f TARGET has reached the highest predetermined value. For example: the predetermined values of different levels in this embodiment include predetermined values f T, 1 , f T, 2 , . . . f T,1 <f T,2 <...<f T,X , and the predetermined value of the highest level is f T,X . In practice, once step 934 enters step 936 , the dynamic adjustment unit 130 may clear the accumulative times described in step 934 to zero. After step 936 is executed, go to step 916-2.

步骤942:动态调整单元130检查该计算结果(在本实施例即比例FISR2EXP)是否小于低标值LB。当该计算结果小于低标值LB时,进入步骤944;否则,进入步骤916-2。Step 942: The dynamic adjustment unit 130 checks whether the calculation result (in this embodiment, the ratio F ISR2EXP ) is smaller than the low mark value LB. When the calculation result is less than the low standard value LB, go to step 944; otherwise, go to step 916-2.

步骤944:动态调整单元130检查“计算结果小于低标值LB”的比较结果的累计次数是否达到预定次数NLB。当累计次数达到预定次数NLB时,进入步骤946;否则,进入步骤916-2。Step 944: The dynamic adjustment unit 130 checks whether the cumulative number of comparison results of "the calculation result is less than the low standard value LB" reaches a predetermined number N LB . When the cumulative number reaches the predetermined number N LB , go to step 946; otherwise, go to step 916-2.

步骤946:动态调整单元130选择性地将目标频率fTARGET调降一等级的预定值,除非目标频率fTARGET已达最低等级的预定值。例如:本实施例中的不同等级的预定值包含预定值fT,1、fT,2、…、与fT,X,而动态调整单元130可择一设定为目标频率fTARGET,其中fT,1<fT,2<…<fT,X,且该最低等级的预定值即为fT,1。实作上,一旦由步骤944进入步骤946,动态调整单元130可将步骤944所述的累计次数清除为零。在执行步骤946之后,进入步骤916-2。Step 946 : The dynamic adjustment unit 130 selectively lowers the target frequency f TARGET by one level of predetermined value, unless the target frequency f TARGET has reached the lowest level of predetermined value. For example: the predetermined values of different levels in this embodiment include predetermined values f T, 1 , f T, 2 , . . . f T,1 <f T,2 <...<f T,X , and the predetermined value of the lowest level is f T,1 . In practice, once step 944 enters step 946 , the dynamic adjustment unit 130 may clear the accumulative times described in step 944 to zero. After step 946 is executed, go to step 916-2.

依据本实施例,低标值LB不等于高标值UB;尤其是,低标值LB小于高标值UB。这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,低标值LB可等于高标值UB。另外,在本实施例中,预定次数NLB可等于预定次数NUB。这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的一变化例,预定次数NLB可不等于预定次数NUBAccording to this embodiment, the low standard value LB is not equal to the high standard value UB; especially, the low standard value LB is smaller than the high standard value UB. This is for illustrative purposes only, not limitation of the invention. According to a variation of this embodiment, the low mark value LB may be equal to the high mark value UB. In addition, in this embodiment, the predetermined number of times N LB may be equal to the predetermined number of times N UB . This is for illustrative purposes only, not limitation of the invention. According to a variation of this embodiment, the predetermined number N LB may not be equal to the predetermined number N UB .

请注意,本实施例的动态调整单元130在步骤932先进行该计算结果与高标值UB的比较,一旦进入步骤942才进行该计算结果与低标值LB的比较。这仅为了说明的目的而已,并非对本发明的限制。依据本实施例的某些变化例诸如图5所示实施例,动态调整单元130可在步骤942先进行该计算结果与低标值LB的比较,一旦进入步骤932才进行该计算结果与高标值UB的比较。本实施例与前述各个实施例/变化例相仿之处不再重复赘述。Please note that the dynamic adjustment unit 130 of this embodiment first compares the calculation result with the high standard value UB at step 932 , and then compares the calculation result with the low standard value LB once entering step 942 . This is for illustrative purposes only, not limitation of the invention. According to some variations of this embodiment, such as the embodiment shown in FIG. 5 , the dynamic adjustment unit 130 can first compare the calculation result with the low standard value LB in step 942, and then perform the calculation result and the high standard value LB once entering step 932. A comparison of the value UB. The similarities between this embodiment and the foregoing embodiments/variations are not repeated here.

以上所述仅为本发明的较佳实施例,凡依本发明权利要求范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (10)

1.一种用来进行适应性频率调整的方法,其特征在于,所述方法用来控制一电子装置的中央处理单元的运作频率,所述方法包含有:1. A method for adaptive frequency adjustment, wherein the method is used to control the operating frequency of a central processing unit of an electronic device, and the method includes: 取得至少一中断服务请求时间,且计算所述中断服务请求时间占一期望中断发生时间的比例;Obtaining at least one interrupt service request time, and calculating a ratio of the interrupt service request time to an expected interrupt occurrence time; 动态地决定所述中央处理单元的运作频率的一目标频率,以在所述中央处理单元因应下一次中断的发生进行处理时,依据所述目标频率设定所述运作频率,以进行适应性频率调整;Dynamically determine a target frequency of the operating frequency of the central processing unit, so that when the central processing unit performs processing in response to the occurrence of the next interrupt, the operating frequency is set according to the target frequency to perform adaptive frequency Adjustment; 其中,计算所述中断服务请求时间占一期望中断发生时间的比例的步骤进一步包含:将所述中断服务请求时间占一期望中断发生时间的比例据以计算以产生相对应的一计算结果;Wherein, the step of calculating the ratio of the interrupt service request time to an expected interrupt occurrence time further includes: calculating the ratio of the interrupt service request time to an expected interrupt occurrence time to generate a corresponding calculation result; 其中,动态地决定所述中央处理单元的运作频率的一目标频率的步骤进一步包含:将所述计算结果与一预定范围做比较,以产生一比较结果。Wherein, the step of dynamically determining a target frequency of the operating frequency of the central processing unit further includes: comparing the calculation result with a predetermined range to generate a comparison result. 2.如权利要求1所述的方法,其特征在于,所述预定范围具有一高标值与一低标值。2. The method of claim 1, wherein the predetermined range has a high mark and a low mark. 3.如权利要求2所述的方法,其特征在于,动态地决定所述中央处理单元的运作频率的一目标频率的步骤另包含:3. The method according to claim 2, wherein the step of dynamically determining a target frequency of the operating frequency of the central processing unit further comprises: 当所述计算结果大于所述高标值且所述计算结果大于所述高标值的所述比较结果的累计次数达到一预定次数时,选择性地将所述目标频率调升一等级的预定值,除非所述目标频率已达最高等级的预定值;以及When the calculation result is greater than the high standard value and the cumulative number of comparison results with the calculation result greater than the high standard value reaches a predetermined number of times, selectively raising the target frequency by a predetermined level value, unless said target frequency has reached the predetermined value for the highest level; and 当所述计算结果大于所述高标值,但所述计算结果大于所述高标值的所述比较结果的累计次数尚未达到所述预定次数时,则不变动所述目标频率。When the calculation result is greater than the high standard value, but the cumulative number of comparison results with the calculation result greater than the high standard value has not reached the predetermined number, the target frequency is not changed. 4.如权利要求2所述的方法,其特征在于,动态地决定所述中央处理单元的运作频率的一目标频率的步骤另包含:4. The method according to claim 2, wherein the step of dynamically determining a target frequency of the operating frequency of the central processing unit further comprises: 当所述计算结果小于所述低标值且所述计算结果小于所述低标值的所述比较结果的累计次数达到一预定次数时,选择性地将所述目标频率调降一等级的预定值,除非所述目标频率已达最低等级的预定值;以及When the calculation result is less than the low mark value and the cumulative number of comparison results with the calculation result less than the low mark value reaches a predetermined number of times, selectively lowering the target frequency by a predetermined level value, unless said target frequency has reached a predetermined value for the lowest level; and 当所述计算结果小于所述低标值,但所述计算结果小于所述低标值的所述比较结果的累计次数尚未达到所述预定次数时,则不变动所述目标频率。When the calculation result is less than the low mark value, but the cumulative number of comparison results whose calculation result is less than the low mark value has not reached the predetermined number, the target frequency is not changed. 5.如权利要求2所述的方法,其特征在于,动态地决定所述中央处理单元的运作频率的一目标频率的步骤另包含:5. The method according to claim 2, wherein the step of dynamically determining a target frequency of the operating frequency of the central processing unit further comprises: 累计所述比较结果,当本次所述比较结果与前次所述比较结果不同时,将之前的累计纪录清除,以及accumulating the comparison results, and clearing the previous accumulated records when the comparison results this time are different from the previous comparison results, and 当相同的比较结果连续累计达到一预定次数时,选择性地将所述目标频率调整至一邻近等级的预定值,除非所述目标频率已达极限等级的预定值。When the same comparison result is continuously accumulated for a predetermined number of times, the target frequency is selectively adjusted to a predetermined value of an adjacent level, unless the target frequency has reached a predetermined value of a limit level. 6.如权利要求1所述的方法,其特征在于,所述的方法另包含有:6. method as claimed in claim 1, is characterized in that, described method further comprises: 在所述中央处理单元因应所述中断的发生进行处理之初,储存所述运作频率的目前值,作为一正常频率;以及storing the current value of the operation frequency as a normal frequency at the beginning of the processing by the central processing unit in response to the occurrence of the interruption; and 在所述中央处理单元因应所述中断的发生进行处理之后,依据所述正常频率设定所述运作频率。After the central processing unit performs processing in response to the occurrence of the interrupt, the operating frequency is set according to the normal frequency. 7.一种电子装置,其特征在于,所述的电子装置包含有:7. An electronic device, characterized in that the electronic device comprises: 一中央处理单元,用来控制所述电子装置的运作;a central processing unit for controlling the operation of the electronic device; 一中断服务请求监测单元,用来取得至少一中断服务请求时间并据以计算所述中断服务请求时间占一期望中断发生时间的比例;以及an interrupt service request monitoring unit, used to obtain at least one interrupt service request time and calculate the ratio of said interrupt service request time to an expected interrupt occurrence time; and 一动态调整单元,用来动态地决定所述中央处理单元的运作频率的一目标频率;a dynamic adjustment unit for dynamically determining a target frequency of the operating frequency of the central processing unit; 其中当所述中央处理单元因应下一次中断的发生进行处理时,所述动态调整单元依据所述目标频率设定所述运作频率,以进行适应性频率调整;Wherein when the central processing unit performs processing in response to the occurrence of the next interrupt, the dynamic adjustment unit sets the operating frequency according to the target frequency to perform adaptive frequency adjustment; 其中,所述中断服务请求监测单元将所述中断服务请求时间占一期望中断发生时间的比例据以计算以产生相对应的一计算结果,而所述动态调整单元将所述计算结果与一预定范围做比较,以产生一比较结果。Wherein, the interrupt service request monitoring unit calculates the ratio of the interrupt service request time to an expected interrupt occurrence time to generate a corresponding calculation result, and the dynamic adjustment unit compares the calculation result with a predetermined Ranges are compared to generate a comparison result. 8.如权利要求7所述的电子装置,其特征在于,所述预定范围具有一高标值与一低标值;当所述计算结果大于所述高标值且所述计算结果大于所述高标值的所述比较结果的累计次数达到一预定次数时,所述动态调整单元选择性地将所述目标频率调升一等级的预定值,除非所述目标频率已达最高等级的预定值;以及当所述计算结果大于所述高标值且所述计算结果大于所述高标值的所述比较结果的累计次数尚未达到所述预定次数时,所述动态调整单元不变动所述目标频率。8. The electronic device according to claim 7, wherein the predetermined range has a high value and a low value; when the calculation result is greater than the high value and the calculation result is greater than the When the cumulative number of times of the comparison result of the high standard value reaches a predetermined number of times, the dynamic adjustment unit selectively raises the target frequency by a predetermined value, unless the target frequency has reached the highest predetermined value. ; and when the calculation result is greater than the high standard value and the cumulative number of comparison results with the calculation result greater than the high standard value has not reached the predetermined number of times, the dynamic adjustment unit does not change the target frequency. 9.如权利要求7所述的电子装置,其特征在于,所述预定范围具有一高标值与一低标值;当所述计算结果小于所述低标值且所述计算结果小于所述低标值的所述比较结果的累计次数达到一预定次数时,所述动态调整单元选择性地将所述目标频率调降一等级的预定值,除非所述目标频率已达最小等级的预定值;以及当所述计算结果小于所述低标值且所述计算结果小于所述低标值的所述比较结果的累计次数尚未达到所述预定次数时,所述动态调整单元不变动所述目标频率。9. The electronic device according to claim 7, wherein the predetermined range has a high value and a low value; when the calculation result is less than the low value and the calculation result is less than the When the cumulative number of times of the comparison result of the low scale value reaches a predetermined number, the dynamic adjustment unit selectively lowers the target frequency by a predetermined value of one level, unless the target frequency has reached the minimum level of the predetermined value ; and when the calculation result is less than the low mark value and the cumulative number of times of the comparison result of which the calculation result is less than the low mark value has not reached the predetermined number of times, the dynamic adjustment unit does not change the target frequency. 10.如权利要求7所述的电子装置,其特征在于,在所述中央处理单元因应所述中断的发生进行处理之初,所述中断服务请求监测单元储存所述运作频率的目前值,作为一正常频率;以及在所述中央处理单元因应所述中断的发生进行处理之后,所述动态调整单元依据所述正常频率设定所述运作频率。10. The electronic device according to claim 7, wherein at the beginning when the central processing unit performs processing in response to the occurrence of the interrupt, the interrupt service request monitoring unit stores the current value of the operating frequency as a normal frequency; and after the central processing unit performs processing in response to the occurrence of the interrupt, the dynamic adjustment unit sets the operating frequency according to the normal frequency.
CN2010100028210A 2010-01-18 2010-01-18 Method and associated electronic device for performing adaptive frequency adjustment 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 and associated electronic device for performing adaptive frequency adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100028210A CN102129392B (en) 2010-01-18 2010-01-18 Method and associated electronic device for performing adaptive frequency adjustment

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 and associated electronic device for performing adaptive frequency adjustment

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
US11709534B2 (en) Method and apparatus for managing global chip power on a multicore system on chip
US20180157315A1 (en) System and method for proactive power and performance management of a workload in a portable computing device
US20140317427A1 (en) Dynamic clock voltage scaling (dcvs) based on application performance in a system-on-a-chip (soc), and related methods and processor-based systems
US8909961B2 (en) Method and apparatus for adjusting power consumption level of an integrated circuit
US8364996B2 (en) Power control device and power control method applied to computer system
US9852714B2 (en) Energy conservation in a controller using dynamic frequency selection
CN104571990A (en) A method and device for adjusting the operating state of a display screen
CN110206747B (en) A server fan control method and system based on component power consumption
CN111816178A (en) Voice equipment control method, device and equipment
CN102129392B (en) Method and associated electronic device for performing adaptive frequency adjustment
US9489031B2 (en) Method to reduce acoustic noise induced by processor performance state changes in response to periodic application workloads
CN102157133A (en) Backlight control device and control method thereof
JP6009689B2 (en) Adaptive voltage scaling system and method
TWI497371B (en) Touch device and measuring voltage dynamic adjustment method thereof
US8908719B2 (en) Clock rate controller and method thereof and electronic device thereof
WO2020103027A1 (en) Network power consumption adjustment method, network power consumption adjustment device, and mobile terminal
US11715402B2 (en) Electronic device with display panel and control method for updating brightness limit of display panel based on temperature
TW201419848A (en) Motion detection circuit and method for detecting motion images thereof
JP2011205283A (en) Signal processor
CN116030748A (en) Method and device for dynamically adjusting chip clock frequency
CN114662252B (en) A method for improving the performance index of complex networked stochastic systems
CN103853307A (en) Electronic device and method for reducing power consumption of processor system
CN108736082B (en) Method, device, equipment and storage medium for improving endurance capacity of terminal battery
CN113721755B (en) Screen power saving method and device
CN114816288B (en) Dynamic frequency adjustment method and related device

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