CN116414216A - Frequency modulation method and related equipment - Google Patents

Frequency modulation method and related equipment Download PDF

Info

Publication number
CN116414216A
CN116414216A CN202111658322.1A CN202111658322A CN116414216A CN 116414216 A CN116414216 A CN 116414216A CN 202111658322 A CN202111658322 A CN 202111658322A CN 116414216 A CN116414216 A CN 116414216A
Authority
CN
China
Prior art keywords
frequency
adjustable module
module
frequency adjustable
increased
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111658322.1A
Other languages
Chinese (zh)
Inventor
孙友
乔诺涵
张燕飞
王飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111658322.1A priority Critical patent/CN116414216A/en
Priority to PCT/CN2022/142713 priority patent/WO2023125636A1/en
Publication of CN116414216A publication Critical patent/CN116414216A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/08Clock generators with changeable or programmable clock frequency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0811Multiuser, multiprocessor or multiprocessing cache systems with multilevel cache hierarchies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)

Abstract

The application provides a frequency modulation method and related equipment, wherein the method is applied to electronic equipment, and the electronic equipment comprises a first frequency adjustable module and a second frequency adjustable module; the method comprises the following steps: if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased; and determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module. By adopting the embodiment of the application, the frequency of the frequency adjustable module of the common voltage can be adjusted in a linkage way, so that higher energy efficiency and sufficient performance are ensured.

Description

