WO2023125636A1 - 调频方法和相关设备 - Google Patents
调频方法和相关设备 Download PDFInfo
- Publication number
- WO2023125636A1 WO2023125636A1 PCT/CN2022/142713 CN2022142713W WO2023125636A1 WO 2023125636 A1 WO2023125636 A1 WO 2023125636A1 CN 2022142713 W CN2022142713 W CN 2022142713W WO 2023125636 A1 WO2023125636 A1 WO 2023125636A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frequency
- adjustable
- module
- increase
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000015654 memory Effects 0.000 claims description 36
- 238000012545 processing Methods 0.000 claims description 28
- 238000003860 storage Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 6
- 230000007423 decrease Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 230000015556 catabolic process Effects 0.000 description 13
- 238000006731 degradation reaction Methods 0.000 description 13
- 238000005516 engineering process Methods 0.000 description 11
- 230000008859 change Effects 0.000 description 10
- 239000002699 waste material Substances 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3296—Power saving characterised by the action undertaken by lowering the supply or operating voltage
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/08—Clock generators with changeable or programmable clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0811—Multiuser, multiprocessor or multiprocessing cache systems with multilevel cache hierarchies
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation 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/505—Allocation 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
Definitions
- the embodiment of the present application relates to the field of chip technology, in particular to a frequency modulation method and related equipment
- the small-core central processing unit Central Processing Unit, CPU
- the level 3 cache (abbreviated as l3 cache) share the voltage;
- the frequency of the L3 cache may be increased, which may cause the shared voltage to increase, while the small-core CPU fails to increase the frequency in time and continues to work at a low frequency, causing the small-core
- the CPU wastes high voltage or cannot meet the load, so the small-core CPU has problems such as low energy efficiency and insufficient performance.
- the present application provides a frequency modulation method and related equipment, and the frequency of the frequency adjustable module of the common voltage can be adjusted in conjunction to ensure high energy efficiency and sufficient performance.
- the present application relates to a frequency modulation method, which is applied to an electronic device, and the electronic device includes a first frequency adjustable module and a second frequency adjustable module; the method includes: if the first frequency is adjustable The frequency increase of the module causes the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase, then obtain the first target frequency of the second frequency adjustable module under the first common voltage , 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; according to the second frequency adjustable The load of the module determines whether to increase the frequency of the second frequency adjustable module to the first target frequency.
- the first target frequency may be any frequency of the second adjustable frequency module under the first common voltage, preferably the minimum frequency of the second adjustable frequency module under the first common voltage.
- the first frequency adjustable module and the second frequency adjustable module in the electronic device share a voltage, and when the frequency of the first frequency adjustable module increases and the common voltage increases, the second frequency is obtained The first target frequency of the adjustable module under the raised common voltage, and then 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.
- the frequencies of the first frequency adjustable module and the second frequency adjustable module of the common voltage can be adjusted in conjunction, that is, when the frequency of the first frequency adjustable module increases and the common voltage increases, the frequency of the second frequency adjustable module
- the frequency of the frequency can also be increased in time to avoid voltage waste or failure to meet the load of the second frequency adjustable module, thereby ensuring high energy efficiency and sufficient performance.
- the frequency linkage adjustment of the first frequency adjustable module and the second frequency adjustable module is still adjusted on demand, that is, when the frequency of the first frequency adjustable module increases, it is determined according to the load of the second frequency adjustable module Whether to link the frequency increase of the second adjustable frequency module; for example, if the second adjustable frequency module does not need to increase the frequency to meet the load, the frequency of the second adjustable frequency module will not be increased; if the second frequency can be If the tuning module needs to increase the frequency to meet the load, then increase the frequency of the second frequency adjustable module; so as not to increase the frequency of the second frequency adjustable module unnecessarily, and reduce the additional overhead caused by frequent frequency adjustment.
- the determining 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 includes: if the After the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, and the load of the second frequency adjustable module is not greater than the first preset threshold, the second frequency adjustable The frequency of the module is increased to the first target frequency; if the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the load of the second frequency adjustable module is greater than the If the first preset threshold is not greater than the second preset threshold, then it is determined whether to increase the frequency of the second frequency adjustable module to The first target frequency; if the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, the load of the second frequency adjustable module is greater than the second preset threshold , then increase the frequency of the second frequency adjustable module to the first target frequency.
- the frequency of the first adjustable frequency module increases, causing the voltage shared by the first adjustable frequency module and the second adjustable frequency module to increase, if the load of the second adjustable frequency module is not greater than The first preset threshold indicates that the load of the second adjustable frequency module is relatively low, and it is not necessary to increase the frequency of the second adjustable frequency module to meet the load requirement, so the frequency of the second adjustable frequency module is not increased to The first target frequency; therefore, the frequency of the second frequency adjustable module is not increased unnecessarily, and the extra overhead caused by frequent frequency adjustment is reduced.
- the load of the second frequency adjustable module is greater than the second preset threshold, it means that the load of the second frequency adjustable module is relatively high, and the frequency of the second frequency adjustable The frequency of the adjustable module is increased to the first target frequency; thus, the frequency of the second frequency adjustable module can be increased in time to avoid voltage waste and unsatisfactory load.
- the load of the second adjustable frequency module is greater than the first preset threshold and not greater than the second preset threshold, it means that the load of the second adjustable frequency module is neither too low nor too high, and the frequency of the second adjustable frequency module In the case that it can be increased or not, it is determined 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 device; Therefore, after the frequency of the second frequency adjustable module is increased, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is prevented from decreasing too much.
- the determining whether to increase the frequency of the second frequency adjustable module to the first target according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device frequency including: if the frequency of the second adjustable frequency module is increased to the first target frequency, the energy efficiency of the second adjustable frequency module or the energy efficiency of the electronic device is reduced by a third preset threshold, Then the frequency of the second adjustable frequency module is not raised to the first target frequency; otherwise, the frequency of the second adjustable frequency module is raised to the first target frequency.
- the energy efficiency of the second adjustable frequency module or the energy efficiency of the electronic device decreases by a third preset threshold, which means that the second The frequency of the second frequency adjustable module, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment will be reduced too much, then the frequency of the second frequency adjustable module will not be increased to the first target frequency, thereby ensuring the second The energy efficiency of the frequency adjustable module or the energy efficiency of the electronic equipment is high, and the performance is sufficient; otherwise, the frequency of the second frequency adjustable module will be increased, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment will not be reduced If the frequency is too high, increase the frequency of the second frequency adjustable module to the first target frequency, thereby ensuring that the performance of the second frequency adjustable module is sufficient, and the energy efficiency of the second frequency adjustable module or the energy efficiency of electronic equipment is also high .
- the method further includes: in the case of monitoring the frequency increase of the first frequency adjustable module, acquiring the frequency of the first frequency adjustable module after the frequency increase; If the frequency of the first adjustable frequency module after the frequency increase is greater than the second target frequency, it is determined that the frequency increase of the first adjustable frequency module causes the first adjustable frequency module and the The voltage shared by the second frequency adjustable module increases, the second target frequency is the maximum frequency of the first frequency adjustable module under the second common voltage, and the second common voltage is the first frequency adjustable The voltage shared by the first adjustable frequency module and the second adjustable frequency module before the frequency of the adjustable module increases.
- the increased frequency of the first adjustable frequency module is obtained; if the increased frequency of the first adjustable frequency module is greater than The maximum frequency of the first frequency adjustable module at the common voltage before the increase, indicating that the frequency increase of the first frequency adjustable module will cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase .
- the frequency increase of the first frequency adjustable module can be monitored in time, and the voltage shared by the first frequency adjustable module and the second frequency adjustable module can be found in time to increase, so as to shorten the wasted time of the increased common voltage, The time for acquiring the first target frequency corresponding to the second frequency adjustable module is reduced.
- the present application relates to a frequency modulation device, and the beneficial effect may refer to the description of the first aspect, and details are not repeated here.
- the frequency modulation device has the function of implementing the behavior in the method example of the first aspect above.
- the functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
- the hardware or software includes one or more modules corresponding to the above functions.
- the device is applied to an electronic device, and the electronic device includes a first frequency adjustable module and a second frequency adjustable module; the device includes: a processing unit configured to: if the The increase of the frequency of the first frequency adjustable module causes the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase, then obtain the second frequency adjustable module under the first common voltage the first target frequency, 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; according to the The load of the second adjustable frequency module determines whether to increase the frequency of the second adjustable frequency module to the first target frequency.
- the processing unit is specifically configured to: if the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, the second frequency adjustable The load of the module is not greater than the first preset threshold, then the frequency of the second adjustable frequency module is not increased to the first target frequency; if the first adjustable frequency module and the second frequency can be After the voltage shared by the adjustable modules increases, the load of the second adjustable frequency module is greater than the first preset threshold and not greater than the second preset threshold, then according to the energy efficiency of the second adjustable frequency module or the The energy efficiency of the electronic equipment determines whether to raise the frequency of the second adjustable frequency module to the first target frequency; if the voltage shared by the first adjustable frequency module and the second adjustable frequency module If the load of the second adjustable frequency module is greater than the second preset threshold, then the frequency of the second adjustable frequency module is increased to the first target frequency.
- the processing unit is specifically configured to: if the frequency of the second adjustable frequency module is increased to the first target frequency, the energy efficiency of the second adjustable frequency module or the energy efficiency of the electronic device decreases by a third preset threshold, then the frequency of the second adjustable frequency module is not raised to the first target frequency; otherwise, the frequency of the second adjustable frequency module is increased to the first target frequency; raised to the first target frequency.
- the processing unit is further configured to: in the case of monitoring the frequency increase of the first frequency adjustable module, acquire the frequency increase of the first frequency adjustable module frequency; if the frequency of the first adjustable frequency module after the frequency increase is greater than the second target frequency, it is determined that the frequency increase of the first adjustable frequency module causes the first adjustable frequency module to The voltage shared with the second frequency adjustable module is increased, the second target frequency is the maximum frequency of the first frequency adjustable module under the second common voltage, and the second common voltage is the first The frequency of a frequency adjustable module increases the voltage shared by the first frequency adjustable module and the second frequency adjustable module.
- the present application relates to an electronic device, including: one or more processors; a non-transitory computer-readable storage medium coupled to the processors and storing programs executed by the processors, wherein the When the program is executed by the processor, the electronic device executes the method in any possible embodiment of the first aspect.
- the present application relates to a non-transitory computer-readable storage medium, including program codes, which, when executed by a computer device, are used to perform the method in any possible embodiment of the first aspect.
- the present application relates to a chip, including: a processor, configured to call and run a computer program from a memory, so that a device installed with the above-mentioned chip executes any of the possible embodiments of the first aspect. method.
- 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.
- FIG. 1 is a schematic diagram of a common voltage scenario provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of another common voltage scenario provided by the embodiment of the present application.
- FIG. 3 is a frequency distribution diagram of a certain chip core CPU and L3 cache provided by the embodiment of the present application;
- FIG. 4 is a voltage distribution diagram of a small-core CPU and L3 cache of a chip provided by the embodiment of the present application;
- FIG. 5 is a schematic diagram of another common voltage scenario provided by the embodiment of the present application.
- FIG. 6 is a schematic flowchart of a frequency modulation method provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of a component architecture of an electronic device provided by an embodiment of the present application.
- FIG. 8 is a schematic 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 provided by an embodiment of the present application.
- FIG. 10 is a schematic flowchart of a frequency acquisition method performed by the electronic device shown in FIG. 9;
- FIG. 11 is a schematic 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 provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- Energy efficiency refers to the ratio of theoretically functioning energy to the total energy actually consumed in providing services to end users, also known as energy efficiency ratio.
- Energy efficiency ratio curve generally provided by the chip manufacturer or measured in the laboratory, it can reflect the relationship between frequency, voltage and energy efficiency ratio.
- Level 3 cache level 3 cache, abbreviated as l3 cache: The process of reading data by the central processing unit (Central Processing Unit, CPU) is: first search from the cache file, and automatically read it after finding it in the cache file , and then input to the CPU for processing; of course, if the corresponding cache file is not found in the cache, it will be read from the memory and transmitted to the CPU for processing.
- the third-level cache is a cache designed for data that misses after reading the second-level cache.
- the first-level cache is built into the CPU and runs at the same speed as the CPU to effectively improve the operating efficiency of the CPU; the second-level cache is for A cache designed to coordinate the speed between the first-level cache and memory.
- (4) Load refers to the ratio of the module running time to this period of time within a certain period of time.
- Power consumption refers to the amount of energy consumed per unit time.
- Frame loss rate refers to the ratio of the number of lost frames to the theoretical total number of frames within a period of time.
- Related technology 1 has the following problem: it will increase the power consumption of the whole electronic product installed with the first frequency adjustable module and the second frequency adjustable module, thereby deteriorating battery life and affecting user experience.
- the technical problems to be solved in the present application include: how to make full use of power consumption and improve performance in a shared voltage scenario.
- this application provides the following technical solutions: In the scenario where multiple frequency adjustable modules share a voltage, when the frequency adjustment of one of the frequency adjustable modules causes the shared voltage to rise, select whether to link according to needs Adjust the frequency of other frequency adjustable modules to fully utilize power consumption, improve performance, and reduce frame loss rate.
- Figure 5 is a schematic diagram of the shared voltage between the first frequency adjustable module and the second frequency adjustable module.
- the frequencies of the first frequency adjustable module and the second frequency adjustable module can be adjusted independently. When one When the frequency adjustment of the frequency adjustable module causes the common voltage to rise, it can be linked with the frequency adjustment of another frequency adjustable module. As shown in Figure 5, when the frequency adjustment (for example, frequency increase) of the first frequency adjustable module causes the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase, the linkage of the second frequency adjustable module The frequency of the module is increased.
- the linkage adjustment is not made according to the same ratio of the maximum frequency of the two frequency adjustable modules, but according to the load of the second frequency adjustable module
- the frequency of the second frequency adjustable module is selected in conjunction with actual requirements such as the energy efficiency of the second frequency adjustable module or the energy efficiency of electronic equipment. Wherein, a specific linkage adjustment process of the frequency is shown in FIG. 6 .
- FIG. 6 is a flowchart showing a process 600 of a frequency modulation method according to an embodiment of the present application.
- Process 600 is described as a series of steps or operations. It should be understood that process 600 may be performed in various orders and/or concurrently, and is not limited to the order of execution shown in FIG. 6 .
- the process 600 can be performed by an electronic device, and the electronic device includes a first frequency adjustable module and a second frequency adjustable module; the process 600 includes but is not limited to the following steps or operations:
- Step 601 If the frequency increase of the first frequency adjustable module causes the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase, obtain the second frequency adjustable module The first target frequency under the first common voltage, the first common voltage is shared by the first frequency adjustable module and the second frequency adjustable module after the frequency of the first frequency adjustable module is increased voltage.
- the electronic device can obtain the frequency change of any frequency adjustable module of the common voltage in time, and when the frequency adjustment of a certain frequency adjustable module causes the common voltage to rise, the electronic device can obtain the raised common voltage , so as to further obtain the first target frequency of the other frequency adjustable modules sharing the voltage under the raised common voltage.
- the first target frequency may be any frequency of other frequency adjustable modules under the raised common voltage, preferably the minimum frequency of other frequency adjustable modules under the raised common voltage.
- the first frequency adjustable module and the second frequency adjustable module in the electronic device share the same voltage, and the electronic device can obtain the frequency changes of the first frequency adjustable module and the second frequency adjustable module in time, if the first frequency
- the electronic device can obtain the magnitude of the increased shared voltage, that is, the electronic device can The magnitude of the first common voltage is obtained, so as to further obtain the first target frequency of the second frequency adjustable module under the first common voltage.
- the first target frequency may be any frequency of the second adjustable frequency module under the first common voltage, preferably the minimum frequency of the second adjustable frequency module under the first common voltage.
- Step 602 Determine 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 frequency adjustment of a certain frequency adjustable module causes the common voltage to rise, it can be obtained by the electronic equipment in time, so that the frequency of other frequency adjustable modules can be adjusted in conjunction; while adjusting the frequency of other frequency adjustable modules During the process, whether to adjust the frequency of other frequency adjustable modules can be determined according to the loads of other frequency adjustable modules.
- the electronic device acquires the first target corresponding to the second adjustable frequency module. frequency, 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.
- the first frequency adjustable module and the second frequency adjustable module in the electronic device share a voltage, and when the frequency of the first frequency adjustable module increases and the common voltage increases, the second frequency is obtained The first target frequency of the adjustable module under the raised common voltage, and then 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.
- the frequencies of the first frequency adjustable module and the second frequency adjustable module of the common voltage can be adjusted in conjunction, that is, when the frequency of the first frequency adjustable module increases and the common voltage increases, the frequency of the second frequency adjustable module
- the frequency of the frequency can also be increased in time to avoid voltage waste or failure to meet the load of the second frequency adjustable module, thereby ensuring high energy efficiency and sufficient performance.
- the frequency linkage adjustment of the first frequency adjustable module and the second frequency adjustable module is still adjusted on demand, that is, when the frequency of the first frequency adjustable module increases, it is determined according to the load of the second frequency adjustable module Whether to link the frequency increase of the second adjustable frequency module; for example, if the second adjustable frequency module does not need to increase the frequency to meet the load, the frequency of the second adjustable frequency module will not be increased; if the second frequency can be If the tuning module needs to increase the frequency to meet the load, then increase the frequency of the second frequency adjustable module; so as not to increase the frequency of the second frequency adjustable module unnecessarily, and reduce the additional overhead caused by frequent frequency adjustment.
- the first frequency adjustable module and the second frequency adjustable module can be any two modules sharing the same voltage. It should be understood that when there are only two modules sharing the same voltage, the increase in the frequency of one of the modules causes the increase in the same voltage, and the other module is linked to increase the frequency as required, so the first frequency adjustable module is one of the frequency-adjustable modules.
- the second frequency adjustable module is another module that is linked to increase the frequency as needed; when there are more than two modules sharing the same voltage, the frequency of one of the modules increases.
- each module in the other modules is linked to increase the frequency as required, so the first frequency adjustable module is the module in which the frequency rises and the same voltage rises, and the second frequency is adjustable
- the module is any one of the other modules that are linked to increase the frequency on demand.
- the determining 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 includes: if the After the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, and the load of the second frequency adjustable module is not greater than the first preset threshold, the second frequency adjustable The frequency of the module is increased to the first target frequency; if the voltage shared by the first frequency adjustable module and the second frequency adjustable module is increased, the load of the second frequency adjustable module is greater than the If the first preset threshold is not greater than the second preset threshold, then it is determined whether to increase the frequency of the second frequency adjustable module to The first target frequency; if the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, the load of the second frequency adjustable module is greater than the second preset threshold , then increase the frequency of the second frequency adjustable module to the first target frequency.
- the judging conditions include load judging conditions and energy efficiency judging conditions. They are described as follows:
- the load determination condition is: after the frequency of one of the frequency adjustable modules rises, causing the common voltage to rise, if the load of other frequency adjustable modules is not greater than the first preset threshold, it means that the other frequency adjustable modules
- the load of the other frequency adjustable modules is low, and increasing the frequency has almost no effect on the performance of other frequency adjustable modules, so there is no need to increase the frequency of other frequency adjustable modules, that is, the frequency of other frequency adjustable modules does not need to be set as the first target frequency; If the load of other frequency adjustable modules is greater than the second preset threshold, it means that the frequency of other frequency adjustable modules cannot meet the load, so it is necessary to increase the frequency of other frequency adjustable modules, that is, the frequency of other frequency adjustable modules can
- the first target frequency is set; if the load of other frequency adjustable modules is greater than the first preset threshold and not greater than the second preset threshold, then the energy efficiency determination condition is passed.
- the size of the first preset threshold and the second preset threshold can be selected according to the actual application scenario of the frequency adjustable module; as far as the second preset threshold is concerned, if high performance is required, the second preset threshold can be set to The low point can instead be set to the high point by the second preset threshold.
- 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, it is considered that the frequency of the frequency adjustable module is low, and increasing the frequency will affect the The performance of the adjustable frequency module has almost no influence;
- the second preset threshold is set to 60% of the full load, when the actual working load of the adjustable frequency module exceeds 60% of the full load, it is considered that the adjustable frequency module is The frequency cannot meet the load.
- the energy efficiency judgment condition is: the frequency of one of the frequency adjustable modules increases, resulting in an increase in the common voltage, and the first target frequency of the other frequency adjustable modules under the increased common voltage is obtained, if If the frequency of other frequency adjustable modules is set to the first target frequency, the energy efficiency of other frequency adjustable modules or the energy efficiency of electronic equipment is reduced by the third preset threshold, which means that raising the frequency of other frequency adjustable modules will make other frequency The energy efficiency of the adjustable module or the energy efficiency of the electronic equipment has been reduced too much (or seriously deteriorated), and the degree of reduction (or deterioration) is unacceptable, so the frequency of other frequency adjustable modules should not be set as the first target frequency; otherwise, explain Raising the frequency of other frequency adjustable modules will not reduce the energy efficiency of other frequency adjustable modules or the energy efficiency of electronic equipment too much, and the degree of reduction is acceptable, so the frequency of other frequency adjustable modules can be set as the first target frequency.
- the size of the third preset threshold can be selected according to the actual application scenario of the frequency adjustable module or the actual application scenario of the electronic device; if performance is pursued, the third preset threshold can be set to a larger value; if long-term battery life, the third preset threshold may be set to a smaller value. For example, when pursuing long battery life, the third preset threshold is set to 0.
- 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 judgment can be realized based on the energy efficiency ratio curve, and the energy efficiency ratio curve can reflect the relationship between frequency, voltage and energy efficiency, so that when the increased shared voltage (such as the first common voltage) is obtained, and the obtained After the first target frequency, based on the relationship between frequency, voltage and energy efficiency in the energy efficiency ratio curve, it is determined to set the frequency of other frequency adjustable modules under the raised common voltage (such as the first common voltage) to After the first target frequency, the energy efficiency of the other frequency adjustable modules or the energy efficiency of the electronic equipment is greater, so as to determine the reduction degree of the energy efficiency of other frequency adjustable modules or the energy efficiency of the electronic equipment.
- the frequency of the first adjustable frequency module increases, causing the voltage shared by the first adjustable frequency module and the second adjustable frequency module to increase, if the load of the second adjustable frequency module is not greater than The first preset threshold indicates that the load of the second adjustable frequency module is relatively low, and it is not necessary to increase the frequency of the second adjustable frequency module to meet the load requirement, so the frequency of the second adjustable frequency module is not increased to The first target frequency; therefore, the frequency of the second frequency adjustable module is not increased unnecessarily, and the extra overhead caused by frequent frequency adjustment is reduced.
- the load of the second frequency adjustable module is greater than the second preset threshold, it means that the load of the second frequency adjustable module is relatively high, and the frequency of the second frequency adjustable The frequency of the adjustable module is increased to the first target frequency; thus, the frequency of the second frequency adjustable module can be increased in time to avoid voltage waste and unsatisfactory load.
- the load of the second adjustable frequency module is greater than the first preset threshold and not greater than the second preset threshold, it means that the load of the second adjustable frequency module is neither too low nor too high, and the frequency of the second adjustable frequency module In the case that it can be increased or not, it is determined 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 device; Therefore, after the frequency of the second frequency adjustable module is increased, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment is prevented from decreasing too much.
- the determining whether to increase the frequency of the second frequency adjustable module to the first target according to the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device frequency including: if the frequency of the second adjustable frequency module is increased to the first target frequency, the energy efficiency of the second adjustable frequency module or the energy efficiency of the electronic device is reduced by a third preset threshold, Then the frequency of the second adjustable frequency module is not raised to the first target frequency; otherwise, the frequency of the second adjustable frequency module is raised to the first target frequency.
- the frequency of the second frequency adjustable module is increased to the first target frequency under the first common voltage, what is the energy efficiency of the second frequency adjustable module or electronic equipment, and thus the second Whether the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic device will reduce the third preset threshold; if it will reduce the third preset threshold, then the frequency of the second frequency adjustable module will not be increased to the first target frequency ; If the third preset threshold cannot be lowered, the frequency of the second adjustable frequency module can be increased to the first target frequency.
- the energy efficiency of the second adjustable frequency module or the energy efficiency of the electronic device decreases by a third preset threshold, which means that the second The frequency of the second frequency adjustable module, the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment will be reduced too much, then the frequency of the second frequency adjustable module will not be increased to the first target frequency, thereby ensuring the second The energy efficiency of the frequency adjustable module or the energy efficiency of the electronic equipment is high, and the performance is sufficient; otherwise, the frequency of the second frequency adjustable module will be increased, and the energy efficiency of the second frequency adjustable module or the energy efficiency of the electronic equipment will not be reduced If the frequency is too high, increase the frequency of the second frequency adjustable module to the first target frequency, thereby ensuring that the performance of the second frequency adjustable module is sufficient, and the energy efficiency of the second frequency adjustable module or the energy efficiency of electronic equipment is also high .
- the method further includes: in the case of monitoring the frequency increase of the first frequency adjustable module, acquiring the frequency of the first frequency adjustable module after the frequency increase; If the frequency of the first adjustable frequency module after the frequency increase is greater than the second target frequency, it is determined that the frequency increase of the first adjustable frequency module causes the first adjustable frequency module and the The voltage shared by the second frequency adjustable module increases, the second target frequency is the maximum frequency of the first frequency adjustable module under the second common voltage, and the second common voltage is the first frequency adjustable The voltage shared by the first adjustable frequency module and the second adjustable frequency module before the frequency of the adjustable module increases.
- the electronic device can obtain the frequency change of any frequency adjustable module of the common voltage in time.
- the frequency of a certain frequency adjustable module is adjusted, for example, when the frequency of a certain frequency adjustable module increases, the electronic device can also Obtain the increased frequency of the frequency adjustable module, and determine whether the increased frequency exceeds the maximum frequency allowed by the frequency adjustable module under the current public voltage; if it exceeds the maximum frequency allowed by the current public voltage, then triggers a common voltage increase.
- the electronic device when the electronic device detects that the frequency of the first adjustable frequency module is increased, it acquires the increased frequency of the first adjustable frequency module, and determines whether the increased frequency of the first adjustable frequency module is greater than the first The maximum frequency of the frequency of the frequency adjustable module under the second common voltage; if it is greater than that, it means that the frequency increase of the first frequency adjustable module will cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase .
- the increased frequency of the first adjustable frequency module is obtained; if the increased frequency of the first adjustable frequency module is greater than The maximum frequency of the first frequency adjustable module at the common voltage before the increase, indicating that the frequency increase of the first frequency adjustable module will cause the voltage shared by the first frequency adjustable module and the second frequency adjustable module to increase .
- the frequency increase of the first frequency adjustable module can be monitored in time, and the voltage shared by the first frequency adjustable module and the second frequency adjustable module can be found in time to increase, so as to shorten the wasted time of the increased common voltage, The time for acquiring the first target frequency corresponding to the second frequency adjustable module is reduced.
- the process 600 shown in FIG. 6 is further described below through specific examples shown in FIGS. 7 to 11 .
- FIG. 7 is a schematic diagram of the component architecture of an electronic device provided by an embodiment of the present application.
- 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 chip layer.
- the application layer refers to some application programs (Applicatio, APP) that the user can directly perceive.
- the kernel layer is located between the application layer and the chip layer. It can provide a deployment and operating environment for the application layer upward, and can set the chip layer parameters of the physical hardware type downward.
- the kernel layer is implemented by software.
- the kernel layer includes a frequency modulation device, and the frequency modulation device includes a frequency modulation listener, a load determination module, an energy efficiency determination module and a frequency setting module (not shown in FIG. 7 ).
- the chip layer includes modules with a common voltage, for example, a first frequency adjustable module and a second frequency adjustable module including a common voltage, and the second frequency adjustable module is only a symbolic representation of the common voltage with the first frequency adjustable module.
- One of the modules may actually have multiple modules that share a voltage with the first frequency adjustable module.
- the frequency modulation listener can obtain the frequency to which the first adjustable frequency module will increase frequency in time.
- the FM listener can also know in time whether the up-frequency of the first frequency-tunable module causes the voltage shared by the first frequency-tunable module and the second frequency-tunable module to rise; As a result, the common voltage rises, that is, the common voltage rises to the first common voltage, and the frequency modulation monitor can obtain the first target frequency (eg, the minimum frequency) of the second adjustable frequency module under the first common voltage in time.
- the FM device can determine whether to set the frequency of the second frequency adjustable module to the first target frequency as required. the first target frequency. Specifically, the load judging module needs to judge according to the load of the second frequency adjustable module, and the energy efficiency judging module judges according to the energy efficiency of the second frequency adjustable module or the energy efficiency of electronic equipment, so as to determine whether to use the second frequency adjustable module The frequency of is set as the first target frequency.
- the load judging module judges: whether the frequency of the second adjustable frequency module can satisfy the load, and whether the load of the second adjustable frequency module is so low that raising the frequency has almost no influence on the performance of the second adjustable frequency module. If the load determination 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; The load of the adjustable module is low, and raising the frequency has almost no impact on the performance of the second frequency adjustable module, then the frequency setting module does not set the frequency of the second frequency adjustable module to the first target frequency; otherwise, further pass The energy efficiency judging module makes the judgment.
- the energy efficiency judging module judges according to the 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 will deteriorate seriously or the energy efficiency ratio of the electronic equipment will deteriorate serious.
- the frequency setting module sets the frequency of the second frequency adjustable module to the first target frequency, that is, the frequency of the second frequency adjustable module is raised to the first target frequency, thereby improving the user experience of the application layer; otherwise, the frequency setting module The frequency of the second frequency adjustable module is not set as the first target frequency.
- the electronic equipment shown in Figure 7 is equipped with a frequency modulation monitor to monitor the frequency changes of each frequency adjustable module, and can obtain the changes of the shared voltage in time, and then calculate the first frequency of other frequency adjustable modules under the shared voltage. a target frequency.
- the electronic device shown in Figure 7 can detect the change of the common voltage as soon as possible, shortening the common voltage. The length of time wasted after the voltage rises, reducing the time to obtain the first target frequency of other frequency adjustable modules.
- the electronic device shown in Figure 7 can obtain the load conditions of other frequency adjustable modules, and determine whether the frequency of other frequency adjustable modules meets the requirements. If the load is not satisfied, set the frequency of other frequency adjustable modules as the first target frequency; otherwise, judge according to the energy efficiency ratio curve and set the frequency of other frequency adjustable modules as the first target under the increased shared voltage frequency, whether it will lead to serious degradation of energy efficiency; if the degree of energy efficiency degradation is acceptable, and the load of other frequency adjustable modules is at a higher position but its frequency satisfies the load, the frequency of other frequency adjustable modules can be set to the first a target frequency; otherwise, the frequencies of other frequency adjustable modules are not set as the first target frequency.
- the electronic device shown in Figure 7 can effectively adjust the frequency of other frequency adjustable modules as needed; on the one hand Do not set it if it is not necessary to reduce the additional overhead caused by frequent frequency adjustment; on the other hand, set it if the energy efficiency degradation is acceptable, and there will be no serious energy efficiency degradation and abnormal increase in power consumption.
- FIG. 8 is a schematic flowchart 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 It is detected that the frequency of the first adjustable frequency module increases.
- the electronic device can monitor the frequency change of each frequency adjustable module through the frequency modulation monitor. Specifically, after the system is started, the electronic device will set the frequency modulation monitor to monitor the frequency increase of the first frequency adjustable module and the second frequency adjustable module of the common voltage.
- the trigger conditions for the frequency increase of the frequency adjustable module include the load increase of the frequency adjustable module, the performance mode of the frequency adjustable module, and other non-shared voltage It will increase the operating frequency of the cache, but the CPU and the cache do not necessarily share the voltage), etc.
- Step 802 It is detected that the voltage shared by the first adjustable frequency module and the second adjustable frequency module increases.
- the electronic device can monitor the change of the common voltage through the frequency modulation monitor.
- Step 803 Obtain the raised common voltage, and the first target frequency (eg minimum frequency) of the second adjustable frequency module under the raised common voltage.
- the electronic device may obtain the raised shared voltage and the first target frequency (eg, the minimum frequency) through the frequency modulation monitor.
- the first target frequency eg, the minimum frequency
- Step 804 Determine whether the frequency of the second adjustable frequency module satisfies the load.
- the electronic device can judge whether the frequency of the second adjustable frequency module satisfies the load through the load determination module; if the frequency of the second adjustable frequency module meets the load, then perform step 805; if the frequency of the second adjustable frequency module does not meet the load load, go to step 807.
- Step 805 Determine whether the load of the second adjustable frequency module is low, that is, determine whether the load of the second adjustable frequency module is so low that increasing the frequency has almost no impact on the performance of the second adjustable frequency module.
- the electronic device can judge whether the load of the second frequency adjustable module is low through the load determination module; if the load of the second frequency adjustable module is low, return to step 801; otherwise, perform step 806.
- Step 806 Determine whether the first target frequency is acceptable according to the energy efficiency ratio curve.
- the electronic device can judge whether the first target frequency is acceptable through the load determination module according to the energy efficiency ratio curve; if the first target frequency is not acceptable, return to step 801; otherwise, perform step 807.
- Step 807 Set the frequency of the second adjustable frequency module as the first target frequency.
- the electronic device can set the frequency of the second frequency adjustable module as the first target frequency through the frequency setting module.
- Step 808 The performance of the whole machine is improved, and the system continues to run.
- step 808 is executed, return to step 801 for execution.
- FIG. 8 may correspond to the description of the embodiment shown in FIG. 7 .
- Figure 9 is a schematic diagram of the component architecture of another electronic device provided by the embodiment of the present application; the electronic device may be the electronic device in the embodiment shown in Figure 6, and the electronic device includes an application layer and a kernel layer and the chip layer; wherein, the application layer and the kernel layer of the electronic equipment shown in Figure 9 are the same as the application layer and the kernel layer of the electronic equipment shown in Figure 7, and can directly refer to the description shown in Figure 7, and are no longer described here Repeat description.
- the chip layer of the electronic device shown in Figure 9 is the Dimensity 1000 chip of MTK, and the electronic device can be a mobile phone using the Dimensity 1000 chip of MTK; Voltage, that is, the L3 cache corresponds to the above-mentioned first frequency adjustable module, and the small-core CPU corresponds to the above-mentioned second frequency adjustable module.
- Voltage that is, the L3 cache corresponds to the above-mentioned first frequency adjustable module
- the small-core CPU corresponds to the above-mentioned second frequency adjustable module.
- the main purpose of setting the FM listener is to monitor the frequency change of the L3 cache.
- the frequency of the L3 cache needs to be increased, it can be obtained by the FM listener in time; It will cause the voltage shared by the L3 cache and the small-core CPU to increase, and if it will cause the voltage shared by the L3 cache and the small-core CPU to increase, then obtain the first target frequency of the small-core CPU under the increased shared voltage (such as the minimum frequency); otherwise, the FM listener continues to monitor the next up-frequency of the L3 cache.
- FIG. 10 is a schematic 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 Set up an FM monitor.
- Step 1002 the system works normally.
- Step 1003 It is detected that the L3 cache is about to be upscaled.
- the electronic device can monitor through the frequency modulation monitor that the frequency of the third-level cache is about to be increased.
- Step 1004 Determine whether the upscaling of the L3 cache causes the voltage shared by the L3 cache and the small-core CPU to increase.
- the electronic device can judge whether the upscaling of the L3 cache leads to an increase in the voltage shared by the L3 cache and the small-core CPU through the FM monitor; Then execute step 1005; otherwise, return to execute step 1002.
- Step 1005 Obtain the first target frequency of the small-core CPU under the raised common voltage.
- the electronic device may obtain the first target frequency (for example, the minimum frequency) through the frequency modulation monitor.
- the first target frequency for example, the minimum frequency
- the first target frequency There are two conditions for judging: one is the load of the small-core CPU, and the other is based on the energy efficiency ratio curve.
- FIG. 11 is a schematic 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 Determine whether the frequency of the small-core CPU satisfies the load.
- the electronic device can judge whether the frequency of the small-core CPU satisfies the load through the load determination module; if the frequency of the small-core CPU cannot meet the load, execute step 1104; otherwise, execute step 1102.
- Step 1102 Determine whether the load of the small-core CPU is low.
- the electronic device can judge whether the load of the small-core CPU is low through the load determination module, that is, determine whether the frequency of the small-core CPU is low enough to not need to increase the frequency; if the load of the small-core CPU is low, then perform step 1105; otherwise , go to step 1103.
- Step 1103 Determine whether the degradation degree of energy efficiency is acceptable after the frequency of the small-core CPU is set to the first target frequency.
- the electronic device can judge whether the degree of degradation of energy efficiency is acceptable after the frequency of the small-core CPU is set to the first target frequency through the energy efficiency determination module; if the degree of degradation of energy efficiency is acceptable, execute step 1104; otherwise, execute step 1105.
- the degree of whether the energy efficiency degradation is acceptable can be set conservatively, for example, as long as the energy efficiency degradation is greater than 0, it is considered unacceptable.
- Step 1104 Set the frequency of the small-core CPU as the first target frequency.
- the electronic device can set the frequency of the small-core CPU as the first target frequency through the frequency setting module.
- Step 1105 Do not set the frequency of the small-core CPU as the first target frequency.
- FIG. 12 is a schematic structural diagram of a frequency modulation device provided by an embodiment of the present application
- the frequency modulation device 1200 is applied to electronic equipment, and the electronic equipment includes a first frequency adjustable module and a second frequency adjustable module
- the FM device 1200 includes a processing unit 1201 and a communication unit 1202, wherein the processing unit 1201 is configured to execute any step in the method embodiment shown in FIG. call the communication unit 1202 to complete the corresponding operation.
- the processing unit 1201 is configured to execute any step in the method embodiment shown in FIG. call the communication unit 1202 to complete the corresponding operation.
- the processing unit 1201 is configured to: if the frequency increase of the first adjustable frequency module causes the first adjustable frequency module and the second adjustable frequency module to share If the voltage of the first adjustable frequency module increases, the first target frequency of the second adjustable frequency module under the first common voltage is obtained, and the first common voltage is the first target frequency after the frequency of the first adjustable frequency module is increased. A voltage shared by the frequency adjustable module and the second frequency adjustable module; determining whether to increase the frequency of the second frequency adjustable module to the first target according to the load of the second frequency adjustable module frequency.
- the processing unit 1201 is specifically configured to: if the voltage shared by the first frequency adjustable module and the second frequency adjustable module rises, the second frequency can be If the load of the adjustable module is not greater than the first preset threshold, the frequency of the second adjustable frequency module will not be increased to the first target frequency; if the adjustable frequency module of the first frequency and the second frequency After the voltage shared by the adjustable modules rises, the load of the second adjustable frequency module is greater than the first preset threshold and not greater than the second preset threshold, then according to the energy efficiency of the second adjustable frequency module or The energy efficiency of the electronic equipment determines whether to increase the frequency of the second adjustable frequency module to the first target frequency; if the voltage shared by the first adjustable frequency module and the second adjustable frequency module After the increase, if the load of the second adjustable frequency module is greater than the second preset threshold, the frequency of the second adjustable frequency module is increased to the first target frequency.
- the processing unit 1201 is specifically configured to: if the frequency of the second adjustable frequency module is increased to the first target frequency, the frequency of the second adjustable frequency module If the energy efficiency or the energy efficiency of the electronic device is reduced by a third preset threshold, then the frequency of the second adjustable frequency module will not be increased to the first target frequency; otherwise, the frequency of the second adjustable frequency module will be increased to the first target frequency; The frequency is raised to the first target frequency.
- the processing unit 1201 is further configured to: in the case of monitoring the frequency increase of the first frequency adjustable module, obtain the first frequency adjustable module after the frequency increase The frequency of the module; if the frequency of the first frequency adjustable module after the frequency increase is greater than the second target frequency, then it is determined that the frequency increase of the first frequency adjustable module causes the first frequency adjustable The voltage shared by the module and the second frequency adjustable module increases, the second target frequency is the maximum frequency of the first frequency adjustable module under the second common voltage, and the second common voltage is the The frequency of the first adjustable frequency module increases the voltage shared by the first adjustable frequency module and the second adjustable frequency module.
- the FM apparatus 1200 may further include a storage unit 1203 for storing program codes and data of electronic equipment.
- the processing unit 1201 may be a processor
- the communication unit 1202 may be a transceiver
- the storage unit 1203 may be a memory.
- each unit of the frequency modulation device 1200 described in FIG. 12 may also refer to corresponding descriptions of the embodiments shown in FIGS. 5 to 11 .
- the beneficial effects brought by the frequency modulation device 1200 described in FIG. 12 reference may be made to the corresponding descriptions of the embodiments shown in FIGS. 5 to 11 , and the description will not be repeated here.
- FIG. 13 is a schematic structural diagram of an electronic device 1310 provided by an embodiment of the present application.
- the electronic device 1310 includes a processor 1311, a memory 1312, and a communication interface 1313. They are connected to each other by bus 1314 .
- the memory 1312 includes but is not limited to random access memory (random access memory, RAM), read-only memory (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), the memory 1312 is used for related computer programs and data.
- the communication interface 1313 is used to receive and send data.
- the processor 1311 may be one or more central processing units (central processing unit, CPU).
- CPU central processing unit
- 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, FIG. 8, FIG. 10 and FIG. 11.
- each operation of the electronic device 1310 described in FIG. 13 may also refer to corresponding descriptions of the embodiments shown in FIGS. 5 to 11 .
- the embodiment of the present application also provides a chip, the above-mentioned chip includes at least one processor, memory and interface circuit, the above-mentioned memory, the above-mentioned transceiver and the above-mentioned at least one processor are interconnected by lines, and the above-mentioned at least one memory stores a computer program; the above-mentioned When the computer program is executed by the above-mentioned processor, the method flow of any one of the embodiments shown in FIG. 6 , FIG. 8 , FIG. 10 and FIG. 11 is realized.
- the embodiment of the present application also provides a computer-readable storage medium.
- the above-mentioned computer-readable storage medium stores a computer program. When it is run on a computer, any one of the programs shown in FIG. The method flow of the embodiment is realized.
- An embodiment of the present application further provides a computer program product.
- the above computer program product is run on a computer, the method flow of any one of the embodiments shown in FIG. 6 , FIG. 8 , FIG. 10 and FIG. 11 is realized.
- processors mentioned in the embodiment of the present application may be a central processing unit (Central Processing Unit, CPU), and 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 array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like.
- the memory mentioned in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
- the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
- the volatile memory can be Random Access Memory (RAM), which acts as external cache memory.
- RAM Static Random Access Memory
- SRAM Static Random Access Memory
- DRAM Dynamic Random Access Memory
- Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
- SDRAM double data rate synchronous dynamic random access memory
- Double Data Rate SDRAM, DDR SDRAM enhanced synchronous dynamic random access memory
- Enhanced SDRAM, ESDRAM synchronous connection dynamic random access memory
- Synchlink DRAM, SLDRAM Direct Memory Bus Random Access Memory
- Direct Rambus RAM Direct Rambus RAM
- the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components
- the memory storage module
- sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application.
- the implementation process constitutes any limitation.
- the disclosed systems, devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the above units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods shown in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes. .
- the modules in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs.
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
一种调频方法及相关设备,该方法应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压(601);根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率(602)。采用上述技术方案,共用电压的频率可调模块的频率可以联动调整,确保能效较高、性能充足。
Description
本申请要求于2021年12月30日提交中国国家知识产权局、申请号为202111658322.1、发明名称为“调频方法和相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及芯片技术领域,尤其涉及一种调频方法和相关设备
当前有些厂商为了节约芯片生产成本,在制作两个及以上个频率可调模块时,会采用共用电压的方式。在采用共用电压的场景中,若其中一个频率可调模块的频率变化引起共用的电压升高,而共用的电压升高并未使得其他频率可调模块的频率发生调整或频率调整不及时,致使其他频率可调模块出现电压浪费或者不能满足负载的情况,从而其他频率可调模块存在能效较低、性能不足等问题。
比如,在中国台湾联发科技股份有限公司(MediaTek.Inc,MTK)的芯片中,小核中央处理器(Central Processing Unit,CPU)和三级缓存(level 3 cache,简写为l3 cache)共用电压;当大核CPU工作负载过高时,可能会升高三级缓存的频率,进而可能引起共用的电压升高,而小核CPU未能及时升高频率、继续在低频率下工作,致使小核CPU出现浪费高电压或者不能满足负载的情况,从而小核CPU存在能效较低、性能不足等问题。
发明内容
本申请提供一种调频方法和相关设备,共用电压的频率可调模块的频率可以联动调整,确保能效较高、性能充足。
根据第一方面,本申请涉及一种调频方法,应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;所述方法包括:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压;根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。其中,第一目标频率可以为第二频率可调模块在第一公共电压下的任意频率,优选为第二频率可调模块在第一公共电压下的最小频率。
在本申请实施例中,电子设备中的第一频率可调模块和第二频率可调模块共用电压,当第一频率可调模块的频率升高导致共用的电压升高时,获取第二频率可调模块在升高后的共用的电压下的第一目标频率,然后根据第二频率可调模块的负载确定是否将第二频率可调模块的频率升高为第一目标频率。如此,共用电压的第一频率可调模块和第二频率可调模块的频率可以联动调整,也即第一频率可调模块的频率升高导致共用的电压升高时,第二频率可调模块的频率也可以及时升高,避免第二频率可调模块出现电压浪费或者不能满足负载的情况,从而确保能效较高、性能充足。并且,第一频率可调模块和第二频率可调模块的频率联动调整还是按需进行调整,也即第一频率可调模块的频率升高时,根据第二频率可调模块的负载来确定是否联动第二频率可调模块的频率升高;例如,若第二频率可调模块不需要升高 频率即可满足负载,则不升高第二频率可调模块的频率;若第二频率可调模块需要升高频率才可满足负载,则升高第二频率可调模块的频率;从而做到非必要不升高第二频率可调模块的频率,降低频繁调频带来的额外开销。
在一种可能的实现方式中,所述根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
在本实现方式中,当第一频率可调模块的频率升高,导致第一频率可调模块和第二频率可调模块共用的电压升高后,如果第二频率可调模块的负载不大于第一预设阈值,说明第二频率可调模块的负载较低,没有必要升高第二频率可调模块的频率即可满足负载要求,则不将第二频率可调模块的频率升高为第一目标频率;从而非必要不升高第二频率可调模块的频率,降低频繁调频带来的额外开销。如果第二频率可调模块的负载大于第二预设阈值,说明第二频率可调模块的负载较高,需要升高第二频率可调模块的频率才可满足负载要求,则将第二频率可调模块的频率升高为第一目标频率;从而做到及时升高第二频率可调模块的频率,避免电压浪费以及不能满足负载。如果第二频率可调模块的负载大于第一预设阈值且不大于第二预设阈值,说明第二频率可调模块的负载不是太低,也不是太高,第二频率可调模块的频率处于可以升高,也可以不升高的情况下,则根据第二频率可调模块的能效或所述电子设备的能效确定是否将第二频率可调模块的频率升高为第一目标频率;从而避免第二频率可调模块的频率升高后,第二频率可调模块的能效或电子设备的能效降低太多。
在一种可能的实现方式中,所述根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;否则,将所述第二频率可调模块的频率升高为所述第一目标频率。
在本实现方式中,如果将第二频率可调模块的频率升高为第一目标频率,第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,说明升高第二频率可调模块的频率,第二频率可调模块的能效或电子设备的能效会降低太多,则不将第二频率可调模块的频率升高为第一目标频率,从而可以确保第二频率可调模块的能效或电子设备的能效较高,性能也是足够的;否则,说明将升高第二频率可调模块的频率,第二频率可调模块的能效或电子设备的能效不会降低太多,则将第二频率可调模块的频率升高为第一目标频率,从而可以确保第二频率可调模块的性能充足,第二频率可调模块的能效或电子设备的能效也较高。
在一种可能的实现方式中,所述方法还包括:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公共电压为所述第一频率可调模块的 频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
在本实现方式中,在监测第一频率可调模块的频率升高的情况下,获取升高后的第一频率可调模块的频率;如果升高后的第一频率可调模块的频率大于第一频率可调模块在升高前的共用的电压下的最大频率,说明第一频率可调模块的频率升高会导致第一频率可调模块和第二频率可调模块共用的电压升高。如此,能够及时监测到第一频率可调模块的频率升高,并及时发现第一频率可调模块和第二频率可调模块共用的电压升高,缩短升高后的共用的电压浪费时长,降低获取第二频率可调模块对应的第一目标频率的时间。
根据第二方面,本申请涉及一种调频装置,有益效果可以参见第一方面的描述,此处不再赘述。所述调频装置具有实现上述第一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一种可能的实现方式中,所述装置应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;所述装置包括:处理单元,用于:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压;根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元,具体用于:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元,具体用于:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;否则,将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元,还用于:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公共电压为所述第一频率可调模块的频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
根据第三方面,本申请涉及一种电子设备,包括:一个或多个处理器;非瞬时性计算机可读存储介质,耦合到所述处理器并存储由所述处理器执行的程序,其中所述程序在由所述处理器执行时,使得所述电子设备执行第一方面中任意一种可能的实施例中的方法。
根据第四方面,本申请涉及一种非瞬时性计算机可读存储介质,包括程序代码,当其由计算机设备执行时,用于执行第一方面中任意一种可能的实施例中的方法。
根据第五方面,本申请涉及了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有上述芯片的设备执行第一方面中任意一种可能的实施例中的方法。
根据第六方面,本申请涉及包括程序代码的计算机程序产品,所述程序代码在运行时执行第一方面中任意一种可能的实施例中的方法。
下面对本申请实施例用到的附图进行介绍。
图1为本申请实施例提供的一种共用电压的场景示意图;
图2为本申请实施例提供的另一种共用电压的场景示意图;
图3为本申请实施例提供的某芯片小核CPU和三级缓存的频率分布图;
图4为本申请实施例提供的某芯片小核CPU和三级缓存的电压分布图;
图5为本申请实施例提供的又一种共用电压的场景示意图;
图6为本申请实施例提供的一种调频方法的流程示意图;
图7为本申请实施例提供的一种电子设备的组件架构示意图;
图8为图7所示的电子设备执行的一种调频方法的流程示意图;
图9为本申请实施例提供的另一种电子设备的组件架构示意图;
图10为图9所示的电子设备执行的一种频率获取方法的流程示意图;
图11为图9所示的电子设备执行的一种调频方法的流程示意图;
图12为本申请实施例提供的一种调频装置的结构示意图;
图13为本申请实施例提供的一种电子设备的结构示意图。
首先,对本申请实施例中的一些技术术语进行介绍,以便于本领域技术人员理解本申请。
(1)能效:是指为终端用户提供服务理论上发挥作用的能量与实际消耗的总能源量之比,也称为能效比。
(2)能效比曲线:一般由芯片厂商提供或者通过实验室可测得,可以反映出频率、电压和能效比之间的关系。
(3)三级缓存(level 3 cache,简写为l3 cache):中央处理器(Central Processing Unit,CPU)读取数据过程为:先从缓存文件中查找,在缓存文件中找到之后会自动读取,再输入到CPU进行处理;当然如果没有在缓存中找到对应的缓存文件的话,那么就会从内存中读取并传输给CPU处理。三级缓存是为读取二级缓存后未命中的数据设计的一种缓存,其中,一级缓存内置在CPU内部并与CPU同速运行,以有效提高CPU的运行效率;二级缓存是为了协调一级缓存和内存之间的速度而设计的一种缓存。
(4)负载:是指一段时间内模块运行时间占该段时间的比值。
(5)功耗:是指单位时间中所消耗的能源的数量。
(6)丢帧率:是指一段时间内丢帧数占理论总帧数的比率。
其次,对电子设备中的两个频率可调模块共用电压场景的相关技术进行介绍,以便于本 领域技术人员理解本申请。
(1)相关技术一:有些厂商在面对两个频率可调模块共用电压场景时,设置其中一个频率可调模块的频率是固定值,进而共用的电压被限制不能动态调整。如图1所示,第二频率可调模块的频率固定,从而限制第一频率可调模块与第二频率可调模块的共用的电压限制为最高值。
相关技术一存在以下问题:会导致安装有第一频率可调模块和第二频率可调模块的电子产品的整机功耗升高,从而续航能力变差,影响用户体验。
(2)相关技术二:有些厂商在面对两个频率可调模块共用电压场景时,设置两个频率可调模块的频率都可以单独调整,但是其中一个频率可调模块的频率调整引起共用的电压升高,并不能联动另一频率可调模块的频率调整。如图2所示,第一频率可调模块的频率调整,导致共用的电压升高,但并不会联动第二频率可调模块的频率调整,使得第二频率可调模块存在电压浪费。
相关技术二存在以下问题:两个频率可调模块不能联动的频率调整,存在电压性能不能完全发挥、性能损耗的情况,使得两个频率可调模块的频率无法达到能效最优对应的组合。
(3)相关技术三:有些厂商在面对两个频率可调模块共用电压场景时,并不关注共用的电压,而是直接按照两个频率可调模块各自的最大频率的同一比例做联动调整。
相关技术三存在以下问题:虽然频率变化是保持同一比例,但是各个频率可调模块之间的频率对应的电压变化并不是同一比例,如图3和图4所示,其中,图3和图4的横坐标均表示频点序号,表示第几组;图3的纵坐标表示频率(单位:MHz),图4的纵坐标表示电压(单位:uV);如此,当频率调整时,必然存在无需升高的电压被迫调高,导致功耗增大。有些频率可调模块的频率可能并不需要升高便能满足性能需求,但是在同比例联动时,必然导致该频率可调模块频繁调频,无故的升频必然导致功耗的浪费。
需要说明的是,虽然上述仅介绍了两个频率可调模块共用电压场景的相关技术,但该相关技术同样也适用于频率可调模块为两个以上的共用电压场景。
综合上述相关技术存在的缺点,本申请要解决的技术问题包括:在共用电压的场景下,如何使得充分利用功耗,提升性能。
针对本申请要解决的技术问题,本申请提供以下技术方案:多个频率可调模块共用电压场景中,当其中一个频率可调模块的频率调整导致共用的电压升高时,按需选择是否联动调整其他频率可调模块的频率,以达到充分利用功耗,提升性能,降低丢帧率的目的。
下面结合具体实施方式对本申请提供的技术方案进行详细的介绍。
请参阅图5,图5为第一频率可调模块与第二频率可调模块共用电压的场景示意图,第一频率可调模块与第二频率可调模块的频率都可以单独调整,当其中一个频率可调模块的频率调整引起共用的电压升高时,可以联动另一频率可调模块的频率调整。如图5所示,当第一频率可调模块的频率调整(例如频率升高),导致第一频率可调模块和第二频率可调模块共用的电压升高时,联动第二频率可调模块的频率升高。并且,在联动第二频率可调模块的频率升高的过程中,并不是按照两个频率可调模块各自的最大频率的同一比例做联动调整的,而是根据第二频率可调模块的负载和第二频率可调模块的能效或电子设备的能效等实际需求,来选择是否联动调整第二频率可调模块的频率。其中,具体的联动调整频率的过程如图6所示。
请参阅图6,图6是示出根据本申请一种实施例的调频方法的过程600的流程图。过程600描述为一系列的步骤或操作,应当理解的是,过程600可以以各种顺序执行和/或同时发生,不限于图6所示的执行顺序。过程600可由电子设备执行,该电子设备包括第一频率可调模块和第二频率可调模块;过程600包括但不限于如下步骤或操作:
步骤601:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压。
其中,电子设备可以及时获取共用电压的任意一个频率可调模块的频率变化情况,当某个频率可调模块的频率调整导致共用的电压升高时,电子设备可以获取升高后的共用的电压的大小,从而进一步获取共用电压的其他频率可调模块在升高后的共用的电压下的第一目标频率。可选地,该第一目标频率可以为其他频率可调模块在升高后的共用的电压下的任意频率,优选为其他频率可调模块在升高后的共用的电压下的最小频率。
例如,电子设备中的第一频率可调模块和第二频率可调模块共用同一电压,电子设备可以及时获取第一频率可调模块和第二频率可调模块的频率变化情况,若第一频率可调模块的频率升高,并且导致第一频率可调模块和第二频率可调模块共用的电压升高时,电子设备可以获取到升高后的共用的电压的大小,也即电子设备可以获取到第一公共电压的大小,从而进一步获取第二频率可调模块在第一公共电压下的第一目标频率。可选地,第一目标频率可以为第二频率可调模块在第一公共电压下的任意频率,优选为第二频率可调模块在第一公共电压下的最小频率。
步骤602:根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
其中,当某个频率可调模块的频率调整导致共用的电压升高时,能被电子设备及时获取到,从而能够联动调整其他频率可调模块的频率;而在调整其他频率可调模块的频率的过程中,能够根据其他频率可调模块的负载来确定是否调整其他频率可调模块的频率。
例如,第一频率可调模块的频率升高,并且导致第一频率可调模块和第二频率可调模块共用的电压升高时,电子设备获取到了第二频率可调模块对应的第一目标频率,从而根据第二频率可调模块的负载来确定是否将第二频率可调模块的频率升高为该第一目标频率。
在本申请实施例中,电子设备中的第一频率可调模块和第二频率可调模块共用电压,当第一频率可调模块的频率升高导致共用的电压升高时,获取第二频率可调模块在升高后的共用的电压下的第一目标频率,然后根据第二频率可调模块的负载确定是否将第二频率可调模块的频率升高为第一目标频率。如此,共用电压的第一频率可调模块和第二频率可调模块的频率可以联动调整,也即第一频率可调模块的频率升高导致共用的电压升高时,第二频率可调模块的频率也可以及时升高,避免第二频率可调模块出现电压浪费或者不能满足负载的情况,从而确保能效较高、性能充足。并且,第一频率可调模块和第二频率可调模块的频率联动调整还是按需进行调整,也即第一频率可调模块的频率升高时,根据第二频率可调模块的负载来确定是否联动第二频率可调模块的频率升高;例如,若第二频率可调模块不需要升高频率即可满足负载,则不升高第二频率可调模块的频率;若第二频率可调模块需要升高频率才可满足负载,则升高第二频率可调模块的频率;从而做到非必要不升高第二频率可调模块的频率,降低频繁调频带来的额外开销。
需要说明的是,电子设备中共用同一电压的模块可能有两个或两个以上,第一频率可调 模块和第二频率可调模块可以为共用该同一电压的任意两个模块。应理解,当共用该同一电压的模块只有两个时,其中一个模块的频率升高导致该同一电压升高,则联动另一模块按需升高频率,故第一频率可调模块为其中频率升高而导致该同一电压升高的模块,第二频率可调模块为被联动按需升高频率的另一模块;当共用该同一电压的模块为两个以上时,其中一个模块的频率升高导致该同一电压升高,则联动其他模块中的每个模块按需升高频率,故第一频率可调模块为其中频率升高而导致该同一电压升高的模块,第二频率可调模块为被联动按需升高频率的其他模块中的任意一个模块。
在一种可能的实现方式中,所述根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
其中,电子设备在获取到共用电压的其他频率可调模块在升高后的共用的电压下的第一目标频率之后,需要判断该第一目标频率是否可以设置;第一目标频率是否可以设置的判断条件包括负载判定条件和能效判定条件。分别如下描述:
(1)负载判定条件为:其中一个频率可调模块的频率升高,导致共用的电压升高后,如果其他频率可调模块的负载不大于第一预设阈值,则说明其他频率可调模块的负载较低,升高频率对其他频率可调模块的性能几乎无影响,故不需要升高其他频率可调模块的频率,也即其他频率可调模块的频率不用设置为第一目标频率;如果其他频率可调模块的负载大于第二预设阈值,则说明其他频率可调模块的频率不能满足负载,故需要升高其他频率可调模块的频率,也即其他频率可调模块的频率可以设置第一目标频率;如果其他频率可调模块的负载大于第一预设阈值且不大于第二预设阈值,则通过能效判定条件判断。
其中,第一预设阈值和第二预设阈值的大小可以根据频率可调模块的实际应用场景来选择;就第二预设阈值而言,如果需要高性能可以把该第二预设阈值设置的低点,相反可以把该第二预设阈值设置的高点。例如,将第一预设阈值设置为满负载的30%,当频率可调模块的实际工作负载不超过满负载的30%时,即认为该频率可调模块的频率较低,升高频率对该频率可调模块的性能几乎无影响;将第二预设阈值设置为满负载的60%,当频率可调模块的实际工作负载超过满负载的60%时,即认为该频率可调模块的频率不能满足负载。
(2)能效判定条件为:其中一个频率可调模块的频率升高,导致共用的电压升高,且获取到其他频率可调模块在升高后的共用的电压下的第一目标频率,如果将其他频率可调模块的频率设置为该第一目标频率,其他频率可调模块的能效或电子设备的能效降低第三预设阈值,则说明升高其他频率可调模块的频率会使得其他频率可调模块的能效或电子设备的能效降低太多(或劣化严重),降低程度(或劣化程度)不能接受,故不将其他频率可调模块的频率设置为该第一目标频率;否则,说明升高其他频率可调模块的频率并不会使得其他频率可调模块的能效或电子设备的能效降低太多,降低程度可以接受,故可以将其他频率可调模块的频率设置为该第一目标频率。
其中,第三预设阈值的大小可以根据频率可调模块的实际应用场景或电子设备的的实际 应用场景来选择;如果追求性能,可以将第三预设阈值设置为较大值;如果追求长续航,可以将第三预设阈值设置为较小值。例如,在追求长续航时,将第三预设阈值设置为0。此外,频率可调模块对应的第三预设阈值和电子设备对应的第三预设阈值,可以相同,也可以不同。
其中,能效判定可以基于能效比曲线实现,能效比曲线可以反映出频率、电压和能效之间的关系,如此,当获取到升高后的共用的电压(例如第一公共电压),以及获取到第一目标频率后,可以基于能效比曲线中频率、电压和能效之间的关系,确定在该升高后的共用的电压(例如第一公共电压)下将其他频率可调模块的频率设置为该第一目标频率后,该其他频率可调模块的能效或电子设备的能效的大小,从而判断出其他频率可调模块的能效或电子设备的能效的降低程度。
在本实现方式中,当第一频率可调模块的频率升高,导致第一频率可调模块和第二频率可调模块共用的电压升高后,如果第二频率可调模块的负载不大于第一预设阈值,说明第二频率可调模块的负载较低,没有必要升高第二频率可调模块的频率即可满足负载要求,则不将第二频率可调模块的频率升高为第一目标频率;从而非必要不升高第二频率可调模块的频率,降低频繁调频带来的额外开销。如果第二频率可调模块的负载大于第二预设阈值,说明第二频率可调模块的负载较高,需要升高第二频率可调模块的频率才可满足负载要求,则将第二频率可调模块的频率升高为第一目标频率;从而做到及时升高第二频率可调模块的频率,避免电压浪费以及不能满足负载。如果第二频率可调模块的负载大于第一预设阈值且不大于第二预设阈值,说明第二频率可调模块的负载不是太低,也不是太高,第二频率可调模块的频率处于可以升高,也可以不升高的情况下,则根据第二频率可调模块的能效或所述电子设备的能效确定是否将第二频率可调模块的频率升高为第一目标频率;从而避免第二频率可调模块的频率升高后,第二频率可调模块的能效或电子设备的能效降低太多。
在一种可能的实现方式中,所述根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;否则,将所述第二频率可调模块的频率升高为所述第一目标频率。
具体地,根据能效比曲线判断,如果在第一公共电压下将第二频率可调模块的频率升高为第一目标频率,第二频率可调模块或电子设备的能效为多少,从而判断第二频率可调模块的能效或所述电子设备的能效是否会降低第三预设阈值;如果会降低第三预设阈值,则不将第二频率可调模块的频率升高为第一目标频率;如果不会降低第三预设阈值,则可以将第二频率可调模块的频率升高为第一目标频率。
在本实现方式中,如果将第二频率可调模块的频率升高为第一目标频率,第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,说明升高第二频率可调模块的频率,第二频率可调模块的能效或电子设备的能效会降低太多,则不将第二频率可调模块的频率升高为第一目标频率,从而可以确保第二频率可调模块的能效或电子设备的能效较高,性能也是足够的;否则,说明将升高第二频率可调模块的频率,第二频率可调模块的能效或电子设备的能效不会降低太多,则将第二频率可调模块的频率升高为第一目标频率,从而可以确保第二频率可调模块的性能充足,第二频率可调模块的能效或电子设备的能效也较高。
在一种可能的实现方式中,所述方法还包括:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述 第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公共电压为所述第一频率可调模块的频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
其中,电子设备可以及时获取共用电压的任意一个频率可调模块的频率变化情况,当某个频率可调模块的频率调整时,例如某个频率可调模块的频率升高时,电子设备还可以获取该频率可调模块频率升高后的频率,并判断该升高后的频率是否超过该频率可调模块在当前公共电压下所允许的最大频率;若超过当前公共电压所允许最大频率,则会触发公共电压升高。
例如,电子设备监测到第一频率可调模块的频率升高时,获取第一频率可调模块频率升高后的频率,并判断第一频率可调模块频率升高后的频率是否大于第一频率可调模块频率在第二公共电压下的最大频率;如果大于,则说明第一频率可调模块的频率升高会导致第一频率可调模块和第二频率可调模块共用的电压升高。
在本实现方式中,在监测第一频率可调模块的频率升高的情况下,获取升高后的第一频率可调模块的频率;如果升高后的第一频率可调模块的频率大于第一频率可调模块在升高前的共用的电压下的最大频率,说明第一频率可调模块的频率升高会导致第一频率可调模块和第二频率可调模块共用的电压升高。如此,能够及时监测到第一频率可调模块的频率升高,并及时发现第一频率可调模块和第二频率可调模块共用的电压升高,缩短升高后的共用的电压浪费时长,降低获取第二频率可调模块对应的第一目标频率的时间。
需要说明的是,过程600描述的一系列的步骤或操作,还可以对应参照图5所示实施例的相应描述。
下面通过图7至图11所示的具体示例对图6所示的过程600进一步描述。
请参阅图7,图7为本申请实施例提供的一种电子设备的组件架构示意图,该电子设备可以为图6所示的实施例中的电子设备,该电子设备包括应用层、内核层和芯片层。
其中,应用层则是用户可以直接感知的一些应用程序(Applicatio,APP)等。
其中,内核层位于应用层和芯片层之间,向上可以为应用层提供部署和运行环境,向下可以设置物理硬件类型的芯片层参数,内核层是软件实现的。内核层包括调频装置,调频装置包括调频监听器、负载判定模块、能效判定模块和频率设置模块(图7中未示出)。
其中,芯片层中包括共用电压的模块,例如包括共用电压的第一频率可调模块和第二频率可调模块,第二频率可调模块只是象征性代表与第一频率可调模块共用电压的其中一个模块,实际上可能会存在多个与第一频率可调模块共用电压的模块。
当应用层中第一频率可调模块相应的负载升高或者其他原因导致第一频率可调模块升频时,调频监听器可以及时获取第一频率可调模块将要升频到的频率。在此情况下,调频监听器还可以及时获知第一频率可调模块升频是否导致第一频率可调模块和第二频率可调模块共用的电压升高;若第一频率可调模块升频导致共用的电压升高,也即共用的电压升高为第一公共电压,则调频监听器可以及时获取第二频率可调模块在第一公共电压下的第一目标频率(例如最小频率)。调频监听器获取到第一目标频率后,但是并非一定将第二频率可调模块的频率设置为该第一目标频率,调频装置能够按需确定是否将第二频率可调模块的频率设置为该第一目标频率。具体地,需要负载判定模块根据第二频率可调模块的负载进行判定,以及能效判定模块根据第二频率可调模块的能效或电子设备的能效进行判定,以确定是否将第二频率可调模块的频率设置为该第一目标频率。
其中,负载判定模块判断:第二频率可调模块的频率能否满足负载,以及第二频率可调模块的负载是否低到升高频率对第二频率可调模块的性能几乎无影响。如果负载判定模块判断到第二频率可调模块的频率不能满足负载,则频率设置模块可以直接将第二频率可调模块的频率设置为该第一目标频率;如果负载判定模块判断到第二频率可调模块的负载较低,升高频率对第二频率可调模块的性能几乎无影响,则频率设置模块不将第二频率可调模块的频率设置为该第一目标频率;否则,进一步通过能效判定模块进行判定。
其中,能效判定模块根据能效比曲线判断:如果将第二频率可调模块的频率设置为第一目标频率后,是否会导致第二频率可调模块的能效劣化严重或导致电子设备的能效比劣化严重。如果能效判定模块判断到将第二频率可调模块的频率设置为第一目标频率后,导致第二频率可调模块的能效劣化的劣化程度或导致电子设备的能效劣化的劣化程度可以接受,则频率设置模块将第二频率可调模块的频率设置为第一目标频率,也即将第二频率可调模块的频率升高为第一目标频率,进而提升应用层的用户体验;否则,频率设置模块不将第二频率可调模块的频率设置为第一目标频率。
综上描述,图7所示的电子设备设置调频监听器监听各个频率可调模块的频率变化情况,能够及时的获取共用的电压的变化情况,进而计算出共用电压下其他频率可调模块的第一目标频率。相比于不能监听到共用电压的某一频率可调模块的频率升高,且不能判断到共用的电压的变化情况,图7所示的电子设备可以尽早发现共用的电压的变化情况,缩短共用的电压升高后的浪费时长,降低获取其他频率可调模块的第一目标频率的时间。
进一步地,当某一频率可调模块的频率升高导致共用的电压升高后,图7所示的电子设备可以获取其他频率可调模块的负载情况,判断其他频率可调模块的频率是否满足负载,不满足则将其他频率可调模块的频率设置为第一目标频率;否则,再根据能效比曲线判断在升高后的共用的电压下将其他频率可调模块的频率设置为第一目标频率,是否会导致能效劣化严重;若能效劣化程度可以接受,且其他频率可调模块的负载处于一个较高但其频率满足负载的位置时,则可以将其他频率可调模块的频率设置为第一目标频率;否则,不将其他频率可调模块的频率设置为第一目标频率。相比于在获取到第一目标频率后,直接将其他频率可调模块的频率设置为第一目标频率,图7所示的电子设备能够有效按需调整其他频率可调模块的频率;一方面做到非必要不设置,降低频繁调频带来的额外开销;另一方面做到能效劣化可接受则设置,不会出现能效劣化严重而功耗异常增大的情况。
请参阅图8,图8为图7所示的电子设备执行的一种调频方法的流程示意图;该调频方法包括但不限于如下步骤或操作:
步骤801:监测到第一频率可调模块的频率升高。
其中,电子设备可以通过调频监听器监测各个频率可调模块的频率变化情况。具体地,在系统启动后,电子设备便会设定调频监听器对共用电压的第一频率可调模块和第二频率可调模块的频率升高进行监控。其中,频率可调模块的频率升高的触发条件包括频率可调模块的负载增加、频率可调模块开启性能模式、其他非共用电压模块设置(例如CPU频率提高,涉及到的IO较多时,系统就会提升缓存的工作频率,但CPU和缓存不一定共用电压)等。
步骤802:监测到第一频率可调模块和第二频率可调模块共用的电压升高。
其中,电子设备可以通过调频监听器监测共用的电压的变化情况。
步骤803:获取升高后的共用的电压,以及第二频率可调模块在升高后的共用的电压下的第一目标频率(例如最小频率)。
其中,电子设备可以通过调频监听器获取升高后的共用的电压以及第一目标频率(例如最小频率)。
步骤804:判断第二频率可调模块的频率是否满足负载。
其中,电子设备可以通过负载判定模块判断第二频率可调模块的频率是否满足负载;若第二频率可调模块的频率满足负载,则执行步骤805;若第二频率可调模块的频率不满足负载,则执行步骤807。
步骤805:判断第二频率可调模块的负载是否较低,也即判断第二频率可调模块的负载是否低到升高频率对第二频率可调模块的性能几乎没有影响。
其中,电子设备可以通过负载判定模块判断第二频率可调模块的负载是否较低;若第二频率可调模块的负载较低,则返回执行步骤801;否则,执行步骤806。
步骤806:根据能效比曲线判断第一目标频率是否可接受。
其中,电子设备可以通过负载判定模块根据能效比曲线判断第一目标频率是否可接受;若第一目标频率不可接受,则返回执行步骤801;否则,执行步骤807。
步骤807:将第二频率可调模块的频率设置为第一目标频率。
其中,电子设备可以通过频率设置模块将第二频率可调模块的频率设置为第一目标频率。
步骤808:整机性能提升,系统持续运行。
其中,在执行完步骤808后,返回执行步骤801。
需要说明的是,图8所描述的步骤或操作可以对应参照图7所示的实施例的描述。
请参阅图9,图9为本申请实施例提供的另一种电子设备的组件架构示意图;该电子设备可以为图6所示的实施例中的电子设备,该电子设备包括应用层、内核层和芯片层;其中,图9所示的电子设备的应用层和内核层分别与图7所示的电子设备的应用层和内核层相同,可直接参照图7所示的描述,此处不再重复描述。
其中,图9所示的电子设备的芯片层为MTK的天玑1000芯片,该电子设备可以为使用MTK的天玑1000芯片的手机;在天玑1000芯片中,三级缓存和小核CPU共用电压,也即三级缓存对应上述第一频率可调模块,小核CPU对应上述第二频率可调模块。当应用层启动的进程较多导致负载增加时,天玑1000芯片中的大核CPU的频率增加,从而伴随着数据流的增加,为了满足高数据流的需求,三级缓存的频率也会被升高。三级缓存的频率升高可能会导致三级缓存和小核CPU共用的电压升高。为了高效使用升高后的共用的电压,提升整机性能和用户体验,电子设备会执行以下步骤或操作:
(1)设置调频监听器。
设置调频监听器的主要目的在于:监听三级缓存的频率变化情况,当三级缓存的频率需要升高时,能够被调频监听器及时获取;进而根据三级缓存将要升高到的频率判断是否会引起三级缓存与小核CPU共用的电压升高,如果会引起三级缓存与小核CPU共用的电压升高,则获取小核CPU在升高后的共用的电压下的第一目标频率(例如最小频率);否则,调频监听器继续监听下一次三级缓存的升频情况。
请参阅图10,图10为图9所示的电子设备执行的一种频率获取方法的流程示意图;该频率获取方法包括但不限于如下步骤或操作:
步骤1001:设置调频监听器。
步骤1002:系统正常工作。
步骤1003:监听到三级缓存将要升频。
其中,电子设备可以通过调频监听器监听到三级缓存将要升频。
步骤1004:判断三级缓存升频是否导致三级缓存与小核CPU共用的电压升高。
其中,电子设备可以通过调频监听器判断三级缓存升频是否导致三级缓存与小核CPU共用的电压升高;若三级缓存升频导致三级缓存与小核CPU共用的电压升高,则执行步骤1005;否则,返回执行步骤1002。
步骤1005:获取小核CPU在升高后的共用的电压下的第一目标频率。
其中,电子设备可以通过调频监听器获取第一目标频率(例如最小频率)。
(2)共用的电压升高后,判断是否需要升高小核CPU的频率。
当获取到小核CPU对应的第一目标频率(例如最小频率)后,还需要判断该第一目标频率是否可以设置。判断的条件有两个:一个是小核CPU的负载情况,另一个是根据能效比曲线。
请参阅图11,图11为图9所示的电子设备执行的一种调频方法的流程示意图;该调频方法包括但不限于如下步骤或操作:
步骤1101:判断小核CPU的频率是否满足负载。
其中,电子设备可以通过负载判定模块判断小核CPU的频率是否满足负载;若小核CPU的频率已经无法满足负载,则执行步骤1104;否则,执行步骤1102。
其中,可以设定当小核CPU的负载大于60%时,认为小核CPU的频率无法满足负载。
步骤1102:判断小核CPU的负载是否较低。
其中,电子设备可以通过负载判定模块判断小核CPU的负载是否较低,也即判断小核CPU频率是否低到不需要升高频率;若小核CPU的负载较低,则执行步骤1105;否则,执行步骤1103。
其中,可以设定当小核CPU的负载不大于30%时,认为小核CPU的负载较低。
步骤1103:判断将小核CPU的频率设置为第一目标频率后,能效劣化程度是否可接受。
其中,电子设备可以通过能效判定模块判断将小核CPU的频率设置为第一目标频率后,能效劣化程度是否可接受;若能效劣化程度可接受,则执行步骤1104;否则,执行步骤1105。
其中,可以将能效劣化是否可以接受的程度设置得很保守,例如只要能效劣化大于0,则认为不能接受。
步骤1104:将小核CPU的频率设置为第一目标频率。
其中,电子设备可以通过频率设置模块将小核CPU的频率设置为第一目标频率。
步骤1105:不将小核CPU的频率设置为第一目标频率。
综上所述,现有技术中无法使小核CPU和三级缓存之间根据共用的电压升高来联动调整频率,最多也就达到小核CPU和三级缓存两个模块之间相互独立设置频率,这样就会导致共用的电压升高后发生浪费。而本申请能够及时发现三级缓存的频率升高导致的共用的电压升高情况,进而按需决定是否升高小核CPU频率,从而可以解决电压浪费、提频缓慢的问题,达到快速提频、提升产品整机性能的效果。当本申请的电子设备为手机时,可以降低手机的丢帧率,显著提升用户体验,测试结果表明:手机滑动性能从0.0855%的丢帧率,降低到0.0658%的丢帧率,性能提升20%以上。
请参阅图12,图12为本申请实施例提供的一种调频装置的结构示意图;该调频装置1200应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;该调频装置1200包括处理单元1201和通信单元1202,其中,该处理单元1201,用于执行如图6所示的方法 实施例中的任一步骤,且在执行诸如获取等数据传输时,可选择的调用该通信单元1202来完成相应操作。下面进行详细说明。
在一种可能的实现方式中,所述处理单元1201,用于:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压;根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元1201,具体用于:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率;若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于所述第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元1201,具体用于:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率;否则,将所述第二频率可调模块的频率升高为所述第一目标频率。
在一种可能的实现方式中,所述处理单元1201,还用于:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公共电压为所述第一频率可调模块的频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
其中,该调频装置1200还可以包括存储单元1203,用于存储电子设备的程序代码和数据。该处理单元1201可以是处理器,该通信单元1202可以收发器,该存储单元1203可以是存储器。
需要说明的是,图12所描述的该调频装置1200的各个单元的实现还可以对应参照图5至图11所示的实施例的相应描述。并且,图12所描述的调频装置1200带来的有益效果可以参照图5至图11所示的实施例的相应描述,此处不再重复描述。
请参见图13,图13是本申请实施例提供的一种电子设备1310的结构示意图,该电子设备1310包括处理器1311、存储器1312和通信接口1313,上述处理器1311、存储器1312和通信接口1313通过总线1314相互连接。
存储器1312包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器1312用于相关计算机程序及数据。通信接口1313用于接收和发送数据。
处理器1311可以是一个或多个中央处理器(central processing unit,CPU),在处理器1311是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。
该电子设备1310中的处理器1311用于读取上述存储器1312中存储的计算机程序代码,执行图6、图8、图10和图11所示的任意一个实施例的方法。
需要说明的是,图13所描述的电子设备1310的各个操作的实现还可以对应参照图5至图11所示的实施例的相应描述。并且,图13所描述的电子设备1310带来的有益效果可以参照图5至图11所示的实施例的相应描述,此处不再重复描述。
本申请实施例还提供一种芯片,上述芯片包括至少一个处理器,存储器和接口电路,上述存储器、上述收发器和上述至少一个处理器通过线路互联,上述至少一个存储器中存储有计算机程序;上述计算机程序被上述处理器执行时,图6、图8、图10和图11所示的任意一个实施例的方法流程得以实现。
本申请实施例还提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,图6、图8、图10和图11所示的任意一个实施例的方法流程得以实现。
本申请实施例还提供一种计算机程序产品,当上述计算机程序产品在计算机上运行时,图6、图8、图10和图11所示的任意一个实施例的方法流程得以实现。
应理解,本申请实施例中提及的处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
还应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。
需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)集成在处理器中。
应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
还应理解,本文中涉及的第一、第二、第三以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请的范围。
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成 任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
上述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所示方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
Claims (15)
- 一种调频方法,其特征在于,应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;所述方法包括:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压;根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求1所述的方法,其特征在于,所述根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求1或2所述的方法,其特征在于,所述根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,还包括:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,还包括:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求2-4任一项所述的方法,其特征在于,所述根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率,包括:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公 共电压为所述第一频率可调模块的频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
- 一种调频装置,其特征在于,应用于电子设备,所述电子设备包括第一频率可调模块和第二频率可调模块;所述装置包括:处理单元,用于:若所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,则获取所述第二频率可调模块在第一公共电压下的第一目标频率,所述第一公共电压为所述第一频率可调模块的频率升高后所述第一频率可调模块和所述第二频率可调模块共用的电压;根据所述第二频率可调模块的负载确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求7所述的装置,其特征在于,所述处理单元,具体用于:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载不大于第一预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求7或8所述的装置,其特征在于,所述处理单元,具体用于:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于第一预设阈值且不大于第二预设阈值,则根据所述第二频率可调模块的能效或所述电子设备的能效确定是否将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求7-9任一项所述的装置,其特征在于,所述处理单元,具体用于:若所述第一频率可调模块和所述第二频率可调模块共用的电压升高后,所述第二频率可调模块的负载大于第二预设阈值,则将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求8-10任一项所述的装置,其特征在于,所述处理单元,具体用于:若将所述第二频率可调模块的频率升高为所述第一目标频率,所述第二频率可调模块的能效或所述电子设备的能效降低第三预设阈值,则不将所述第二频率可调模块的频率升高为所述第一目标频率。
- 根据权利要求7-11任一项所述的装置,其特征在于,所述处理单元,还用于:在监测所述第一频率可调模块的频率升高的情况下,获取频率升高后的所述第一频率可调模块的频率;若所述频率升高后的所述第一频率可调模块的频率大于第二目标频率,则确定所述第一频率可调模块的频率升高导致所述第一频率可调模块和所述第二频率可调模块共用的电压升高,所述第二目标频率为所述第一频率可调模块在第二公共电压下的最大频率,所述第二公共电压为所述第一频率可调模块的频率升高前所述第一频率可调模块和所述第二频率可调模块共用的电压。
- 一种电子设备,其特征在于,包括:一个或多个处理器;非瞬时性计算机可读存储介质,耦合到所述处理器并存储由所述处理器执行的程序,其中,所述程序在由所述处理器执行时,使得所述电子设备执行权利要求1-6中任一项所述的方法。
- 一种非瞬时性计算机可读存储介质,其特征在于,包括程序代码,当其由计算机设备执行时,用于执行权利要求1-6中任一项所述的方法。
- 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行权利要求1-6中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111658322.1 | 2021-12-30 | ||
CN202111658322.1A CN116414216A (zh) | 2021-12-30 | 2021-12-30 | 调频方法和相关设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023125636A1 true WO2023125636A1 (zh) | 2023-07-06 |
Family
ID=86997972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/142713 WO2023125636A1 (zh) | 2021-12-30 | 2022-12-28 | 调频方法和相关设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116414216A (zh) |
WO (1) | WO2023125636A1 (zh) |
Citations (5)
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 |
US20130205149A1 (en) * | 2012-02-06 | 2013-08-08 | Sony Corporation | Apparatus and method for dynamically adjusting frequency of central processing unit |
CN105843391A (zh) * | 2016-03-28 | 2016-08-10 | 宇龙计算机通信科技(深圳)有限公司 | 调频调核的方法、装置及终端 |
CN107203423A (zh) * | 2016-03-16 | 2017-09-26 | 联发科技股份有限公司 | 处理工作负载的方法及其多处理器系统 |
CN111324198A (zh) * | 2020-03-18 | 2020-06-23 | 深圳市亿晟科技有限公司 | 一种安卓设备根据负载动态调整频率以及电压的方法 |
-
2021
- 2021-12-30 CN CN202111658322.1A patent/CN116414216A/zh active Pending
-
2022
- 2022-12-28 WO PCT/CN2022/142713 patent/WO2023125636A1/zh unknown
Patent Citations (5)
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 |
US20130205149A1 (en) * | 2012-02-06 | 2013-08-08 | Sony Corporation | Apparatus and method for dynamically adjusting frequency of central processing unit |
CN107203423A (zh) * | 2016-03-16 | 2017-09-26 | 联发科技股份有限公司 | 处理工作负载的方法及其多处理器系统 |
CN105843391A (zh) * | 2016-03-28 | 2016-08-10 | 宇龙计算机通信科技(深圳)有限公司 | 调频调核的方法、装置及终端 |
CN111324198A (zh) * | 2020-03-18 | 2020-06-23 | 深圳市亿晟科技有限公司 | 一种安卓设备根据负载动态调整频率以及电压的方法 |
Also Published As
Publication number | Publication date |
---|---|
CN116414216A (zh) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7590876B2 (en) | Method for adjusting a frequency working between a north bridge chip and a random access memory of a computer system | |
US8495397B2 (en) | Computer system capable of adjusting operating frequency dynamically | |
US9927860B2 (en) | Method for reducing power consumption of memory system, and memory controller | |
WO2019075980A1 (zh) | 一种线程的调整方法及其终端 | |
US11734183B2 (en) | Method and apparatus for controlling data flow in storage device, storage device, and storage medium | |
US20120054752A1 (en) | Electronic device having operation mode dynamic adjusting mechanism and method of the same | |
US9244520B2 (en) | Techniques for managing power and performance of multi-socket processors | |
KR102669517B1 (ko) | 메모리 컨트롤러 및 이를 포함하는 메모리 시스템 | |
CN114138098B (zh) | 功耗调节方法、装置、存储设备及可读存储介质 | |
US10216526B2 (en) | Controlling method for optimizing a processor and controlling system | |
US10514848B2 (en) | Data storage method for selectively storing data in a buffer preset in a memory of an electronic device or an inherent buffer in an SSD | |
US9069663B2 (en) | Allocating memory based on performance ranking | |
CA3164095C (en) | Rapid frequency searching method and apparatus for data processing device, and data processing device | |
US9377844B2 (en) | Memory refresh rate throttling for saving idle power | |
CN105786402A (zh) | 动态调整存储器装置的速度的方法及装置 | |
US20230214002A1 (en) | Power Consumption Management Method and Related Device | |
US20230350807A1 (en) | Data Prefetch Method and Apparatus, and Device | |
US20170046074A1 (en) | Adaptive Data Compression for Data Storage in a Memory Device | |
CN111176919A (zh) | 一种fpga的测试方法、设备以及存储介质 | |
WO2023125636A1 (zh) | 调频方法和相关设备 | |
US9116699B2 (en) | Memory refresh rate throttling for saving idle power | |
CN111208896B (zh) | 基于功耗参数的Intel笔记本性能的优化方法和系统 | |
WO2021036748A1 (zh) | 控制方法、装置、芯片与设备 | |
WO2021035229A2 (en) | Apparatus and method for determining a baseline voltage and ring oscillator code | |
EP2757481B1 (en) | Caching method and caching system using dual disks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22914888 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |