A CPU power consumption adjusting method, system, electronic device, and storage medium

CN116185163BActive Publication Date: 2026-10-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310172269.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2026-10-23
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

[0003]在现有技术中,一般会通过修改BIOS(Basic Input Output System,基本输入输出系统)SETUP(设置)菜单来实现CPU性能参数的调节,比如CPU的基频、倍频或CPU电压等参数,通过调节CPU的性能参数来对计算机的性能进行调整,从而对CPU功耗进行调节,不仅耗时而且操作复杂,难以适应普通用户需求

Benefits of technology

[0036]本发明实施例包括以下优点:当所述操作系统接收到修改CPU功耗的修改指令时,所述操作系统根据所述修改指令确定所述CPU功耗的修改值,并将所述修改值发送至所述嵌入式控制器,在所述嵌入式控制器接收到所述修改值之后,所述嵌入式控制器将所述修改值发送至所述基本输入输出系统;所述基本输入输出系统根据所述修改值,对所述CPU功耗进行调节。在本发明实施例中,可以在需要调节CPU功耗时,通过嵌入式控制器将修改值发送给基本输入输出系统,基本输入输出系统可以根据修改值对CPU功耗进行调节,以解决需要调节CPU的性能参数才能对CPU功耗进行调节,不仅耗时而且操作复杂,难以适应普通用户需求的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185163B_ABST
    Figure CN116185163B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a CPU power consumption adjusting method, system, electronic equipment and storage medium, the method comprises the following steps: when the operating system receives a modification instruction for modifying the CPU power consumption, the operating system determines a modification value of the CPU power consumption according to the modification instruction, and sends the modification value to an embedded controller; after the embedded controller receives the modification value, the embedded controller sends the modification value to a basic input / output system; and the basic input / output system adjusts the CPU power consumption according to the modification value. In the embodiment of the present application, when it is necessary to adjust the CPU power consumption, the embedded controller can send the modification value to the basic input / output system, and the basic input / output system can adjust the CPU power consumption according to the modification value, so that the problem that the performance parameter of the CPU needs to be adjusted to adjust the CPU power consumption, which is time-consuming and complicated to operate, and is difficult to meet the needs of ordinary users, can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CPU power regulation technology, and in particular to a CPU power consumption regulation method, a CPU power consumption regulation system, an electronic device, and a storage medium. Background Technology

[0002] The rapid development of artificial intelligence has led to an increasing demand for computing power in the industry. For applications such as deep learning, the improvement in computing power is due to the application of GPUs (Graphics Processing Units) and NNPs (Neural Network Processors). Currently, in different application scenarios, it is necessary to adjust the performance of the computer by adjusting the CPU power consumption to meet the needs of the computer in different application scenarios.

[0003] In existing technologies, CPU performance parameters, such as the CPU's base frequency, multiplier, or CPU voltage, are typically adjusted by modifying the BIOS (Basic Input Output System) SETUP menu. Adjusting these parameters helps regulate computer performance and power consumption, which is time-consuming, complex, and difficult to meet the needs of ordinary users. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a CPU power consumption regulation method, a CPU power consumption regulation system, an electronic device, and a storage medium that overcome or at least partially solve the above problems.

[0005] To address the aforementioned problems, this invention discloses a CPU power consumption adjustment method applied to a computer, wherein the computer is equipped with an embedded controller, an operating system, and a basic input / output system. The method includes:

[0006] When the operating system receives a modification instruction to modify the CPU power consumption, the operating system determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system.

[0007] The basic input / output system adjusts the CPU power consumption based on the modified value.

[0008] Optionally, the method further includes:

[0009] If the embedded controller does not receive the modified value, the embedded controller operates according to a first preset default value of the CPU power consumption, and the basic input / output system operates according to a second preset default value of the CPU power consumption.

[0010] Optionally, sending the modified value to the basic input / output system via the embedded controller includes:

[0011] The embedded controller encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value;

[0012] The encrypted modified value is sent to the basic input / output system.