Frequency modulation method and related equipment
Technical Field
The embodiment of the application relates to the technical field of chips, in particular to a frequency modulation method and related equipment.
Background
In order to save the production cost of chips, some manufacturers use a common voltage mode when manufacturing two or more frequency-adjustable modules. In the scenario of adopting the shared voltage, if the frequency change of one of the frequency-adjustable modules causes the shared voltage to rise, the shared voltage rises, and the frequency of other frequency-adjustable modules is not adjusted or is not adjusted timely, so that the other frequency-adjustable modules have the condition that the voltage is wasted or the load cannot be met, and the other frequency-adjustable modules have the problems of low energy efficiency, insufficient performance and the like.
For example, in a chip of taiwan concurrent technologies corporation (MediaTek.Inc, MTK), a small core central processing unit (Central Processing Unit, CPU) and a level 3cache (abbreviated as l3 cache) share a voltage; when the workload of the large-core CPU is too high, the frequency of the three-level cache can be increased, and the common voltage can be increased, and the small-core CPU can not be increased in time and continuously works at a low frequency, so that the small-core CPU wastes high voltage or cannot meet the condition of the load, and the problems of low energy efficiency, insufficient performance and the like of the small-core CPU are solved.
Disclosure of Invention
The frequency of the frequency adjustable module of the common voltage can be adjusted in a linkage way, so that high energy efficiency and sufficient performance are ensured.
According to a first aspect, the present application relates to a frequency modulation method applied to an electronic device, the electronic device comprising a first frequency-tunable module and a second frequency-tunable module; the method comprises the following steps: if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased; and determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module. The first target frequency may be any frequency of the second frequency adjustable module under the first common voltage, and is preferably the minimum frequency of the second frequency adjustable module under the first common voltage.
In the embodiment of the application, the first frequency adjustable module and the second frequency adjustable module in the electronic equipment share the voltage, when the frequency of the first frequency adjustable module is increased to cause the increase of the shared voltage, the first target frequency of the second frequency adjustable module under the increased shared voltage is obtained, and then whether the frequency of the second frequency adjustable module is increased to the first target frequency is determined according to the load of the second frequency adjustable module. Therefore, the frequencies of the first frequency adjustable module and the second frequency adjustable module of the common voltage can be adjusted in a linkage way, namely, when the frequency of the first frequency adjustable module is increased to cause the increase of the common voltage, the frequency of the second frequency adjustable module can be increased in time, so that the condition that the second frequency adjustable module is wasted in voltage or cannot meet the load is avoided, and therefore high energy efficiency and sufficient performance are ensured. The frequency linkage adjustment of the first frequency adjustable module and the second frequency adjustable module is also adjusted according to the need, namely when the frequency of the first frequency adjustable module is increased, whether the frequency of the second frequency adjustable module is increased is determined according to the load of the second frequency adjustable module; for example, if the second frequency-adjustable module does not need to raise the frequency to meet the load, the frequency of the second frequency-adjustable module is not raised; if the second frequency adjustable module needs to raise the frequency to meet the load, raising the frequency of the second frequency adjustable module; therefore, the frequency of the second frequency adjustable module is not increased unnecessarily, and the additional expense caused by frequent frequency modulation is reduced.
In one possible implementation manner, the determining whether to raise the frequency of the second frequency-tunable module to the first target frequency according to the load of the second frequency-tunable module includes: if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the frequency of the second frequency adjustable module is not increased to the first target frequency; if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; and if the load of the second frequency adjustable module is larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
In this implementation manner, after the frequency of the first frequency-adjustable module increases, resulting in an increase in the voltage shared by the first frequency-adjustable module and the second frequency-adjustable module, if the load of the second frequency-adjustable module is not greater than the first preset threshold, which indicates that the load of the second frequency-adjustable module is lower, the load requirement can be met without increasing the frequency of the second frequency-adjustable module, and the frequency of the second frequency-adjustable module is not increased to the first target frequency; therefore, the frequency of the second frequency adjustable module is not required to be increased, and the additional cost caused by frequent frequency modulation is reduced. If the load of the second frequency adjustable module is larger than a second preset threshold value, indicating that the load of the second frequency adjustable module is higher, and increasing the frequency of the second frequency adjustable module is needed to meet the load requirement, increasing the frequency of the second frequency adjustable module to be the first target frequency; therefore, the frequency of the second frequency adjustable module is increased in time, the voltage waste is avoided, and the load cannot be met. If the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value, which means that the load of the second frequency adjustable module is not too low or too high, and the frequency of the second frequency adjustable module is in a condition that the frequency can be raised or not, determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; thereby avoiding too much reduction of the energy efficiency of the second frequency tunable module or the energy efficiency of the electronic device after the frequency of the second frequency tunable module is increased.
In one possible implementation manner, the determining whether to raise the frequency of the second frequency tunable module to the first target frequency according to the energy efficiency of the second frequency tunable module or the energy efficiency of the electronic device includes: if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency; otherwise, the frequency of the second frequency adjustable module is increased to the first target frequency.
In this implementation manner, if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is reduced by a third preset threshold, which indicates that the frequency of the second frequency adjustable module is increased, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is reduced too much, the frequency of the second frequency adjustable module is not increased to the first target frequency, so that the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is ensured to be higher, and the performance is also sufficient; otherwise, the frequency of the second frequency adjustable module is raised, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is not reduced too much, so that the frequency of the second frequency adjustable module is raised to the first target frequency, the sufficient performance of the second frequency adjustable module can be ensured, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is also higher.
In one possible implementation, the method further includes: acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module; if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
In the implementation manner, under the condition that the frequency of the first frequency adjustable module is monitored to be increased, the frequency of the increased first frequency adjustable module is obtained; if the frequency of the first frequency-adjustable module after the rising is greater than the maximum frequency of the first frequency-adjustable module under the common voltage before the rising, the frequency rising of the first frequency-adjustable module is indicated to cause the voltage common to the first frequency-adjustable module and the second frequency-adjustable module to rise. Therefore, the frequency rising of the first frequency adjustable module can be timely monitored, the voltage rising shared by the first frequency adjustable module and the second frequency adjustable module can be timely found, the waste time of the voltage after rising is shortened, and the time for acquiring the first target frequency corresponding to the second frequency adjustable module is reduced.
According to a second aspect, the present application relates to a frequency modulation device, and the beneficial effects can be seen from the description of the first aspect, which is not repeated here. The frequency modulation device has the function of implementing the behavior in the method example of the first aspect. The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. In one possible implementation, the apparatus is applied to an electronic device, which includes a first frequency-tunable module and a second frequency-tunable module; the device comprises: a processing unit for: if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased; and determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
In a possible implementation manner, the processing unit is specifically configured to: if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the frequency of the second frequency adjustable module is not increased to the first target frequency; if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; and if the load of the second frequency adjustable module is larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
In a possible implementation manner, the processing unit is specifically configured to: if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency; otherwise, the frequency of the second frequency adjustable module is increased to the first target frequency.
In a possible implementation manner, the processing unit is further configured to: acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module; if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
According to a third aspect, the present application relates to an electronic device comprising: one or more processors; a non-transitory computer readable storage medium coupled to the processor and storing a program for execution by the processor, wherein the program, when executed by the processor, causes the electronic device to perform the method of any one of the possible embodiments of the first aspect.
According to a fourth aspect, the present application relates to a non-transitory computer readable storage medium comprising program code for performing the method of any one of the possible embodiments of the first aspect when executed by a computer device.
According to a fifth aspect, the present application relates to a chip comprising: a processor for calling and running a computer program from a memory, so that a device on which the chip is mounted performs the method according to any one of the possible embodiments of the first aspect.
According to a sixth aspect, the present application relates to a computer program product comprising program code which, when run, performs the method of any one of the possible embodiments of the first aspect.
Drawings
The drawings used in the embodiments of the present application are described below.
Fig. 1 is a schematic diagram of a scenario of a common voltage according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another common voltage scenario provided in an embodiment of the present application;
FIG. 3 is a frequency distribution diagram of a small core CPU and a three-level cache of a certain chip provided in an embodiment of the present application;
FIG. 4 is a voltage distribution diagram of a small core CPU and a three-level buffer according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a scenario of another common voltage provided in an embodiment of the present application;
Fig. 6 is a schematic flow chart of a frequency modulation method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a component architecture of an electronic device according to an embodiment of the present application;
FIG. 8 is a flowchart of a frequency modulation method performed by the electronic device shown in FIG. 7;
fig. 9 is a schematic diagram of a component architecture of another electronic device according to an embodiment of the present disclosure;
FIG. 10 is a flow chart of a frequency acquisition method performed by the electronic device shown in FIG. 9;
FIG. 11 is a flowchart of a frequency modulation method performed by the electronic device shown in FIG. 9;
fig. 12 is a schematic structural diagram of a frequency modulation device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
First, some technical terms in the embodiments of the present application are described so as to facilitate understanding of the present application by those skilled in the art.
(1) Energy efficiency: refers to the ratio of the energy theoretically available to provide service to the end user to the total energy actually consumed, also known as the energy efficiency ratio.
(2) Energy efficiency ratio curve: the relationship between frequency, voltage and energy efficiency ratio is typically provided by the chip manufacturer or is measured by a laboratory.
(3) Level 3cache (abbreviated as l3 cache): the process of reading data by the central processing unit (Central Processing Unit, CPU) is as follows: searching from the cache file, automatically reading after the cache file is found, and inputting the cache file into a CPU for processing; if the corresponding cache file is not found in the cache, the corresponding cache file is read from the memory and transmitted to the CPU for processing. The third-level cache is a cache designed for reading the missed data after the second-level cache, wherein the first-level cache is built in the CPU and runs at the same speed as the CPU so as to effectively improve the running efficiency of the CPU; the second level cache is a cache designed to coordinate the speed between the first level cache and the memory.
(4) Load: refers to the ratio of the time period of the module run time to the time period.
(5) Power consumption: refers to the amount of energy consumed per unit time.
(6) Frame loss rate: refers to the ratio of the number of lost frames to the theoretical total number of frames over a period of time.
Next, a description will be given of a related art in which two frequency-tunable modules in an electronic device share a voltage scenario, so as to facilitate understanding of the present application by those skilled in the art.
(1) Related art one: some manufacturers set the frequency of one of the frequency-tunable modules to be a fixed value when facing the two frequency-tunable modules to share the voltage scene, and thus the shared voltage is limited and cannot be dynamically adjusted. As shown in fig. 1, the frequency of the second frequency-tunable module is fixed, so that the voltage limit shared by the first frequency-tunable module and the second frequency-tunable module is limited to the highest value.
The related art has the following problems: the overall power consumption of the electronic product provided with the first frequency adjustable module and the second frequency adjustable module is increased, so that the cruising ability is deteriorated, and the user experience is affected.
(2) And related technology II: some manufacturers set the frequency of two frequency-adjustable modules to be adjusted independently when facing the common voltage scene of the two frequency-adjustable modules, but the frequency adjustment of one frequency-adjustable module causes the common voltage to rise, and cannot be linked with the frequency adjustment of the other frequency-adjustable module. As shown in fig. 2, the frequency adjustment of the first frequency-adjustable module causes the common voltage to rise, but does not link the frequency adjustment of the second frequency-adjustable module, so that the second frequency-adjustable module has voltage waste.
The second related art has the following problems: the frequency adjustment that can not link of two frequency adjustable modules, there is the voltage performance can not exert, performance loss's condition for the frequency of two frequency adjustable modules can't reach the combination that energy efficiency is optimal corresponds.
(3) And (3) related technology: some manufacturers do not pay attention to the common voltage when facing the common voltage scene of the two frequency-adjustable modules, but directly do linkage adjustment according to the same proportion of the maximum frequencies of the two frequency-adjustable modules.
The related art three has the following problems: although the frequency changes are kept in the same proportion, the voltage changes corresponding to the frequencies among the frequency-adjustable modules are not in the same proportion, as shown in fig. 3 and 4, wherein the abscissa of fig. 3 and 4 both represent frequency point numbers, indicating what group; the ordinate of FIG. 3 represents frequency (unit: MHz), and the ordinate of FIG. 4 represents voltage (unit: uV); as such, when the frequency is adjusted, there is necessarily a voltage that does not need to be raised to be forced to be raised, resulting in an increase in power consumption. Some frequency-adjustable modules may not need to be increased in frequency to meet performance requirements, but when the frequency-adjustable modules are linked in the same proportion, frequent frequency modulation is necessarily caused for the frequency-adjustable modules, and power consumption is inevitably wasted due to unoccupied frequency increase.
It should be noted that, although the above description only describes the related art in which two frequency-tunable modules share a voltage scenario, the related art is equally applicable to a scenario in which the frequency-tunable modules share more than two voltages.
In view of the drawbacks of the related art, the technical problems to be solved by the present application include: in the scene of shared voltage, how to make full use of power consumption and improve performance.
To the technical problem that this application will solve, this application provides following technical scheme: in a voltage scene shared by a plurality of frequency adjustable modules, when the shared voltage is increased due to the frequency adjustment of one frequency adjustable module, whether the frequencies of other frequency adjustable modules are adjusted in a linkage mode is selected according to the requirement, so that the purposes of fully utilizing power consumption, improving performance and reducing frame loss rate are achieved.
The technical scheme provided by the application is described in detail below in connection with the specific embodiments.
Referring to fig. 5, fig. 5 is a schematic diagram of a scenario in which the first frequency-adjustable module and the second frequency-adjustable module share a voltage, the frequencies of the first frequency-adjustable module and the second frequency-adjustable module can be adjusted independently, and when the frequency adjustment of one frequency-adjustable module causes the increase of the shared voltage, the frequency adjustment of the other frequency-adjustable module can be linked. As shown in fig. 5, when the frequency of the first frequency-tunable module is adjusted (e.g., increased in frequency), resulting in an increase in voltage common to the first frequency-tunable module and the second frequency-tunable module, the frequency of the second frequency-tunable module is increased in linkage. In the process of increasing the frequency of the second frequency adjustable module, the frequency of the second frequency adjustable module is not adjusted in a linkage mode according to the same proportion of the maximum frequency of the two frequency adjustable modules, but the frequency of the second frequency adjustable module is selected to be adjusted in a linkage mode according to actual requirements of the load of the second frequency adjustable module, the energy efficiency of the second frequency adjustable module or the energy efficiency of electronic equipment and the like. The specific process of adjusting the frequency in a linkage manner is shown in fig. 6.
Referring to fig. 6, fig. 6 is a flow chart illustrating a process 600 of a frequency modulation method according to one embodiment of the present application. Process 600 is described as a series of steps or operations, it being understood that process 600 may be performed in various orders and/or concurrently, and is not limited to the order of execution as depicted in fig. 6. Process 600 may be performed by an electronic device comprising a first frequency tunable module and a second frequency tunable module; process 600 includes, but is not limited to, the following steps or operations:
step 601: if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, a first target frequency of the second frequency adjustable module under a first common voltage is obtained, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased.
The electronic device can acquire the frequency change condition of any frequency adjustable module of the common voltage in time, and when the frequency of a certain frequency adjustable module is adjusted to cause the increase of the common voltage, the electronic device can acquire the magnitude of the increased common voltage, so that the first target frequency of other frequency adjustable modules of the common voltage under the increased common voltage is further acquired. Alternatively, the first target frequency may be any frequency of the other frequency tunable modules at the raised common voltage, preferably the minimum frequency of the other frequency tunable modules at the raised common voltage.
For example, the first frequency adjustable module and the second frequency adjustable module in the electronic device share the same voltage, the electronic device can timely acquire the frequency change condition of the first frequency adjustable module and the second frequency adjustable module, and if the frequency of the first frequency adjustable module is increased and the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the electronic device can acquire the increased shared voltage, that is, the electronic device can acquire the first public voltage, so as to further acquire the first target frequency of the second frequency adjustable module under the first public voltage. Alternatively, the first target frequency may be any frequency of the second frequency tunable module at the first common voltage, preferably a minimum frequency of the second frequency tunable module at the first common voltage.
Step 602: and determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
When the frequency of a certain frequency adjustable module is adjusted to cause the common voltage to rise, the common voltage can be timely acquired by the electronic equipment, so that the frequencies of other frequency adjustable modules can be adjusted in a linkage manner; in the process of adjusting the frequencies of the other frequency adjustable modules, whether to adjust the frequencies of the other frequency adjustable modules can be determined according to the loads of the other frequency adjustable modules.
For example, when the frequency of the first frequency adjustable module increases and the voltage shared by the first frequency adjustable module and the second frequency adjustable module increases, the electronic device acquires a first target frequency corresponding to the second frequency adjustable module, so as to determine whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
In the embodiment of the application, the first frequency adjustable module and the second frequency adjustable module in the electronic equipment share the voltage, when the frequency of the first frequency adjustable module is increased to cause the increase of the shared voltage, the first target frequency of the second frequency adjustable module under the increased shared voltage is obtained, and then whether the frequency of the second frequency adjustable module is increased to the first target frequency is determined according to the load of the second frequency adjustable module. Therefore, the frequencies of the first frequency adjustable module and the second frequency adjustable module of the common voltage can be adjusted in a linkage way, namely, when the frequency of the first frequency adjustable module is increased to cause the increase of the common voltage, the frequency of the second frequency adjustable module can be increased in time, so that the condition that the second frequency adjustable module is wasted in voltage or cannot meet the load is avoided, and therefore high energy efficiency and sufficient performance are ensured. The frequency linkage adjustment of the first frequency adjustable module and the second frequency adjustable module is also adjusted according to the need, namely when the frequency of the first frequency adjustable module is increased, whether the frequency of the second frequency adjustable module is increased is determined according to the load of the second frequency adjustable module; for example, if the second frequency-adjustable module does not need to raise the frequency to meet the load, the frequency of the second frequency-adjustable module is not raised; if the second frequency adjustable module needs to raise the frequency to meet the load, raising the frequency of the second frequency adjustable module; therefore, the frequency of the second frequency adjustable module is not increased unnecessarily, and the additional expense caused by frequent frequency modulation is reduced.
It should be noted that there may be two or more modules sharing the same voltage in the electronic device, and the first frequency-adjustable module and the second frequency-adjustable module may be any two modules sharing the same voltage. It should be understood that when there are only two modules sharing the same voltage, the frequency of one module increases to cause the same voltage to increase, and then the other module is linked to increase the frequency as required, so the first frequency-adjustable module is the module in which the frequency increases to cause the same voltage to increase, and the second frequency-adjustable module is the other module linked to increase the frequency as required; when more than two modules sharing the same voltage are used, the frequency of one module is increased to cause the same voltage to be increased, each module in other modules is linked to increase the frequency according to the requirement, so the first frequency adjustable module is a module in which the frequency is increased to cause the same voltage to be increased, and the second frequency adjustable module is any one of the other modules which are linked to increase the frequency according to the requirement.
In one possible implementation manner, the determining whether to raise the frequency of the second frequency-tunable module to the first target frequency according to the load of the second frequency-tunable module includes: if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the frequency of the second frequency adjustable module is not increased to the first target frequency; if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; and if the load of the second frequency adjustable module is larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
After the electronic device obtains the first target frequency of the other frequency adjustable modules of the common voltage under the increased common voltage, the electronic device needs to judge whether the first target frequency can be set or not; the determination condition of whether the first target frequency can be set includes a load determination condition and an energy efficiency determination condition. The following are described respectively:
(1) The load determination conditions are: after the frequency of one frequency adjustable module is increased to cause the increase of the common voltage, if the load of the other frequency adjustable modules is not greater than the first preset threshold value, the load of the other frequency adjustable modules is lower, and the increased frequency has little influence on the performance of the other frequency adjustable modules, so that the frequency of the other frequency adjustable modules does not need to be increased, namely the frequency of the other frequency adjustable modules does not need to be set to be the first target frequency; if the load of the other frequency adjustable modules is larger than the second preset threshold value, the frequency of the other frequency adjustable modules cannot meet the load, so that the frequency of the other frequency adjustable modules needs to be increased, namely the frequency of the other frequency adjustable modules can be set to be the first target frequency; and if the load of the other frequency adjustable modules is larger than the first preset threshold value and not larger than the second preset threshold value, judging through the energy efficiency judging condition.
The first preset threshold value and the second preset threshold value can be selected according to the actual application scene of the frequency adjustable module; as for the second preset threshold, if high performance is required, a low point set by the second preset threshold may be set, and conversely, a high point set by the second preset threshold may be set. For example, the first preset threshold is set to 30% of the full load, when the actual working load of the frequency adjustable module does not exceed 30% of the full load, namely, the frequency of the frequency adjustable module is considered to be low, and the rising frequency has little influence on the performance of the frequency adjustable module; the second preset threshold is set to 60% of full load, and when the actual working load of the frequency adjustable module exceeds 60% of full load, the frequency of the frequency adjustable module is considered to be unable to meet the load.
(2) The energy efficiency judging conditions are as follows: if the frequency of the other frequency adjustable module is set to be the first target frequency, the energy efficiency of the other frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, the frequency of the other frequency adjustable module is increased, so that the energy efficiency of the other frequency adjustable module or the energy efficiency of the electronic equipment is reduced too much (or seriously degraded), the reduction degree (or the degradation degree) is not acceptable, and the frequency of the other frequency adjustable module is not set to be the first target frequency; otherwise, it is indicated that raising the frequency of the other frequency-adjustable module does not reduce the energy efficiency of the other frequency-adjustable module or the energy efficiency of the electronic device too much, and the reduction degree is acceptable, so that the frequency of the other frequency-adjustable module can be set to the first target frequency.
The size of the third preset threshold can be selected according to the actual application scene of the frequency adjustable module or the actual application scene of the electronic equipment; if performance is sought, the third preset threshold may be set to a larger value; if a long endurance is pursued, the third preset threshold may be set to a smaller value. For example, when a long endurance is pursued, the third preset threshold is set to 0. In addition, the third preset threshold corresponding to the frequency adjustable module and the third preset threshold corresponding to the electronic device may be the same or different.
The energy efficiency determination may be implemented based on an energy efficiency ratio curve, where the energy efficiency ratio curve may reflect a relationship among frequency, voltage, and energy efficiency, and thus, when an increased common voltage (e.g., a first common voltage) is obtained, and a first target frequency is obtained, after the frequency of another frequency-adjustable module is set to the first target frequency under the increased common voltage (e.g., the first common voltage) and the energy efficiency of the electronic device is determined based on the relationship among the frequency, the voltage, and the energy efficiency in the energy efficiency ratio curve, the energy efficiency of the other frequency-adjustable module or the energy efficiency of the electronic device is determined, thereby determining the degree of decrease in the energy efficiency of the other frequency-adjustable module or the energy efficiency of the electronic device.
In this implementation manner, after the frequency of the first frequency-adjustable module increases, resulting in an increase in the voltage shared by the first frequency-adjustable module and the second frequency-adjustable module, if the load of the second frequency-adjustable module is not greater than the first preset threshold, which indicates that the load of the second frequency-adjustable module is lower, the load requirement can be met without increasing the frequency of the second frequency-adjustable module, and the frequency of the second frequency-adjustable module is not increased to the first target frequency; therefore, the frequency of the second frequency adjustable module is not required to be increased, and the additional cost caused by frequent frequency modulation is reduced. If the load of the second frequency adjustable module is larger than a second preset threshold value, indicating that the load of the second frequency adjustable module is higher, and increasing the frequency of the second frequency adjustable module is needed to meet the load requirement, increasing the frequency of the second frequency adjustable module to be the first target frequency; therefore, the frequency of the second frequency adjustable module is increased in time, the voltage waste is avoided, and the load cannot be met. If the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value, which means that the load of the second frequency adjustable module is not too low or too high, and the frequency of the second frequency adjustable module is in a condition that the frequency can be raised or not, determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; thereby avoiding too much reduction of the energy efficiency of the second frequency tunable module or the energy efficiency of the electronic device after the frequency of the second frequency tunable module is increased.
In one possible implementation manner, the determining whether to raise the frequency of the second frequency tunable module to the first target frequency according to the energy efficiency of the second frequency tunable module or the energy efficiency of the electronic device includes: if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency; otherwise, the frequency of the second frequency adjustable module is increased to the first target frequency.
Specifically, according to the energy efficiency ratio curve, if the frequency of the second frequency adjustable module is increased to the first target frequency under the first public voltage, the energy efficiency of the second frequency adjustable module or the electronic equipment is determined, so as to determine whether the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment can reduce a third preset threshold; if the third preset threshold value is lowered, the frequency of the second frequency adjustable module is not raised to the first target frequency; if the third preset threshold is not lowered, the frequency of the second frequency tunable module may be raised to the first target frequency.
In this implementation manner, if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is reduced by a third preset threshold, which indicates that the frequency of the second frequency adjustable module is increased, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is reduced too much, the frequency of the second frequency adjustable module is not increased to the first target frequency, so that the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device is ensured to be higher, and the performance is also sufficient; otherwise, the frequency of the second frequency adjustable module is raised, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is not reduced too much, so that the frequency of the second frequency adjustable module is raised to the first target frequency, the sufficient performance of the second frequency adjustable module can be ensured, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is also higher.
In one possible implementation, the method further includes: acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module; if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
The electronic equipment can timely acquire the frequency change condition of any frequency adjustable module of the common voltage, and when the frequency of a certain frequency adjustable module is adjusted, for example, when the frequency of the certain frequency adjustable module is increased, the electronic equipment can also acquire the frequency of the frequency adjustable module after the frequency is increased, and judge whether the frequency after the frequency is increased exceeds the maximum frequency allowed by the frequency adjustable module under the current common voltage; if the maximum frequency allowed by the current public voltage is exceeded, the public voltage is triggered to rise.
For example, when the electronic device monitors that the frequency of the first frequency adjustable module increases, acquiring the frequency of the first frequency adjustable module after the frequency of the first frequency adjustable module increases, and judging whether the frequency of the first frequency adjustable module after the frequency of the first frequency adjustable module increases is larger than the maximum frequency of the first frequency adjustable module under the second common voltage; if it is greater, it is stated that an increase in the frequency of the first frequency-tunable module results in an increase in the voltage common to the first frequency-tunable module and the second frequency-tunable module.
In the implementation manner, under the condition that the frequency of the first frequency adjustable module is monitored to be increased, the frequency of the increased first frequency adjustable module is obtained; if the frequency of the first frequency-adjustable module after the rising is greater than the maximum frequency of the first frequency-adjustable module under the common voltage before the rising, the frequency rising of the first frequency-adjustable module is indicated to cause the voltage common to the first frequency-adjustable module and the second frequency-adjustable module to rise. Therefore, the frequency rising of the first frequency adjustable module can be timely monitored, the voltage rising shared by the first frequency adjustable module and the second frequency adjustable module can be timely found, the waste time of the voltage after rising is shortened, and the time for acquiring the first target frequency corresponding to the second frequency adjustable module is reduced.
It should be noted that the series of steps or operations described in the process 600 may also correspond to the corresponding description of the embodiment shown in fig. 5.
The process 600 shown in fig. 6 is further described below by way of specific examples shown in fig. 7-11.
Referring to fig. 7, fig. 7 is a schematic diagram of a component architecture of an electronic device according to an embodiment of the present application, where the electronic device may be the electronic device in the embodiment shown in fig. 6, and the electronic device includes an application layer, a kernel layer, and a chip layer.
The application layer is some application programs (APP) that the user can directly perceive.
The kernel layer is located between the application layer and the chip layer, can provide deployment and operation environments for the application layer upwards, and can set chip layer parameters of physical hardware types downwards, and the kernel layer is realized by software. The core layer includes a frequency modulation device including a frequency modulation monitor, a load determination module, an energy efficiency determination module, and a frequency setting module (not shown in fig. 7).
The chip layer includes a module with a common voltage, for example, a first frequency-adjustable module and a second frequency-adjustable module with the common voltage, and the second frequency-adjustable module only symbolically represents one module with the common voltage with the first frequency-adjustable module, so that a plurality of modules with the common voltage with the first frequency-adjustable module may exist in practice.
When the load corresponding to the first frequency adjustable module in the application layer is increased or the first frequency adjustable module is increased due to other reasons, the frequency modulation monitor can timely acquire the frequency to which the first frequency adjustable module is to be increased. In this case, the fm monitor may also timely learn whether the frequency boost of the first frequency-adjustable module results in a voltage boost shared by the first frequency-adjustable module and the second frequency-adjustable module; if the first frequency-adjustable module increases the frequency to cause the common voltage to increase, that is, the common voltage increases to the first common voltage, the fm monitor may timely acquire the first target frequency (e.g., the minimum frequency) of the second frequency-adjustable module under the first common voltage. After the fm monitor obtains the first target frequency, but it is not necessary to set the frequency of the second frequency adjustable module to the first target frequency, the fm device can determine whether to set the frequency of the second frequency adjustable module to the first target frequency as needed. Specifically, the load determination module is required to determine according to the load of the second frequency-adjustable module, and the energy efficiency determination module determines according to the energy efficiency of the second frequency-adjustable module or the energy efficiency of the electronic device, so as to determine whether to set the frequency of the second frequency-adjustable module to the first target frequency.
Wherein, the load judging module judges: whether the frequency of the second frequency tunable module satisfies the load and whether the load of the second frequency tunable module is low enough to raise the frequency has little effect on the performance of the second frequency tunable module. If the load judging module judges that the frequency of the second frequency adjustable module cannot meet the load, the frequency setting module can directly set the frequency of the second frequency adjustable module as the first target frequency; if the load judging module judges that the load of the second frequency adjustable module is lower, the rising frequency has almost no influence on the performance of the second frequency adjustable module, and the frequency setting module does not set the frequency of the second frequency adjustable module as the first target frequency; otherwise, the energy efficiency judgment module is used for further judging.
The energy efficiency judging module judges according to an energy efficiency ratio curve: if the frequency of the second frequency adjustable module is set to the first target frequency, whether the energy efficiency of the second frequency adjustable module is seriously degraded or the energy efficiency ratio of the electronic equipment is seriously degraded is caused. If the energy efficiency judging module judges that the degree of degradation of the energy efficiency degradation of the second frequency adjustable module or the degree of degradation of the energy efficiency degradation of the electronic equipment is acceptable after the frequency of the second frequency adjustable module is set to the first target frequency, the frequency setting module sets the frequency of the second frequency adjustable module to the first target frequency, namely the frequency of the second frequency adjustable module is increased to the first target frequency, and therefore user experience of an application layer is improved; otherwise, the frequency setting module does not set the frequency of the second frequency tunable module to the first target frequency.
In summary, the electronic device shown in fig. 7 is configured to monitor the frequency change condition of each frequency adjustable module by using the fm monitor, so as to timely obtain the change condition of the common voltage, and further calculate the first target frequency of other frequency adjustable modules under the common voltage. Compared with the situation that the frequency of a certain frequency adjustable module of the shared voltage cannot be monitored and the change situation of the shared voltage cannot be judged, the electronic device shown in fig. 7 can discover the change situation of the shared voltage as early as possible, shorten the waste time length after the shared voltage is increased, and reduce the time for acquiring the first target frequency of other frequency adjustable modules.
Further, after the frequency of a certain frequency adjustable module increases to cause the increase of the common voltage, the electronic device shown in fig. 7 may obtain the load condition of other frequency adjustable modules, determine whether the frequencies of the other frequency adjustable modules meet the load, and if not, set the frequencies of the other frequency adjustable modules as the first target frequency; otherwise, judging whether the frequency of other frequency adjustable modules is set as a first target frequency under the increased common voltage according to the energy efficiency ratio curve, wherein the frequency can cause serious energy efficiency degradation; if the energy efficiency degradation degree is acceptable and the load of the other frequency adjustable modules is at a higher position but the frequency of the load meets the load, the frequency of the other frequency adjustable modules can be set as a first target frequency; otherwise, the frequencies of the other frequency tunable modules are not set to the first target frequency. Compared with directly setting the frequencies of other frequency-adjustable modules as the first target frequency after the first target frequency is acquired, the electronic device shown in fig. 7 can effectively adjust the frequencies of other frequency-adjustable modules as required; on one hand, the frequency modulation device is unnecessary to set, and the additional expense caused by frequent frequency modulation is reduced; on the other hand, if the energy efficiency degradation is acceptable, the situation that the energy efficiency degradation is serious and the power consumption is abnormally increased is avoided.
Referring to fig. 8, fig. 8 is a flow chart of a frequency modulation method performed by the electronic device shown in fig. 7; the frequency modulation method includes, but is not limited to, the following steps or operations:
step 801: the increase in frequency of the first frequency tunable module is monitored.
The electronic equipment can monitor the frequency change condition of each frequency adjustable module through the frequency modulation monitor. Specifically, after the system is started, the electronic device sets the frequency modulation monitor to monitor the frequency rise of the first frequency adjustable module and the second frequency adjustable module of the common voltage. The triggering condition of the frequency increase of the frequency adjustable module includes load increase of the frequency adjustable module, starting performance mode of the frequency adjustable module, setting of other non-shared voltage modules (for example, when the frequency of a CPU is increased and involved IO is more, the system can increase the working frequency of the cache, but the CPU and the cache do not necessarily share voltage), and the like.
Step 802: a voltage rise common to the first frequency tunable module and the second frequency tunable module is monitored.
The electronic device can monitor the change condition of the common voltage through the frequency modulation monitor.
Step 803: the boosted common voltage is obtained, and a first target frequency (e.g., a minimum frequency) of the second frequency tunable module at the boosted common voltage is obtained.
Wherein the electronic device may obtain the boosted common voltage and the first target frequency (e.g., the minimum frequency) via the fm monitor.
Step 804: and judging whether the frequency of the second frequency adjustable module meets the load or not.
The electronic equipment can judge whether the frequency of the second frequency adjustable module meets the load through the load judging module; if the frequency of the second frequency adjustable module meets the load, step 805 is executed; if the frequency of the second frequency tunable module does not satisfy the load, step 807 is executed.
Step 805: and judging whether the load of the second frequency adjustable module is low or not, namely judging whether the load of the second frequency adjustable module is low or not to raise the frequency, wherein the performance of the second frequency adjustable module is hardly affected.
The electronic equipment can judge whether the load of the second frequency adjustable module is lower through the load judging module; if the load of the second frequency adjustable module is lower, returning to execute step 801; otherwise, step 806 is performed.
Step 806: and judging whether the first target frequency is acceptable or not according to the energy efficiency ratio curve.
The electronic equipment can judge whether the first target frequency is acceptable or not according to the energy efficiency ratio curve through the load judging module; if the first target frequency is not acceptable, returning to step 801; otherwise, step 807 is performed.
Step 807: the frequency of the second frequency tunable module is set to the first target frequency.
The electronic device may set the frequency of the second frequency adjustable module to the first target frequency through the frequency setting module.
Step 808: the performance of the whole machine is improved, and the system runs continuously.
After step 808, the process returns to step 801.
It should be noted that the steps or operations described in fig. 8 may correspond to the description of the embodiment shown in fig. 7.
Referring to fig. 9, fig. 9 is a schematic diagram of a component architecture of another electronic device according to an embodiment of the present disclosure; the electronic device may be the electronic device in the embodiment shown in fig. 6, where the electronic device includes an application layer, a kernel layer, and a chip layer; the application layer and the kernel layer of the electronic device shown in fig. 9 are the same as the application layer and the kernel layer of the electronic device shown in fig. 7, respectively, and the description shown in fig. 7 may be directly referred to, and will not be repeated here.
The chip layer of the electronic device shown in fig. 9 is an MTK breguet 1000 chip, and the electronic device may be a mobile phone using the MTK breguet 1000 chip; in the breguet 1000 chip, the three-level buffer and the small core CPU share a voltage, namely, the three-level buffer corresponds to the first frequency adjustable module and the small core CPU corresponds to the second frequency adjustable module. When the load increases due to more processes started by the application layer, the frequency of the large core CPU in the breguet 1000 chip increases, so that the frequency of the three-level cache is increased along with the increase of the data stream to meet the requirement of high data stream. The increased frequency of the tertiary cache may result in an increased voltage common to the tertiary cache and the coreless CPU. In order to efficiently use the raised common voltage, improve the performance and user experience of the whole machine, the electronic device may perform the following steps or operations:
(1) Setting a frequency modulation monitor.
The main purpose of setting up the frequency modulation monitor is that: monitoring the frequency change condition of the three-level cache, and when the frequency of the three-level cache needs to be increased, acquiring the frequency change condition in time by the frequency modulation monitor; judging whether the voltage shared by the three-level cache and the small core CPU is raised or not according to the frequency to which the three-level cache is to be raised, and if the voltage shared by the three-level cache and the small core CPU is raised, acquiring a first target frequency (such as a minimum frequency) of the small core CPU under the raised shared voltage; otherwise, the frequency modulation monitor continues to monitor the frequency-raising condition of the next three-level buffer.
Referring to fig. 10, fig. 10 is a flowchart of a frequency acquisition method performed by the electronic device shown in fig. 9; the frequency acquisition method includes, but is not limited to, the following steps or operations:
step 1001: setting a frequency modulation monitor.
Step 1002: the system works normally.
Step 1003: it is monitored that the three-level buffer is about to be up-scaled.
The electronic device can monitor that the tertiary buffer is to be up-converted through the frequency modulation monitor.
Step 1004: and judging whether the three-level buffer ascending frequency causes the voltage common to the three-level buffer and the small core CPU to rise or not.
The electronic equipment can judge whether the three-level cache frequency rise causes the voltage rise shared by the three-level cache and the small-core CPU through the frequency modulation monitor; if the voltage shared by the three-level cache and the small core CPU increases due to the frequency rising of the three-level cache, executing step 1005; otherwise, go back to step 1002.
Step 1005: the first target frequency of the small core CPU at the raised common voltage is obtained.
Wherein the electronic device may obtain the first target frequency (e.g., the minimum frequency) through the fm listener.
(2) After the common voltage rises, it is determined whether the frequency of the small core CPU needs to be raised.
After the first target frequency (for example, the minimum frequency) corresponding to the small core CPU is obtained, it is further required to determine whether the first target frequency can be set. The judging conditions are two: one is the load situation of the small core CPU and the other is based on the energy efficiency ratio curve.
Referring to fig. 11, fig. 11 is a flowchart of a frequency modulation method performed by the electronic device shown in fig. 9; the frequency modulation method includes, but is not limited to, the following steps or operations:
step 1101: and judging whether the frequency of the small core CPU meets the load or not.
The electronic equipment can judge whether the frequency of the small core CPU meets the load through the load judging module; if the frequency of the small core CPU cannot meet the load, then step 1104 is performed; otherwise, step 1102 is performed.
Wherein, it can be set that when the load of the small core CPU is more than 60%, the frequency of the small core CPU is considered to be unable to satisfy the load.
Step 1102: and judging whether the load of the small core CPU is lower or not.
The electronic equipment can judge whether the load of the small core CPU is low or not through the load judging module, namely, whether the frequency of the small core CPU is low enough to avoid raising the frequency; if the load of the small core CPU is low, step 1105 is executed; otherwise, step 1103 is performed.
Wherein, it may be set that when the load of the small core CPU is not more than 30%, the load of the small core CPU is considered to be low.
Step 1103: and judging whether the energy efficiency degradation degree is acceptable or not after setting the frequency of the small core CPU as the first target frequency.
The electronic equipment can judge whether the energy efficiency degradation degree is acceptable or not after the frequency of the small core CPU is set to be a first target frequency through the energy efficiency judging module; if the energy efficiency degradation is acceptable, go to step 1104; otherwise, step 1105 is performed.
In this case, the degree of whether the energy efficiency deterioration is acceptable may be set to be conservative, and for example, the energy efficiency deterioration is considered unacceptable as long as it is greater than 0.
Step 1104: the frequency of the small core CPU is set to a first target frequency.
The electronic device may set the frequency of the small core CPU to the first target frequency through the frequency setting module.
Step 1105: the frequency of the small core CPU is not set to the first target frequency.
In summary, in the prior art, the frequencies of the small core CPU and the three-stage cache cannot be adjusted in a linkage manner according to the common voltage rise, so that the frequencies of the small core CPU and the three-stage cache are set independently of each other at most, and therefore waste occurs after the common voltage rise. The method and the device can find out the common voltage rising condition caused by the frequency rising of the three-level cache in time, and then determine whether to raise the small-core CPU frequency according to the requirement, so that the problems of voltage waste and slow frequency rising can be solved, and the effects of fast frequency rising and product overall performance improvement are achieved. When the electronic equipment is a mobile phone, the frame loss rate of the mobile phone can be reduced, the user experience is obviously improved, and the test result shows that: the sliding performance of the mobile phone is reduced from the frame loss rate of 0.0855% to the frame loss rate of 0.0658%, and the performance is improved by more than 20%.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a frequency modulation device according to an embodiment of the present disclosure; the frequency modulation device 1200 is applied to electronic equipment, wherein the electronic equipment comprises a first frequency adjustable module and a second frequency adjustable module; the frequency modulation device 1200 comprises a processing unit 1201 and a communication unit 1202, wherein the processing unit 1201 is configured to perform any step of the method embodiment shown in fig. 6, and when performing data transmission such as acquisition, the communication unit 1202 is selectively invoked to complete a corresponding operation. The following is a detailed description.
In one possible implementation, the processing unit 1201 is configured to: if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased; and determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
In one possible implementation manner, the processing unit 1201 is specifically configured to: if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the frequency of the second frequency adjustable module is not increased to the first target frequency; if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment; and if the load of the second frequency adjustable module is larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
In one possible implementation manner, the processing unit 1201 is specifically configured to: if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency; otherwise, the frequency of the second frequency adjustable module is increased to the first target frequency.
In a possible implementation manner, the processing unit 1201 is further configured to: acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module; if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
The frequency modulation device 1200 may further include a storage unit 1203 for storing program codes and data of the electronic apparatus. The processing unit 1201 may be a processor, the communication unit 1202 may be a transceiver, and the storage unit 1203 may be a memory.
It should be noted that the implementation of the respective units of the frequency modulation apparatus 1200 described in fig. 12 may also correspond to the corresponding descriptions of the embodiments shown in fig. 5 to 11. Further, the advantages of the frequency modulation device 1200 described in fig. 12 may be referred to the corresponding descriptions of the embodiments shown in fig. 5 to 11, and the descriptions are not repeated here.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an electronic device 1310 according to an embodiment of the present application, where the electronic device 1310 includes a processor 1311, a memory 1312, and a communication interface 1313, and the processor 1311, the memory 1312, and the communication interface 1313 are connected to each other by a bus 1314.
Memory 1312 includes, but is not limited to, random access memory (random access memory, RAM), read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM), or portable read-only memory (compact disc read-only memory, CD-ROM), which memory 1312 is used for associated computer programs and data. The communication interface 1313 is used to receive and transmit data.
The processor 1311 may be one or more central processing units (central processing unit, CPU), and in the case where the processor 1311 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 1311 in the electronic device 1310 is configured to read the computer program code stored in the memory 1312, and execute the method of any one of the embodiments shown in fig. 6, 8, 10 and 11.
It should be noted that implementation of the operations of the electronic device 1310 described in fig. 13 may also correspond to the respective descriptions of the embodiments shown with reference to fig. 5 to 11. Also, the advantageous effects of the electronic device 1310 described in fig. 13 may refer to the corresponding descriptions of the embodiments shown in fig. 5 to 11, and the descriptions are not repeated here.
The embodiment of the application also provides a chip, which comprises at least one processor, a memory and an interface circuit, wherein the memory, the transceiver and the at least one processor are interconnected through a circuit, and the at least one memory stores a computer program; the computer program, when executed by the processor, implements the method flow of any one of the embodiments shown in fig. 6, 8, 10, and 11.
The embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, which when run on a computer, implements the method flow of any one of the embodiments shown in fig. 6, 8, 10 and 11.
The present embodiments also provide a computer program product, where the method flow of any one of the embodiments shown in fig. 6, 8, 10 and 11 is implemented when the computer program product runs on a computer.
It should be appreciated that the processors referred to in the embodiments of the present application may be central processing units (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be understood that the memory referred to in the embodiments of the present application may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DR RAM).
Note that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, the memory (storage module) is integrated into the processor.
It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
It should also be understood that the first, second, third and various numerical numbers referred to herein are merely descriptive convenience and are not intended to limit the scope of the present application.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The above functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method shown in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (15)

