Dynamic voltage frequency adjustment method and device, equipment and storage medium

By performing state monitoring and load sampling on the target CPU, generating and sending frequency modulation strategies, the problem of untimely and inaccurate frequency modulation processing of the CPU link is solved, the real-time and accuracy of frequency modulation are improved, and power consumption is reduced.

CN119829265APending Publication Date: 2025-04-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311325309.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the prior art, the frequency modulation processing of the CPU link frequency modulator is not timely and inaccurate, resulting in the failure to synchronize the load changes in time, affecting power consumption and performance.

Method used

By monitoring the target CPU status, obtaining the target load and determining the target link frequency, generating the target frequency modulation strategy and sending it to the link regulator, the frequency modulation processing of the target link is realized.

Benefits of technology

It improves the real-time load sampling and the accuracy of frequency regulation, reduces the waste of power consumption, and ensures the timeliness and accuracy of CPU link regulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829265A_ABST
    Figure CN119829265A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic voltage frequency adjustment method and device, electronic equipment and a storage medium, and the method comprises the steps: carrying out the state monitoring of a target CPU, and obtaining a target state of the target CPU; obtaining a target load of the target CPU, and obtaining a target link frequency of the target CPU according to the target load; and generating a target frequency modulation strategy according to the target state and the target link frequency, and sending the target frequency modulation strategy to a link regulator, so that the link regulator performs frequency modulation processing on a target link corresponding to the target CPU. The CPU scheduling module and the CPU link regulator are integrated in the frequency modulation process, the real-time performance of load sampling is improved through information sharing between the CPU scheduling module and the CPU link regulator, meanwhile, the frequency modulation accuracy is improved by taking the state of the CPU as the basis of frequency modulation, and the waste of power consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of CPU dynamic frequency modulation, and in particular to a dynamic voltage frequency adjustment method, device, electronic device and storage medium. Background Art

[0002] At present, the frequency modulation method of the CPU link frequency modulator of each platform is to sample the load through an independent module, and the decision-making working frequency is independent of the CPU scheduling and frequency modulation module. As a result, when the CPU is scheduled and frequency modulated, the changes in load changes are not synchronized with the sampling decision module of the CPU link frequency modulator in a timely manner, and the CPU link frequency modulator is not notified in time to adjust the decision frequency in a synchronous manner, which makes the link adjustment of the CPU link frequency modulator untimely, thereby affecting the power consumption and performance during actual use. For example, when the load suddenly increases, there will be a freeze, and when the load suddenly decreases, there will be excess performance and excessive power consumption. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a dynamic voltage frequency adjustment method, device, electronic device and storage medium to solve the technical problems of untimely and inaccurate frequency modulation processing in related technologies.

[0004] In a first aspect, an embodiment of the present application provides a dynamic voltage frequency adjustment method, including:

[0005] Performing status monitoring on a target CPU to obtain a target status of the target CPU;

[0006] Obtaining a target load of a target CPU, and obtaining a target link frequency of the target CPU according to the target load;

[0007] A target frequency modulation strategy is generated according to the target state and the target link frequency, and the target frequency modulation strategy is sent to a link regulator, so that the link regulator performs frequency modulation processing on a target link corresponding to the target CPU.

[0008] In a second aspect, an embodiment of the present application provides a dynamic voltage frequency adjustment device, including:

[0009] A state monitoring module is used to monitor the state of the target CPU and obtain the target state of the target CPU;

[0010] A load sampling module, used to obtain a target load of a target CPU, and obtain a target link frequency of the target CPU according to the target load;

[0011] An interactive frequency modulation module, configured to generate a target frequency modulation strategy according to the target state and the target link frequency, and send the target frequency modulation strategy to a link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-described dynamic voltage and frequency adjustment methods when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above-mentioned dynamic voltage and frequency adjustment methods are implemented.

[0014] The embodiment of the present application provides a dynamic voltage frequency adjustment method, device, electronic device and storage medium. When performing frequency modulation processing, the scheduling module monitors the state of the target CPU to obtain the target state of the target CPU, and also detects and samples the real-time load of the target CPU, and then determines the current corresponding target link frequency according to the sampled target load, and finally obtains the target frequency modulation strategy for frequency modulation processing of the target link according to the target state and the target link frequency, and sends the target frequency modulation strategy to the link regulator, so that the link regulator completes the frequency modulation processing of the target link. In the frequency modulation process, the CPU scheduling module and the CPU link regulator are integrated, and the real-time performance of load sampling is improved through information sharing between the two. At the same time, the CPU state is used as the basis for frequency modulation to improve the accuracy of frequency modulation and reduce power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a flow chart of a dynamic voltage and frequency adjustment method provided in an embodiment of the present application;

[0016] Figure 2 It is a block diagram schematic diagram of dynamic voltage frequency adjustment provided by an embodiment of the present application;

[0017] Figure 3 It is a flow chart of the steps of performing frequency modulation processing provided in an embodiment of the present application;

[0018] Figure 4 It is a block diagram schematic diagram of frequency modulation processing provided by an embodiment of the present application;

[0019] Figure 5 It is a structural schematic diagram of a dynamic voltage and frequency adjustment device provided in an embodiment of the present application;

[0020] Figure 6 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0021] Figure 7 This is another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0024] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0025] In the related art, when the CPU link frequency regulator of each platform performs frequency regulation, it performs frequency regulation by sampling the load through an independent module. Due to the independence between the decision-making working frequency and the CPU scheduling and frequency regulation module, the load change during CPU scheduling and frequency regulation fails to be synchronized with the sampling decision module of the CPU link frequency regulator in a timely manner, and the CPU link frequency regulator is not notified in a timely manner to adjust the decision frequency synchronously, which makes the link adjustment of the CPU link frequency regulator untimely, thus affecting the power consumption and performance during actual use. For example, when the load suddenly increases, there will be a freeze, and when the load suddenly decreases, there will be excess performance and excessive power consumption.

[0026] In order to solve the technical problems existing in the related art, the present application embodiment provides a dynamic voltage frequency adjustment method, see Figure 1 , Figure 1 It is a flow chart of a dynamic voltage and frequency adjustment method provided in an embodiment of the present application, and the method includes steps 101 to 103.

[0027] Step 101, monitor the state of the target CPU to obtain the target state of the target CPU.

[0028] In one embodiment, when the frequency of a CPU link is adjusted, load sampling and monitoring of the CPU status are used as a basis for adjustment to complete the frequency modulation processing of the CPU link, wherein the CPU link includes but is not limited to L3, LLC and DDR.

[0029] Specifically, during the processing, the state of the target CPU is monitored in real time to obtain the target state of the target CPU. Among them, the CPU utilization is mainly divided into user state, system state and idle state, which respectively represent the time when the CPU is in user state execution, the time when the system kernel executes, and the time when the idle system process executes, and the sum of the three is the total time of the CPU. In this application, the use state of the CPU is divided into a dormant state and other states, corresponding to the aforementioned CPU utilization, the dormant state is the idle state, and the other states are the user state and the system state.

[0030] For example, when the CPU is being used, whether it is used by the user to execute tasks or by the system to execute tasks, there will be an increase in load. When it is in an idle state, the load it requires will be smaller, and the dynamic voltage frequency required by the corresponding CPU link under different loads will also be different. Therefore, when adjusting the dynamic voltage frequency of the CPU link, the state of the target CPU is monitored, and the corresponding adjustment strategy is determined according to different states and actual load conditions.

[0031] Step 102, obtaining a target load of a target CPU, and obtaining a target link frequency of the target CPU according to the target load.

[0032] In one embodiment, when the frequency adjustment process is performed on the CPU link, the frequency adjustment process is usually performed based on the CPU load condition. Therefore, in each embodiment, when the frequency adjustment process is performed on the target CPU, the target load of the target CPU is obtained, and the current corresponding target link frequency is determined based on the obtained target load.

[0033] Exemplarily, when the target link frequency is obtained, it means that under the current load of the target CPU, the frequency of the corresponding CPU link needs to be adjusted to the target link frequency, so that the target CPU has better performance and usage effect.

[0034] Furthermore, when obtaining the target link frequency, it is determined according to the corresponding relationship between the load and the link frequency. Therefore, when obtaining the target link frequency, it includes: obtaining the target load of the target CPU, and obtaining the frequency modulation mapping table; querying and matching in the frequency modulation mapping table according to the target load to obtain the target link frequency corresponding to the target load.

[0035] Specifically, the frequencies of the CPU links of different CPUs under different loads can be pre-set, and then inquiries are made based on the actual load of the CPU currently sampled to determine the current corresponding target link frequency.

[0036] Exemplarily, when query matching is performed to obtain the target link frequency, a query is performed according to the target CPU and the target load, and the link frequency that matches the target CPU and the target load at the same time is used as the target link frequency. Due to the differences in the links corresponding to different combinations of CPUs and loads, when query matching is performed, it includes: according to the target identifier of the target CPU, querying in the frequency modulation mapping table to obtain an intermediate frequency set, wherein the corresponding relationship between the load and the frequency is recorded in the intermediate frequency set; querying in the intermediate frequency set according to the target load to obtain the target link frequency corresponding to the target load.

[0037] That is, when performing query matching, the target CPU and target load can be used as two query conditions, and then queries are performed in sequence according to the conditions. First, the target CPU is used as a condition for query, and then the target load is used as a query condition for query based on the query results to obtain the target link frequency.

[0038] It should be noted that for a terminal, it contains a certain number of CPUs. When performing frequency modulation processing, the entire usage demand is obtained based on the demand of each CPU, and then the CPU link regulator performs frequency modulation processing on the CPU link based on the entire usage demand.

[0039] Step 103: Generate a target frequency modulation strategy according to the target state and the target link frequency, and send the target frequency modulation strategy to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

[0040] In one embodiment, after the target state and the target link frequency are obtained, a corresponding target frequency modulation strategy is generated, and then the obtained target frequency modulation strategy is sent to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

[0041] For example, a block diagram of dynamic voltage-frequency adjustment may be as follows: Figure 2 As shown, the CPU scheduling module monitors the CPU in real time, obtains the CPU load and status, and then obtains the CPU link demand based on the CPU load and status, and then informs the CPU link regulator so that the CPU link regulator performs frequency modulation processing on the corresponding CPU link according to the link demand.

[0042] exist Figure 2In the block diagram shown, the CPU scheduling module calculates the CPU load to obtain the CPU load, and also monitors the CPU state in real time to determine whether it is in a dormant state (idle state). The CPU link regulator does not need to calculate the CPU load at this time. By embedding a notification module in the CPU scheduling module, the real-time monitored data is sent to the CPU link regulator to avoid repeated load calculations by the CPU link regulator.

[0043] Further, when performing subsequent processing according to the target state and the target link frequency, reference may be made to Figure 3 , Figure 3 It is a flowchart of the steps of performing frequency modulation processing provided in an embodiment of the present application, wherein the steps include steps 301 to 303.

[0044] Step 301, determining whether the target state is a dormant state;

[0045] Step 302, when it is determined that the target state is not the sleep state, generating a target frequency modulation strategy according to the target link frequency;

[0046] Step 303: Send the target frequency modulation strategy to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

[0047] Specifically, when performing frequency modulation processing, it is determined whether the obtained target state is a sleep state, and then when it is determined that the target state is not a sleep state, a corresponding target frequency modulation strategy is generated according to the target link frequency, and then the target frequency modulation strategy is sent to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU according to the target frequency modulation strategy.

[0048] Exemplarily, when the CPU is in a non-sleep state, it indicates that the link demand required at this time is real. Therefore, a corresponding link adjustment strategy is generated according to the currently obtained target link frequency. Since the frequency modulation processing of the link requires the processing of the link regulator, the link adjustment strategy is sent to the link regulator so that the link regulator performs frequency modulation processing on the CPU link according to the target frequency modulation strategy.

[0049] Furthermore, when the CPU is in a sleep state, a corresponding frequency gear can be set at this time, that is, the sleep state corresponds to a frequency gear, and when performing frequency modulation processing, the obtained target load is not used as a basis for frequency modulation, specifically including: when it is determined that the target state is a sleep state, the default link frequency corresponding to the sleep state is obtained, and a target frequency modulation strategy is generated according to the default link frequency state.