[0013] Optionally, the basic input / output system is set with a second preset default value for the CPU power consumption. After sending the encrypted modified value to the basic input / output system, the method further includes:

[0014] The basic input / output system receives the encrypted modified value sent by the embedded controller and determines whether the encrypted modified value is consistent with the second preset default value;

[0015] If the encrypted modified value is consistent with the second preset default value, then the basic input / output system operates according to the second preset default value;

[0016] The basic input / output system adjusts the CPU power consumption according to the modified value, including:

[0017] If the encrypted modified value is inconsistent with the second preset default value, the basic input / output system adjusts the CPU power consumption according to the modified value.

[0018] Optionally, the method further includes:

[0019] The basic input / output system determines whether the CPU power consumption has been successfully adjusted.

[0020] If the CPU power consumption adjustment is successful, then the system will run according to the adjusted CPU power consumption.

[0021] If the CPU power consumption adjustment is unsuccessful, the process returns to the step whereby the operating system determines the modified value of the CPU power consumption based on the modification instruction received by the operating system.

[0022] Optionally, the modification instruction is used to instruct the CPU power consumption to be increased or decreased.

[0023] Optionally, the basic input / output system includes a special function library, and the basic input / output system adjusts the CPU power consumption according to the modified value, including:

[0024] The CPU power consumption is adjusted to the modified value using functions in the special function library.

[0025] Accordingly, this invention also discloses a CPU power consumption regulation system applied to a computer, wherein the computer is equipped with an embedded controller, an operating system, and a basic input / output system.

[0026] When the operating system receives a modification instruction to modify the CPU power consumption, it determines the modification value of the CPU power consumption according to the modification instruction, and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system.

[0027] The basic input / output system is used to adjust the CPU power consumption based on the processed modified value.

[0028] Optionally, when the embedded controller does not receive the modified value, it operates according to a first preset default value of the CPU power consumption, and the basic input / output system operates according to a second preset default value of the CPU power consumption.

[0029] Optionally, the embedded controller encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value; and sends the encrypted modified value to the basic input / output system.

[0030] Optionally, the basic input / output system receives the encrypted modified value sent by the embedded controller and determines whether the encrypted modified value is consistent with the second preset default value; if the encrypted modified value is consistent with the second preset default value, the basic input / output system operates according to the second preset default value; if the encrypted modified value is inconsistent with the second preset default value, the basic input / output system adjusts the CPU power consumption according to the modified value.

[0031] Optionally, the basic input / output system determines whether the CPU power consumption has been successfully adjusted; if the CPU power consumption has been successfully adjusted, it runs according to the adjusted CPU power consumption; if the CPU power consumption has not been successfully adjusted, it returns to the step of determining the modified value of the CPU power consumption according to the modification instruction when the operating system receives the modification instruction to modify the CPU power consumption.

[0032] Optionally, the modification instruction is used to instruct the CPU power consumption to be increased or decreased.

[0033] Optionally, the basic input / output system includes a special function library, which uses functions in the special function library to adjust the CPU power consumption to the modified value.

[0034] Accordingly, this invention discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various steps of the CPU power consumption adjustment method embodiments described above.

[0035] Accordingly, this invention discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the various steps of the CPU power consumption adjustment method embodiments described above.

[0036] The embodiments of the present invention have the following advantages: When the operating system receives a modification instruction to modify CPU power consumption, the operating system determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller. After receiving the modification value, the embedded controller sends the modification value to the basic input / output system (PIS). The PIS adjusts the CPU power consumption according to the modification value. In the embodiments of the present invention, when CPU power consumption needs to be adjusted, the embedded controller sends the modification value to the PIS, and the PIS adjusts the CPU power consumption according to the modification value. This solves the problem that adjusting CPU performance parameters is required to adjust CPU power consumption, which is not only time-consuming and complex, but also difficult to meet the needs of ordinary users. Attached Figure Description

[0037] Figure 1 This is a flowchart of the steps of a CPU power consumption adjustment method provided in an embodiment of the present invention;

[0038] Figure 2 This is a flowchart of another CPU power consumption adjustment method provided in an embodiment of the present invention;

[0039] Figure 3 This is a flowchart of a CPU power consumption adjustment method provided in an embodiment of the present invention;

[0040] Figure 4 This is a structural block diagram of a CPU power consumption adjustment device provided in an embodiment of the present invention;

[0041] Figure 5 This is an electronic device provided in an embodiment of the present invention;

[0042] Figure 6 This is a computer-readable storage medium provided in the embodiments of the present invention. Detailed Implementation

[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] Reference Figure 1 This diagram illustrates a flowchart of a CPU power consumption adjustment method according to an embodiment of the present invention. The method is applied to a computer, which is equipped with an embedded controller, an operating system, and a basic input / output system. Specifically, the method may include the following steps:

[0045] Step 101: When the operating system receives a modification instruction to modify the CPU power consumption, the operating system determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system.

[0046] The Central Processing Unit (CPU) is one of the main components of an electronic computer, a core part of the computer. Its main functions are interpreting computer instructions and processing data in computer software. The CPU is the core component responsible for reading, decoding, and executing instructions. The CPU mainly consists of two parts: the control unit and the arithmetic logic unit (ALU), including high-speed cache memory and the data and control buses that connect them. The three core components of an electronic computer are the CPU, internal memory, and input / output devices. The CPU's main functions are processing instructions, executing operations, controlling timing, and processing data.

[0047] An embedded controller (EC) is an embedded main control chip connected to the CPU's LPC (Low Pin Count) bus. The purpose of an embedded controller is to help a computer (mainly a laptop) manage low-speed peripherals, such as touchpads and matrix keyboards. Most importantly, the computer uses the EC for power management. Power management is particularly crucial in laptops, as it not only controls power on / off but also hibernation and wake-up. The EC acts like an invisible butler for the computer, playing a vital role in its normal operation.

[0048] The Basic Input Output System (BIOS), short for ROM-BIOS, is a set of programs embedded in the computer that provide the lowest-level and most direct hardware control. The BIOS setup program is stored in the BIOS chip and can only be configured during startup. The BIOS acts as a bridge between software programs and hardware devices; simply put, it's a "converter" or interface between hardware and software (although it is itself a program). It handles immediate hardware requests and executes software commands to control the hardware. Its main function is to provide the lowest-level, most direct hardware settings and control for the computer.

[0049] Hotkeys, also known as shortcut keys, are combinations of one or more keys on the keyboard that allow you to quickly access a specific function or perform an operation. Many hotkeys are used in conjunction with keys such as Ctrl, Shift, Alt, Fn, the Windows key on Windows, and the Meta key on Macs. Hotkeys can replace the mouse for various tasks, including opening, closing, and navigating the Start menu, desktop, menus, dialog boxes, and web pages. They are also used for functions such as selecting startup items.

[0050] Users can send commands to modify CPU power consumption using hotkeys. The operating system can receive these commands, determine the required CPU power consumption value, and send the modified value to the embedded controller. Once the embedded controller receives the modified value, it can send it to the basic input / output system.

[0051] In this embodiment of the invention, before the operating system receives the modification instruction to modify CPU power consumption, the method further includes:

[0052] When the computer is started, the embedded controller operates according to a first preset default value and the input / output system operates according to a second preset default value; the first preset default value and the second preset default value are preset default operating values ​​for the CPU power consumption.

[0053] The embedded controller has a first preset default value for CPU power consumption, and the basic input / output system has a second preset default value for CPU power consumption. When the computer is started by the user, the embedded controller can operate according to the first preset default value, and the input / output system can operate according to the second preset default value.

[0054] In this embodiment of the invention, after the embedded controller operates according to a first preset default value and the input / output system operates according to a second preset default value, it further includes:

[0055] Obtain the first actual operating value of the embedded controller and the second actual operating value of the input / output system during operation;

[0056] Determine whether the first actual operating value is consistent with the first preset default value and whether the second actual operating value is consistent with the second preset default value;

[0057] If the first actual operating value is consistent with the first preset default value, and the second actual operating value is consistent with the second preset default value, then the embedded controller continues to operate according to the first preset default value, and the input / output system continues to operate according to the second preset default value.

[0058] After the embedded controller operates according to the first preset default value and the input / output system operates according to the second preset default value...

[0059] The input / output system can obtain the first actual operating value of the CPU power consumption of the embedded controller and the second actual operating value of its own CPU power consumption. It can also compare the first preset default value with the first actual operating value and the second preset default value with the second actual operating value. If the first actual operating value is consistent with the first preset default value and the second actual operating value is consistent with the second preset default value, the embedded controller can continue to operate according to the first preset default value and the input / output system can continue to operate according to the second preset default value. If the first actual operating value is inconsistent with the first preset default value and / or the second actual operating value is inconsistent with the second preset default value, the embedded controller can operate according to the first actual operating value and the input / output system can operate according to the second actual operating value.

[0060] Step 102: The basic input / output system adjusts the CPU power consumption according to the modified value.

[0061] The basic input / output system can receive modified values ​​sent by the embedded controller, and then adjust the CPU power consumption according to the modified values, adjusting the CPU power consumption to the modified values.

[0062] The Basic Input / Output System (PIS) can include a startup module and a modification module. When the computer is started, the startup module of the PIS can be triggered. The startup module can be a module written in C language. The startup module enables the embedded controller and the startup module to run according to preset default values. The startup module can also obtain the actual running values ​​of the embedded controller and itself, compare the actual running values ​​with the preset default values, and thus determine the running values ​​of the startup module and the embedded controller. After the startup module has finished running, the operating system can receive a modification instruction to modify the CPU power consumption. The operating system sends the modification instruction to the embedded controller, which can then activate the modification module of the PIS. The modification module can adjust the CPU power consumption according to the modified value.

[0063] When the operating system receives a modification instruction to adjust CPU power consumption, it determines the modification value based on the instruction and sends it to the embedded controller. Upon receiving the modification value, the embedded controller sends it to the basic input / output system (PIS). The PIS then adjusts the CPU power consumption according to the modification value. In this embodiment of the invention, when CPU power consumption needs adjustment, the embedded controller sends the modification value to the PIS, which then adjusts the CPU power consumption accordingly. This solves the problem that adjusting CPU performance parameters is required to regulate CPU power consumption, which is time-consuming, complex, and unsuitable for the needs of ordinary users.

[0064] Reference Figure 2 This diagram illustrates a flowchart of another CPU power consumption adjustment method provided by an embodiment of the present invention, applied to a computer. The computer is equipped with an embedded controller, an operating system, and a basic input / output system. The method may specifically include the following steps:

[0065] Step 201: When the operating system receives a modification instruction to modify the CPU power consumption, the operating system determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system.

[0066] Users can send commands to modify CPU power consumption using hotkeys. The operating system can receive these commands, determine the required CPU power consumption value, and send the modified value to the embedded controller. Once the embedded controller receives the modified value, it can send it to the basic input / output system.

[0067] Before receiving user modification instructions, when the computer is started by the user, the embedded controller can operate according to a first preset default value, and the input / output system can operate according to a second preset default value. The input / output system can also obtain the first actual operating value of the embedded controller's CPU power consumption and its own second actual operating value of CPU power consumption. It can also compare the first preset default value with the first actual operating value and the second preset default value with the second actual operating value. If the first actual operating value is consistent with the first preset default value and the second actual operating value is consistent with the second preset default value, the embedded controller can continue to operate according to the first preset default value, and the input / output system can continue to operate according to the second preset default value. If the first actual operating value is inconsistent with the first preset default value and / or the second actual operating value is inconsistent with the second preset default value, the embedded controller can operate according to the first actual operating value, and the input / output system can operate according to the second actual value.

[0068] In this embodiment of the invention, the modification instruction is used to instruct the CPU power consumption to be increased or decreased.

[0069] The operating system can receive modification commands sent by the user and determine the modified value of the CPU power consumption required by the computer based on the modification commands. The modification commands can be to indicate that the CPU power consumption should be increased or decreased.

[0070] In this embodiment of the invention, if the embedded controller does not receive the modified value, the embedded controller operates according to a first preset default value of the CPU power consumption, and the basic input / output system operates according to a second preset default value of the CPU power consumption.

[0071] The embedded controller has a pre-set first default value for CPU power consumption, and the basic input / output system has a pre-set second default value for CPU power consumption. The embedded controller can determine whether it has received a modified value from the operating system. If the embedded controller has received a modified value from the operating system, it can send it to the basic input / output system. If the embedded controller has not received a modified value from the operating system, it can operate according to the pre-set first default value for CPU power consumption, and the basic input / output system can operate according to the pre-set second default value for CPU power consumption.

[0072] In this embodiment of the invention, sending the modified value to the basic input / output system via the embedded controller includes:

[0073] The embedded controller encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value;

[0074] The encrypted modified value is sent to the basic input / output system.

[0075] An encryption algorithm can be set in the embedded controller. After the embedded controller receives the modified value, it can encrypt the modified value using the encryption algorithm to obtain the encrypted modified value. The encrypted modified value can also be sent to the basic input / output system.

[0076] In this embodiment of the invention, the basic input / output system is set with a second preset default value for the CPU power consumption. After sending the encrypted modified value to the basic input / output system, the method further includes:

[0077] The basic input / output system receives the encrypted modified value sent by the embedded controller and determines whether the encrypted modified value is consistent with the second preset default value;

[0078] If the encrypted modified value is consistent with the second preset default value, then the basic input / output system operates according to the second preset default value;

[0079] The basic input / output system adjusts the CPU power consumption according to the modified value, including:

[0080] If the encrypted modified value is inconsistent with the second preset default value, the basic input / output system adjusts the CPU power consumption according to the modified value.

[0081] After the basic input / output system receives the encrypted modified value sent by the embedded controller, the basic input / output system can determine whether the encrypted modified value is consistent with the second preset default value. If the encrypted modified value is consistent with the second preset default value, it means that there is no need to adjust the CPU power consumption, and the basic input / output system can run the system normally according to the second preset default value. If the encrypted modified value is inconsistent with the second preset default value, the step of "the basic input / output system adjusts the CPU power consumption according to the modified value" can be performed.

[0082] Step 202: The basic input / output system adjusts the CPU power consumption according to the modified value.

[0083] The basic input / output system can receive modified values ​​sent by the embedded controller, and then adjust the CPU power consumption according to the modified values, adjusting the CPU power consumption to the modified values.

[0084] In this embodiment of the invention, the basic input / output system includes a special function library, and the basic input / output system adjusts the CPU power consumption according to the modified value, including:

[0085] The CPU power consumption is adjusted to the modified value using functions in the special function library.

[0086] The basic input / output system may include a special function library, which may include at least one function. After the basic input / output system receives a modified value, it may call the special function library and use the function in the special function library to adjust the CPU power consumption to the modified value.

[0087] Step 203: The basic input / output system determines whether the CPU power consumption has been successfully adjusted; if the CPU power consumption has been successfully adjusted, it runs according to the adjusted CPU power consumption; if the CPU power consumption has not been successfully adjusted, it returns to the step of determining the modified value of the CPU power consumption according to the modification instruction when the operating system receives the modification instruction to modify the CPU power consumption.

[0088] After the basic input / output system has adjusted the CPU power consumption, it can be determined whether the CPU power consumption adjustment was successful. If the CPU power consumption adjustment was successful, the basic input / output system can run according to the adjusted CPU power consumption. If the CPU power consumption adjustment was unsuccessful, it can return to step 201 and readjust the CPU power consumption according to the modification instructions.