1. The frequency modulation method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first frequency adjustable module and a second frequency adjustable module; the method comprises the following steps:
if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased;
And determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
2. The method of claim 1, wherein the determining whether to raise the frequency of the second frequency tunable module to the first target frequency based on the load of the second frequency tunable module comprises:
and if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, not increasing the frequency of the second frequency adjustable module to the first target frequency.
3. The method according to claim 1 or 2, wherein the determining whether to raise the frequency of the second frequency tunable module to the first target frequency according to the load of the second frequency tunable module further comprises:
if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment.
4. A method according to any of claims 1-3, wherein said determining whether to raise the frequency of the second frequency tunable module to the first target frequency based on the load of the second frequency tunable module further comprises:
and if the load of the second frequency adjustable module is larger than a second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
5. The method of any of claims 2-4, wherein the determining whether to raise the frequency of the second frequency tunable module to the first target frequency based on an energy efficiency of the second frequency tunable module or an energy efficiency of the electronic device comprises:
if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency.
6. The method according to any one of claims 1-5, further comprising:
Acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module;
if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
7. The frequency modulation device is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first frequency adjustable module and a second frequency adjustable module; the device comprises:
a processing unit for:
if the frequency of the first frequency adjustable module is increased to cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to be increased, acquiring a first target frequency of the second frequency adjustable module under a first common voltage, wherein the first common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased;
And determining whether to raise the frequency of the second frequency adjustable module to the first target frequency according to the load of the second frequency adjustable module.
8. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
and if the load of the second frequency adjustable module is not greater than a first preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, not increasing the frequency of the second frequency adjustable module to the first target frequency.
9. The device according to claim 7 or 8, characterized in that the processing unit is specifically configured to:
if the load of the second frequency adjustable module is larger than the first preset threshold value and not larger than the second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, determining whether to increase the frequency of the second frequency adjustable module to the first target frequency according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment.
10. The apparatus according to any one of claims 7-9, wherein the processing unit is specifically configured to:
And if the load of the second frequency adjustable module is larger than a second preset threshold value after the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, increasing the frequency of the second frequency adjustable module to the first target frequency.
11. The device according to any one of claims 8-10, characterized in that the processing unit is specifically configured to:
if the frequency of the second frequency adjustable module is increased to the first target frequency, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is reduced by a third preset threshold value, and the frequency of the second frequency adjustable module is not increased to the first target frequency.
12. The apparatus according to any one of claims 7-11, wherein the processing unit is further configured to:
acquiring the frequency of the first frequency adjustable module after the frequency is increased under the condition of monitoring the frequency increase of the first frequency adjustable module;
if the frequency of the first frequency adjustable module after the frequency increase is greater than a second target frequency, determining that the frequency increase of the first frequency adjustable module causes the voltage increase shared by the first frequency adjustable module and the second frequency adjustable module, wherein the second target frequency is the maximum frequency of the first frequency adjustable module under a second common voltage, and the second common voltage is the voltage shared by the first frequency adjustable module and the second frequency adjustable module before the frequency increase of the first frequency adjustable module.
13. An electronic device, comprising:
one or more processors;
a non-transitory computer readable storage medium coupled to the processor and storing a program for execution by the processor, wherein the program, when executed by the processor, causes the electronic device to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium comprising program code for performing the method of any of claims 1-6 when executed by a computer device.
15. A chip, comprising: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method of any of claims 1-6.
CN202111658322.1A 2021-12-30 2021-12-30 Frequency modulation method and related equipment Pending CN116414216A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111658322.1A CN116414216A (en) 2021-12-30 2021-12-30 Frequency modulation method and related equipment
PCT/CN2022/142713 WO2023125636A1 (en) 2021-12-30 2022-12-28 Frequency adjustment method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111658322.1A CN116414216A (en) 2021-12-30 2021-12-30 Frequency modulation method and related equipment