[0050] It should be noted that when the CPU is in a dormant state, it does not mean that the corresponding CPU link is not required to run, but the demand is small. At this time, a corresponding default link frequency can be set for the dormant state. When determining the target frequency modulation strategy, the default link frequency corresponding to the dormant state is obtained to generate the target frequency modulation strategy of the target CPU according to the default link frequency.

[0051] In one embodiment, after the scheduling module completes the acquisition and sampling of the relevant information of the CPU and informs the link regulator, the link regulator will perform the link frequency modulation processing according to the obtained target frequency modulation strategy. After the frequency modulation processing is completed, in addition to acquiring the CPU status and load when the CPU has a task change, the link regulation module can also periodically perform load sampling.

[0052] In actual applications, since the completion of a task does not necessarily run through the entire frequency modulation cycle, within a frequency modulation cycle, there will be a load reduction after the task is completed, that is, the demand for the CPU link is reduced, but the CPU link is still at a high frequency, resulting in a waste of performance process. Therefore, after completing a frequency modulation process and when it is not detected that a new frequency modulation process is needed, the link adjustment module can perform further frequency modulation processing according to the actual situation, and can also share information with the scheduling module. Specifically, after the link regulator completes the frequency modulation processing of the CPU link, it includes: receiving feedback information obtained by the link regulator based on the target frequency modulation strategy, wherein the feedback information is generated by the link regulator based on the sampled load.

[0053] As for the generated feedback information, since it is the sampling and adjustment result of the link regulator, the feedback information at least includes the current load of the target CPU and the current link frequency of the target link.

[0054] It should be noted that after the CPU completes a task, it will be in an idle state, that is, the sleep state (idle state) described above. Under normal circumstances, the scheduling module can monitor the status of the CPU in a timely manner, but there may be special circumstances that cause the scheduling module to fail to monitor it in a timely manner. At this time, the link regulator determines that the load has changed after periodic sampling, but has not received the relevant information sent by the scheduling module, including the target frequency modulation strategy. At this time, the frequency modulation processing can be automatically performed, and corresponding feedback information is generated according to the result of the frequency modulation processing to inform the scheduling module.

[0055] In one embodiment, referring to Figure 4 , Figure 4 It is a block diagram schematic diagram of frequency modulation processing provided in an embodiment of the present application.

[0056] like Figure 4 As shown, when dynamic voltage and frequency adjustment is performed, CPU load tracking is performed to determine the load conditions of each CPU in the terminal or device, so as to obtain the corresponding CPU frequency modulation method according to the obtained load conditions, and at the same time, the idle mode of the CPU is monitored to obtain the idle mode of each CPU, and then the obtained CPU frequency modulation method and idle mode and the sampled load conditions are informed to the CPU link regulator, and finally the CPU link regulator performs CPU link frequency modulation.

[0057] In the actual processing process, combined with Figure 2 When performing load sampling and state mode monitoring, the CPU scheduling module is used to implement it, and then the notification module embedded in the CPU scheduling module sends the acquired relevant data to the CPU link regulator to realize data sharing, avoiding the CPU link regulator from needing to perform load sampling calculations when performing link frequency modulation. At the same time, when sampling the load, the accuracy of frequency modulation is improved through real-time sampling of the load.

[0058] In summary, the present application discloses a dynamic voltage frequency adjustment method. When performing frequency modulation processing, the scheduling module monitors the state of the target CPU to obtain the target state of the target CPU, and also detects and samples the real-time load of the target CPU, and then determines the current corresponding target link frequency according to the sampled target load, and finally obtains the target frequency modulation strategy for frequency modulation processing of the target link according to the target state and the target link frequency, and sends the target frequency modulation strategy to the link regulator, so that the link regulator completes the frequency modulation processing of the target link. In the frequency modulation process, the CPU scheduling module and the CPU link regulator are integrated, and the real-time performance of load sampling is improved through information sharing between the two. At the same time, the CPU state is used as the basis for frequency modulation, so as to improve the accuracy of frequency modulation and reduce power consumption.

[0059] According to the method described in the above embodiments, this embodiment will be further described from the perspective of a dynamic voltage and frequency adjustment device. The dynamic voltage and frequency adjustment device can be implemented as an independent entity or integrated in an electronic device, such as a terminal. The terminal may include a mobile phone, a tablet computer, etc.

[0060] See also Figure 5 , Figure 5 is a structural diagram of a dynamic voltage frequency adjustment device provided in an embodiment of the present application, such as Figure 5 As shown, the dynamic voltage frequency adjustment device 500 provided in the embodiment of the present application includes:

[0061] The state monitoring module 501 is used to monitor the state of the target CPU and obtain the target state of the target CPU;

[0062] The load sampling module 502 is used to obtain the target load of the target CPU and obtain the target link frequency of the target CPU according to the target load;

[0063] The interactive frequency modulation module 503 is used to generate a target frequency modulation strategy according to a target state and a target link frequency, and send the target frequency modulation strategy to the link modulation.

[0064] In one embodiment, the load sampling module 502 is further configured to:

[0065] Obtain the target load of the target CPU and obtain the frequency modulation mapping table;

[0066] According to the target load, a query and match is performed in the frequency modulation mapping table to obtain a target link frequency corresponding to the target load.

[0067] In one embodiment, the interactive frequency modulation module 503 is further configured to:

[0068] Determine whether the target state is a dormant state;

[0069] When it is determined that the target state is not the sleep state, a target frequency modulation strategy is generated according to the target link frequency;

[0070] The target frequency modulation policy is sent to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

[0071] In one embodiment, the interactive frequency modulation module 503 is further configured to:

[0072] When it is determined that the target state is the sleep state, a default link frequency corresponding to the sleep state is obtained, and a target frequency modulation strategy is generated according to the default link frequency state.

[0073] In one embodiment, the load sampling module 502 is further configured to:

[0074] According to the target identifier of the target CPU, a query is performed in the frequency modulation mapping table to obtain an intermediate frequency set, wherein the intermediate frequency set records the corresponding relationship between the load and the frequency;

[0075] A query is performed in the intermediate frequency set according to the target load to obtain a target link frequency corresponding to the target load.

[0076] In one embodiment, the dynamic voltage and frequency adjustment device 500 further includes a feedback module, which is used to:

[0077] Feedback information obtained by the link regulator based on the target frequency modulation strategy is received, wherein the feedback information is generated by the link regulator according to the sampled load.

[0078] In one embodiment, the feedback information includes at least the current link frequency of the target link and the current load of the target CPU.

[0079] Also, see Figure 6 , Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 6 As shown, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

[0080] The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 600 and processes data by running or loading applications stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the electronic device 600 as a whole.

[0081] In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 will run the application stored in the memory 602, thereby implementing any step in the dynamic voltage and frequency adjustment method provided in the above embodiment.

[0082] The electronic device 600 can implement the steps in any embodiment of the dynamic voltage and frequency adjustment method provided in the embodiments of the present application. Therefore, it can achieve the beneficial effects that can be achieved by any dynamic voltage and frequency adjustment method provided in the embodiments of the present application. Please refer to the previous embodiments for details and will not be repeated here.

[0083] See also Figure 7 , Figure 7 is another structural schematic diagram of an electronic device provided in an embodiment of the present application, such as Figure 7 As shown, Figure 7 The specific structural block diagram of the electronic device provided in the embodiment of the present application is shown, and the electronic device can be used to implement the dynamic voltage frequency adjustment method provided in the above embodiment. The electronic device 700 can be a mobile terminal such as a smart phone or a laptop computer.

[0084] The RF circuit 710 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0085] The memory 720 can be used to store software programs and modules, such as the program instructions / modules corresponding to the dynamic voltage and frequency adjustment method in the above-mentioned embodiment. The processor 780 executes various functional applications and the dynamic voltage and frequency adjustment method by running the software programs and modules stored in the memory 720.

[0086] The memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely arranged relative to the processor 780, and these remote memories may be connected to the electronic device 700 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0087] The input unit 730 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 731), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0088] The display unit 740 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 700, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 731 may cover the display panel 741, and when the touch-sensitive surface 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides corresponding visual output on the display panel 741 according to the type of the touch event. Although in the figure, the touch-sensitive surface 731 and the display panel 741 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

[0089] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 700, they will not be repeated here.

[0090] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing. The audio circuit 760 may also include an earplug jack to provide communication between an external headset and the electronic device 700.

[0091] The electronic device 700 can help the user receive requests, send information, etc. through the transmission module 770 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 770 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the essence of the invention.

[0092] The processor 780 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the electronic device 700 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 780.

[0093] The electronic device 700 also includes a power supply 790 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 790 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0094] Although not shown, the electronic device 700 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step of the dynamic voltage frequency adjustment method provided in the above embodiment.

[0095] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0096] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, which stores a plurality of instructions, and the instructions can be executed by the processor to implement any step of the dynamic voltage and frequency adjustment method provided in the above embodiments.

[0097] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0098] Since the instructions stored in the storage medium can execute the steps in any embodiment of the dynamic voltage and frequency adjustment method provided in the embodiments of the present application, the beneficial effects that can be achieved by any dynamic voltage and frequency adjustment method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0099] The above is a detailed introduction to a dynamic voltage frequency adjustment method, device, electronic device and storage medium provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present application.

Claims

1. A dynamic voltage frequency adjustment method, characterized in that: include: Performing status monitoring on a target CPU to obtain a target status of the target CPU; Obtaining a target load of a target CPU, and obtaining a target link frequency of the target CPU according to the target load; A target frequency modulation strategy is generated according to the target state and the target link frequency, and the target frequency modulation strategy is sent to a link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

2. The dynamic voltage frequency adjustment method according to claim 1, wherein: The acquiring a target load of the target CPU, and obtaining a target link frequency of the target CPU according to the target load, comprises: Obtain the target load of the target CPU and obtain the frequency modulation mapping table; A query and match is performed in the frequency modulation mapping table according to the target load to obtain a target link frequency corresponding to the target load.

3. The dynamic voltage frequency adjustment method according to claim 1, wherein: The generating a target frequency modulation strategy according to the target state and the target link frequency, and sending the target frequency modulation strategy to a link regulator so that the link regulator performs frequency modulation processing on a target link corresponding to the target CPU, includes: Determining whether the target state is a dormant state; In the case where it is determined that the target state is not a sleep state, generating a target frequency modulation strategy according to the target link frequency; The target frequency modulation strategy is sent to a link regulator, so that the link regulator performs frequency modulation processing on a target link corresponding to the target CPU.

4. The dynamic voltage frequency adjustment method according to claim 3, wherein: After determining whether the target state is a dormant state, the method further includes: When it is determined that the target state is the sleep state, a default link frequency corresponding to the sleep state is obtained, and a target frequency modulation strategy is generated according to the default link frequency state.

5. The dynamic voltage frequency adjustment method according to claim 2, wherein: The querying and matching in the frequency modulation mapping table according to the target load to obtain a target link frequency corresponding to the target load includes: According to the target identifier of the target CPU, query the frequency modulation mapping table to obtain an intermediate frequency set, wherein the intermediate frequency set records the corresponding relationship between the load and the frequency; The intermediate frequency set is queried according to the target load to obtain a target link frequency corresponding to the target load.

6. The dynamic voltage frequency adjustment method according to claim 1, wherein: The method further comprises: Feedback information obtained by the link regulator based on the target frequency modulation strategy is received, wherein the feedback information is generated by the link regulator according to the sampled load.

7. The dynamic voltage frequency adjustment method according to claim 6, wherein: The feedback information includes at least a current link frequency of the target link and a current load of the target CPU.

8. A dynamic voltage frequency adjustment device, characterized in that: include: A state monitoring module is used to monitor the state of the target CPU and obtain the target state of the target CPU; A load sampling module, used to obtain a target load of a target CPU, and obtain a target link frequency of the target CPU according to the target load; The interactive frequency modulation module is used to generate a target frequency modulation strategy according to the target state and the target link frequency, and send the target frequency modulation strategy to the link regulator, so that the link regulator performs frequency modulation processing on the target link corresponding to the target CPU.

9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Memory dynamic frequency modulation method and device, storage medium and electronic equipment

    CN120973210A