[0089] When the operating system receives a modification instruction to adjust CPU power consumption, it determines the modification value based on the instruction and sends it to the embedded controller. Upon receiving the modification value, the embedded controller sends it to the basic input / output system (PIS). The PIS then adjusts the CPU power consumption according to the modification value. In this embodiment of the invention, when CPU power consumption needs adjustment, the embedded controller sends the modification value to the PIS, which then adjusts the CPU power consumption accordingly. This solves the problem that adjusting CPU performance parameters is required to regulate CPU power consumption, which is time-consuming, complex, and unsuitable for the needs of ordinary users.

[0090] To enable those skilled in the art to better understand the embodiments of the present invention, an example is provided below to illustrate the embodiments of the present invention: Refer to Figure 3 The flowchart of a CPU power consumption adjustment method provided by an embodiment of the present invention is shown;

[0091] First, the operating system receives the instruction to modify the CPU power consumption, determines the modified value of the CPU power consumption, and sends the modified value to the embedded controller.

[0092] Secondly, the embedded controller can determine whether it has received a modified value. If the embedded controller has not received a modified value, it can operate according to the first preset default value of the CPU power consumption, and the basic input / output system can operate according to the second preset default value of the CPU power consumption.

[0093] If the embedded controller receives a modified value, it can encrypt the modified value using an encryption algorithm and then send the encrypted modified value to the basic input / output system. The basic input / output system can determine whether the modified value corresponding to the encrypted value is consistent with the second preset default value. If they are consistent, the basic input / output system can operate according to the second preset default value. If they are inconsistent, the basic input / output system can adjust the CPU power consumption to the modified value according to the function in the special function library. It can also determine whether the CPU power consumption adjustment is successful. If it is, the basic input / output system can operate according to the modified CPU power consumption. If not, it can return to the step of "the operating system receives the modification instruction to modify the CPU power consumption".

[0094] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0095] Reference Figure 4 This diagram illustrates a structural block diagram of a CPU power consumption adjustment system according to an embodiment of the present invention, applied to a computer. The computer is equipped with an embedded controller 303, an operating system 302, and a basic input / output system 301.

[0096] When the operating system 302 receives a modification instruction to modify the CPU power consumption, it determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller 303. After the embedded controller 303 receives the modification value, it sends the modification value to the basic input / output system 301.

[0097] The basic input / output system 301 is used to adjust the CPU power consumption according to the processed modified value.

[0098] Optionally, when the embedded controller 303 does not receive the modified value, it operates according to a first preset default value of the CPU power consumption, and the basic input / output system 301 operates according to a second preset default value of the CPU power consumption.

[0099] Optionally, the embedded controller 303 encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value; and sends the encrypted modified value to the basic input / output system 301.

[0100] Optionally, the basic input / output system 301 receives the encrypted modified value sent by the embedded controller 303 and determines whether the encrypted modified value is consistent with the second preset default value; if the encrypted modified value is consistent with the second preset default value, the basic input / output system 301 operates according to the second preset default value; if the encrypted modified value is inconsistent with the second preset default value, the basic input / output system 301 adjusts the CPU power consumption according to the modified value.

[0101] Optionally, the basic input / output system 301 determines whether the CPU power consumption has been successfully adjusted; if the CPU power consumption has been successfully adjusted, it runs according to the adjusted CPU power consumption; if the CPU power consumption has not been successfully adjusted, it returns to the step of determining the modified value of the CPU power consumption according to the modification instruction when the operating system 302 receives the modification instruction to modify the CPU power consumption.

[0102] Optionally, the modification instruction is used to instruct the CPU power consumption to be increased or decreased.

[0103] Optionally, the basic input / output system 301 includes a special function library, and the basic input / output system 301 adjusts the CPU power consumption to the modified value through functions in the special function library.

[0104] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0105] This invention also provides an electronic device, comprising:

[0106] Reference Figure 5 This illustration shows an electronic device 50 provided by an embodiment of the present invention, comprising:

[0107] It includes a processor 501, a memory 502, and a computer program 5021 stored in the memory and capable of running on the processor. When the computer program 5021 is executed by the processor, it implements the various processes of the CPU power consumption adjustment method embodiment described above and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0108] Reference Figure 6 This illustration shows a computer-readable storage medium 60 provided by an embodiment of the present invention. The computer-readable storage medium stores a computer program 601. When the computer program 601 is executed by a processor, it implements the various processes of the above-described CPU power consumption adjustment method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0109] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0110] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0111] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0112] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0114] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0115] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0116] The present invention has provided a detailed description of a CPU power consumption adjustment method, system, electronic device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for adjusting CPU power consumption, characterized in that, Applied to a computer, wherein the computer is equipped with an embedded controller, an operating system, and a basic input / output system, the method includes: When the operating system receives a modification instruction to modify the CPU power consumption, the operating system determines the modification value of the CPU power consumption according to the modification instruction and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system. The basic input / output system adjusts the CPU power consumption according to the modified value; The method further includes: If the embedded controller does not receive the modified value, the embedded controller operates according to a first preset default value of the CPU power consumption, and the basic input / output system operates according to a second preset default value of the CPU power consumption. The embedded controller sends the modified value to the basic input / output system in the following ways: The embedded controller encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value; The encrypted modified value is sent to the basic input / output system; Wherein, the basic input / output system is set with a second preset default value for the CPU power consumption, and after sending the encrypted modified value to the basic input / output system, the process further includes: The basic input / output system receives the encrypted modified value sent by the embedded controller and determines whether the encrypted modified value is consistent with the second preset default value; If the encrypted modified value is consistent with the second preset default value, then the basic input / output system operates according to the second preset default value; The basic input / output system adjusts the CPU power consumption according to the modified value, including: If the encrypted modified value is inconsistent with the second preset default value, the basic input / output system adjusts the CPU power consumption according to the modified value.

2. The method according to claim 1, characterized in that, The method further includes: The basic input / output system determines whether the CPU power consumption has been successfully adjusted. If the CPU power consumption adjustment is successful, then the system will run according to the adjusted CPU power consumption. If the CPU power consumption adjustment is unsuccessful, the process returns to the step whereby the operating system determines the modified value of the CPU power consumption based on the modification instruction received by the operating system.

3. The method according to claim 1, characterized in that, The modification command is used to instruct whether to increase or decrease the CPU power consumption.

4. The method according to claim 1, characterized in that, The basic input / output system includes a special function library, and the basic input / output system adjusts the CPU power consumption according to the modified value, including: The CPU power consumption is adjusted to the modified value using functions in the special function library.

5. A CPU power consumption regulation system, characterized in that, It is applied to a computer, which is equipped with an embedded controller, an operating system, and a basic input / output system. When the operating system receives a modification instruction to modify the CPU power consumption, it determines the modification value of the CPU power consumption according to the modification instruction, and sends the modification value to the embedded controller. After the embedded controller receives the modification value, the embedded controller sends the modification value to the basic input / output system. The basic input / output system is used to adjust the CPU power consumption according to the modified value; The system is also used for: If the embedded controller does not receive the modified value, the embedded controller operates according to a first preset default value of the CPU power consumption, and the basic input / output system operates according to a second preset default value of the CPU power consumption. The embedded controller sends the modified value to the basic input / output system for: The embedded controller encrypts the modified value according to the encryption algorithm to obtain the encrypted modified value; The encrypted modified value is sent to the basic input / output system; The basic input / output system is configured with a second preset default value for the CPU power consumption. After sending the encrypted modified value to the basic input / output system, the process is further used for: The basic input / output system receives the encrypted modified value sent by the embedded controller and determines whether the encrypted modified value is consistent with the second preset default value; If the encrypted modified value is consistent with the second preset default value, then the basic input / output system operates according to the second preset default value; The basic input / output system adjusts the CPU power consumption according to the modified value, including: If the encrypted modified value is inconsistent with the second preset default value, the basic input / output system adjusts the CPU power consumption according to the modified value.

6. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the CPU power consumption adjustment method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the CPU power consumption adjustment method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Systems And Methods For Waking An Information Handling System From A Wireless Peripheral Device

    US20210034132A1

  • Method of remotely modifying basic input / output system configuration setting

    US20220357960A1