Publications (1)

Publication Number Publication Date
CN116414216A true CN116414216A (en) 2023-07-11

Family

ID=86997972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111658322.1A Pending CN116414216A (en) 2021-12-30 2021-12-30 Frequency modulation method and related equipment

Country Status (2)

Country Link
CN (1) CN116414216A (en)
WO (1) WO2023125636A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001035200A1 (en) * 1999-11-09 2001-05-17 Advanced Micro Devices, Inc. Dynamically adjusting a processor's operational parameters according to its environment
CN103246340A (en) * 2012-02-06 2013-08-14 索尼公司 Device and method for dynamically adjusting frequency of central processing unit
US10551868B2 (en) * 2016-03-16 2020-02-04 Mediatek, Inc. Multiprocessor systems having processors with different processing capabilities connecting to a clock generator
CN105843391B (en) * 2016-03-28 2018-09-14 宇龙计算机通信科技(深圳)有限公司 The method, apparatus and terminal of frequency modulation tune core
CN111324198B (en) * 2020-03-18 2023-08-18 深圳市亿晟科技有限公司 Method for dynamically adjusting frequency and voltage of android device according to load

Also Published As

Publication number Publication date
WO2023125636A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
AU2011323985B2 (en) Application lifetime management
CN106133641B (en) Devices, systems, and methods for the dynamic power management between the heterogeneous processor in shared power domain
CN109068332B (en) Data transmission method and device
CN106997351B (en) Resource cache management method, system and device
CN103988147A (en) Dynamically entering low power states during active workloads
US11126301B2 (en) Power adapter control method and control apparatus
US8819379B2 (en) Allocating memory based on performance ranking
CN112469075B (en) Service prediction method and device for energy-saving cell
CN112868265A (en) Network resource management method, management device, electronic device and storage medium
CN110837456B (en) Control method and device and electronic equipment
JP2024516005A (en) COMMUNICATION PROCESSING METHOD, COMMUNICATION DEVICE, AND COMMUNICATION SYSTEM
CN105577573B (en) Information processing method and electronic equipment
CN1825290A (en) Method for management memory and memory
US10637588B1 (en) Method for eliminating adjacent channel interference and small base station
CN107113092A (en) Message transmission/method of reseptance, coverage enhancement grade determination/acquisition methods and relevant device
CN112752319A (en) Network switching method, device, terminal and storage medium
CN116414216A (en) Frequency modulation method and related equipment
CN112437457B (en) Cell mobile network control method, device, equipment and storage medium
CN112527615B (en) Equipment determination method and device, electronic equipment and storage medium
US10893485B2 (en) Carrier power control method and apparatus, storage medium, and computer program product
CN110018797B (en) Data migration method, device and equipment and readable storage medium
EP2983105B1 (en) Electronic device, on-chip memory and method of operating the on-chip memory
CN114020208B (en) Data garbage collection method, device, computer equipment and storage medium
CN113099509B (en) Service selection method, device, terminal and storage medium
WO2018018770A1 (en) Method and terminal apparatus for scheduling of multiple service provider subscription networks, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication