CN1670691A - System and method for regulating CPU frequency - Google Patents
System and method for regulating CPU frequency Download PDFInfo
- Publication number
- CN1670691A CN1670691A CN 200410026602 CN200410026602A CN1670691A CN 1670691 A CN1670691 A CN 1670691A CN 200410026602 CN200410026602 CN 200410026602 CN 200410026602 A CN200410026602 A CN 200410026602A CN 1670691 A CN1670691 A CN 1670691A
- Authority
- CN
- China
- Prior art keywords
- frequency
- cpu
- processing unit
- central processing
- command signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
本发明揭露一种调节CPU频率之系统及方法。该系统采用分层架构,该分层架构包括一应用层、一驱动层、一硬件抽象层及一硬件平台,其中:应用层包括一用户界面,其用于显示CPU的频率,用户通过该用户界面直观地调节CPU的频率,并根据用户的操作输出一用于更新CPU频率的命令信号;硬件抽象层包括一BIOS,其响应该命令信号,提供调节CPU频率的功能。本发明采用分层架构,由BIOS提供调节CPU频率的功能,使开发人员只需遵从标准接口,即可实现分层开发,程序易于维护,并减少驱动层的复杂度,实现对不同型号的BIOS的兼容性。
The invention discloses a system and method for adjusting CPU frequency. The system adopts a layered architecture, which includes an application layer, a driver layer, a hardware abstraction layer, and a hardware platform, wherein: the application layer includes a user interface, which is used to display the frequency of the CPU, and the user The interface intuitively adjusts the frequency of the CPU, and outputs a command signal for updating the CPU frequency according to the user's operation; the hardware abstraction layer includes a BIOS, which responds to the command signal and provides the function of adjusting the CPU frequency. The invention adopts a layered architecture, and the BIOS provides the function of adjusting the CPU frequency, so that developers only need to follow the standard interface to realize layered development. compatibility.
Description
【技术领域】【Technical field】
本发明涉及一种调节CPU参数之系统及方法,尤其是涉及一种调节CPU频率之系统及方法。The invention relates to a system and method for adjusting CPU parameters, in particular to a system and method for adjusting CPU frequency.
【背景技术】【Background technique】
在实际应用中,不同的应用程序所需要的中央处理器(CentralProcessing Unit,CPU)的运行速度不同。例如,一般的文件编辑程序所需要的CPU的运行速度较低。但是,当使用计算机进行图像数据处理,或进行网络浏览等大数据量交换传递时,CPU必须运行在较高的速度,才能满足程序性能。CPU在不同运行速度下,其功耗、发热以及配件的噪音区别较大。为了节能、降低发热量以及提高CPU的工作性能,根据实际的应用需求,需要调节CPU的频率。In practical applications, different application programs require different operating speeds of a central processing unit (Central Processing Unit, CPU). For example, the operating speed of the CPU required by general file editing programs is relatively low. However, when a computer is used to process image data, or to exchange and transfer large amounts of data such as web browsing, the CPU must run at a relatively high speed to meet program performance. The power consumption, heat generation and noise of accessories are quite different when the CPU runs at different speeds. In order to save energy, reduce heat generation, and improve CPU performance, the frequency of the CPU needs to be adjusted according to actual application requirements.
市场上有许多调节CPU频率的装置及方法,如中国国家知识产权局于2002年7月17日公开的公开号为CN1359041A的专利申请案,其名称为“根据CPU的利用率调节CPU频率的方法”,其揭露一种根据CPU的利用率调节CPU频率的方法。该方法包括如下步骤:设定CPU利用率比较域值;比较测量值和设定的域值;根据比较结果,调节CPU频率。CPU频率具体调节步骤为:调整CPU有效工作时间TW,设定调整脉冲周期T;将调整脉冲周期T与CPU固定的基准时钟叠合;均匀调节调整脉冲中的TW和T;得到CPU频率,以期达到节能,降低发热量,保障CPU安全,延长CPU使用寿命目的方法。There are many devices and methods for adjusting the CPU frequency on the market, such as the patent application with the publication number CN1359041A published by the State Intellectual Property Office of China on July 17, 2002, which is entitled "A Method for Adjusting the CPU Frequency According to the Utilization Rate of the CPU" ", which discloses a method for adjusting CPU frequency according to CPU utilization. The method includes the following steps: setting the comparison threshold value of the CPU utilization rate; comparing the measured value with the set threshold value; and adjusting the CPU frequency according to the comparison result. The specific adjustment steps of the CPU frequency are: adjust the effective working time TW of the CPU, set the adjustment pulse period T; superimpose the adjustment pulse period T with the fixed reference clock of the CPU; uniformly adjust TW and T in the adjustment pulse; obtain the CPU frequency, in order to A method to achieve energy saving, reduce calorific value, ensure CPU safety, and prolong CPU service life.
另外,如台湾智慧财产局于2002年5月1日公告的第485281号专利,其名称为“可通过监控CPU负担而动态调节其工作电压及内频的计算机系统”,其揭露一种可通过监控CPU负担而动态调节其工作电压及内频的计算机系统。该系统包括有一CPU、一电源供应器、一内存及一工作监控电路,工作监控电路通过一内存/输入输出端口状态信号线(M/IO信号线)监控CPU的工作负担,并将监控的结果储存于一工作负担缓存器中,以形成表示该CPU目前工作负担的相对应参数,而内存中则包含一工作调整程序,可为基本输出输入系统(BasicInput/Output System,BIOS)的一部分,并可执行于CPU中,当工作监控电路发现CPU的工作负担有显著变化时,会发出一中断指令以呼叫一BIOS服务,而BIOS服务会执行工作调整程序,以通过该电源供应器动态调整提供至该CPU的工作电压,或根据该工作负担缓存器中的参数以调节该CPU的工作内频。In addition, such as the No. 485281 patent announced by the Taiwan Intellectual Property Office on May 1, 2002, its name is "a computer system that can dynamically adjust its operating voltage and internal frequency by monitoring the CPU burden", which discloses a computer system that can A computer system that monitors the CPU load and dynamically adjusts its operating voltage and internal frequency. The system includes a CPU, a power supply, a memory, and a work monitoring circuit. The work monitoring circuit monitors the workload of the CPU through a memory/input and output port status signal line (M/IO signal line), and reports the monitoring result Stored in a workload register to form corresponding parameters representing the current workload of the CPU, while the memory contains a work adjustment program, which can be a part of the Basic Input/Output System (BIOS), and It can be executed in the CPU. When the work monitoring circuit finds that the work load of the CPU has changed significantly, it will send an interrupt command to call a BIOS service, and the BIOS service will execute the work adjustment program to dynamically adjust the power supply provided to the power supply through the power supply. The working voltage of the CPU, or adjust the working internal frequency of the CPU according to the parameters in the workload register.
通过上述的两种方法均可调节CPU频率,从而达到节能、降低发热量以及提高CPU性能的目的。然而,上述的两种发明的技术实现的难度较大,而且技术的实现依赖于BIOS的型号,通用性及兼容性较差。为避免上述缺陷,需要提供一种具有分层架构,并由BIOS提供调节CPU频率之功能的系统及方法。The CPU frequency can be adjusted through the above two methods, so as to achieve the purpose of saving energy, reducing heat generation and improving CPU performance. However, the technical implementation of the above two inventions is relatively difficult, and the technical implementation depends on the type of BIOS, so the versatility and compatibility are relatively poor. In order to avoid the above-mentioned defects, it is necessary to provide a system and method with a layered architecture and the function of adjusting the CPU frequency provided by the BIOS.
【发明内容】【Content of invention】
本发明的主要目的在于,提供一种调节CPU频率之系统及方法。该系统采用分层架构,该分层架构包括一应用层、一驱动层、一硬件抽象层及一硬件平台,并由硬件抽象层提供调节CPU频率的功能。应用层包括一用户界面及一动态链接库;驱动层包括一驱动器模型;硬件抽象层包括一基本输入输出系统(Basic Input/Output System,BIOS)及一闪存,其中BIOS包括一频率更新模块及一数据存取模块;硬件平台包括一南桥及一中央处理器(Central Processing Unit,CPU)。该用户界面用于显示CPU的频率,用户通过该用户界面直观地调节CPU的频率,该用户界面根据用户的操作向动态链接库输出一命令信号。动态链接库用于接收用户界面输出的命令信号,并将该命令信号转发到驱动器模型。驱动器模型用于接收该命令信号,并将该命令信号转发到BIOS。BIOS接收该命令信号,并由频率更新模块根据该命令信号更新主机板时钟发生器的频率,以更新CPU的频率;数据存取模块用于将更新后的CPU的频率存储于闪存中,及从闪存中读取CPU当前的频率以显示于用户界面。南桥用于连接BIOS与CPU。CPU用于执行应用程序,以更新CPU频率的功能。The main purpose of the present invention is to provide a system and method for adjusting CPU frequency. The system adopts a layered architecture, which includes an application layer, a driver layer, a hardware abstraction layer and a hardware platform, and the hardware abstraction layer provides the function of adjusting CPU frequency. The application layer includes a user interface and a dynamic link library; the driver layer includes a driver model; the hardware abstraction layer includes a Basic Input/Output System (BIOS) and a flash memory, wherein the BIOS includes a frequency update module and a Data access module; the hardware platform includes a south bridge and a central processing unit (Central Processing Unit, CPU). The user interface is used to display the frequency of the CPU, and the user can directly adjust the frequency of the CPU through the user interface, and the user interface outputs a command signal to the dynamic link library according to the user's operation. The dynamic link library is used to receive the command signal output by the user interface, and forward the command signal to the driver model. The driver model is used to receive the command signal and forward the command signal to the BIOS. The BIOS receives the command signal, and updates the frequency of the mainboard clock generator according to the command signal by the frequency update module to update the frequency of the CPU; the data access module is used to store the frequency of the updated CPU in the flash memory, and from The current CPU frequency is read from the flash memory to be displayed on the user interface. The south bridge is used to connect BIOS and CPU. The CPU is used to execute applications to update the CPU frequency function.
本发明采用分层架构,使得开发人员只需遵从标准接口,实现分层开发,以达到快速开发、降低程序技术实现的难度的目的,程序易于维护。BIOS与具体的硬件一起搭配工作,并且由大量的硬件控制功能,所以本发明由BIOS提供调节CPU频率的功能,可以减少驱动层的复杂度,实现对不同型号的BIOS的兼容性。The invention adopts a layered architecture, so that developers only need to comply with the standard interface to realize layered development, so as to achieve the purpose of rapid development, reduce the difficulty of program technical realization, and the program is easy to maintain. BIOS works together with specific hardware, and is controlled by a large number of hardware functions, so the present invention provides the function of adjusting CPU frequency by BIOS, which can reduce the complexity of the driver layer and achieve compatibility with different types of BIOS.
【附图说明】【Description of drawings】
图1是本发明的调节CPU频率之系统的功能模块图。FIG. 1 is a functional block diagram of the system for adjusting CPU frequency of the present invention.
图2是本发明的调节CPU频率之流程图。FIG. 2 is a flow chart of adjusting CPU frequency in the present invention.
【具体实施方式】【Detailed ways】
如图1所示,是本发明的调节CPU频率之系统的功能模块图。该系统采用分层架构,该分层架构包括一应用层、一驱动层、一硬件抽象层及一硬件平台。应用层包括用户界面10及动态链接库11;驱动层包括驱动器模型12;硬件抽象层包括基本输入输出系统(BIOS)13及闪存14,其中BIOS13包括一频率更新模块130及一数据存取模块131;硬件平台包括南桥15及中央处理器(CPU)16。用户界面10用于显示CPU16的频率,用户通过该用户界面10直观地调节CPU16的频率,用户界面10根据用户的操作向动态链接库11输出命令信号。动态链接库11用于接收用户界面10输出的命令信号,并将该命令信号转发到驱动器模型12。驱动器模型12用于接收该命令信号,并将该命令信号转发到BIOS13。频率更新模块130用于更新主机板时钟发生器的频率以更新CPU的频率。数据存取模块131用于将更新后的CPU的频率存储于闪存14中,及从闪存14中读取CPU当前的频率以显示于用户界面10。闪存14用于存储CPU16的频率。南桥15用于连接BIOS13与CPU16。CPU16用于执行应用程序以更新CPU频率的功能。As shown in FIG. 1 , it is a functional block diagram of the system for adjusting CPU frequency of the present invention. The system adopts a layered architecture, and the layered architecture includes an application layer, a driver layer, a hardware abstraction layer and a hardware platform. The application layer includes a
如图2所示,是本发明的调节CPU频率之流程图。当调节CPU16频率时,通过用户界面10调节CPU16的频率(步骤20)。用户界面10响应该操作生成一调节CPU16频率的命令信号,并将该命令信号输出到动态链接库11(步骤21)。动态链接库11接收该命令信号并将该命令信号转发到驱动器模型12(步骤22)。驱动器模型12接收该命令信号并将该命令信号转发到BIOS13(步骤23)。BIOS13接收该命令信号(步骤24)。然后BIOS13鉴别用于更新的频率值是否有效用,其中鉴别的内容包括该频率值是否在设定频率的值域内,该设定频率是CPU16正常运行所需的最低与最高频率(步骤25)。如果用于更新的频率值无效,程序结束;如果该用于更新的频率值有效,BIOS13就根据该命令信号调节主机板时钟发生器的频率以调节CPU16的频率(步骤26)。接着BIOS13读取CPU16调节后的频率(步骤27)。然后通过驱动器模型12及动态链接库11将CPU16调节后的频率发送到用户界面10(步骤28)。最后将CPU16调节后的频率显示于用户界面10(步骤29)。As shown in FIG. 2 , it is a flow chart of adjusting CPU frequency in the present invention. When adjusting the frequency of the
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100266020A CN100437474C (en) | 2004-03-16 | 2004-03-16 | System and method for adjusting CPU frequency |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100266020A CN100437474C (en) | 2004-03-16 | 2004-03-16 | System and method for adjusting CPU frequency |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1670691A true CN1670691A (en) | 2005-09-21 |
| CN100437474C CN100437474C (en) | 2008-11-26 |
Family
ID=35041965
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100266020A Expired - Fee Related CN100437474C (en) | 2004-03-16 | 2004-03-16 | System and method for adjusting CPU frequency |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100437474C (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100349098C (en) * | 2005-11-28 | 2007-11-14 | 北京中星微电子有限公司 | Task-based dynamic CPU working frequency regulating method and system |
| CN100543634C (en) * | 2005-12-30 | 2009-09-23 | 鸿富锦精密工业(深圳)有限公司 | Over-frequency control circuit |
| CN102830785A (en) * | 2011-06-17 | 2012-12-19 | 上海果壳电子有限公司 | Quick response system for equipment end input interaction and implementation method thereof |
| US8380968B2 (en) | 2009-02-27 | 2013-02-19 | Asustek Computer Inc. | Overclocking control device and overclocking control method |
| CN101819531B (en) * | 2009-02-27 | 2013-05-22 | 华硕电脑股份有限公司 | Overfrequency control device and overfrequency control method |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1459692A (en) * | 2002-05-21 | 2003-12-03 | 联想(北京)有限公司 | Method of CPU frequency controlling based on the insertion system of computer platform |
| DE20302484U1 (en) * | 2003-01-23 | 2003-09-04 | Elitegroup Computer Systems Co., Ltd., Taipeh/T'ai-pei | Control panel for setting the operating frequency of a computer and displaying system information |
-
2004
- 2004-03-16 CN CNB2004100266020A patent/CN100437474C/en not_active Expired - Fee Related
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100349098C (en) * | 2005-11-28 | 2007-11-14 | 北京中星微电子有限公司 | Task-based dynamic CPU working frequency regulating method and system |
| CN100543634C (en) * | 2005-12-30 | 2009-09-23 | 鸿富锦精密工业(深圳)有限公司 | Over-frequency control circuit |
| US8380968B2 (en) | 2009-02-27 | 2013-02-19 | Asustek Computer Inc. | Overclocking control device and overclocking control method |
| CN101819531B (en) * | 2009-02-27 | 2013-05-22 | 华硕电脑股份有限公司 | Overfrequency control device and overfrequency control method |
| CN102830785A (en) * | 2011-06-17 | 2012-12-19 | 上海果壳电子有限公司 | Quick response system for equipment end input interaction and implementation method thereof |
| CN102830785B (en) * | 2011-06-17 | 2016-11-09 | 上海掌门科技有限公司 | Rapid response system and implementation method for device-side input interaction |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100437474C (en) | 2008-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1276329C (en) | Computer, computer system and their economizing control method | |
| CN102789304B (en) | Power management method and related device | |
| US7610497B2 (en) | Power management system with a bridge logic having analyzers for monitoring data quantity to modify operating clock and voltage of the processor and main memory | |
| US6631474B1 (en) | System to coordinate switching between first and second processors and to coordinate cache coherency between first and second processors during switching | |
| CN106155265B (en) | Power efficient processor architecture | |
| CN100501642C (en) | Method and apparatus for dynamic DLL powerdown and memory self-refresh | |
| CN112131175B (en) | A SoC chip, power consumption control method and readable storage medium | |
| KR101471303B1 (en) | Device and method of power management for graphic processing unit | |
| CN100547520C (en) | Computer system and power management method thereof | |
| CN102749985B (en) | Method and device for dynamically adjusting bus clock | |
| KR20090040410A (en) | Devices, software, and methods with multiple graphics subsystems and power saving modes | |
| US20030163742A1 (en) | Power conservation techniques for a digital computer | |
| CN101251834B (en) | Main bus parameter adjustment method, computer system | |
| WO2007005815A1 (en) | Dynamic bus parking | |
| TW594466B (en) | Power management method for microprocessor | |
| CN100437474C (en) | System and method for adjusting CPU frequency | |
| TW200532561A (en) | A system and method for adjusting the CPU frequency | |
| US7886177B2 (en) | Method and apparatus of collecting timer ticks | |
| CN1619467A (en) | Computer system and power management state switching method | |
| CN1920749A (en) | Electricity-saving electronic device and electricity-saving method thereof | |
| CN1280688C (en) | Power management system for computer systems | |
| CN115826730B (en) | A method for low-power automatic voltage regulation of chips | |
| JP2009070389A (en) | Controller for processing equipment | |
| CN115061561A (en) | Power saving method, device and system for equipment and storage medium | |
| KR20050085590A (en) | An apparatus and method for address bus power control |
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 | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081126 Termination date: 20140316 |