Work frequency adjustment method and device, electronic equipment and storage medium

By monitoring the current and temperature of the power supply module, the processor predicts the temperature rise time and reduces the frequency in advance, thus solving the problem of excessive processor temperature, maintaining stability and performance, and preventing electronic devices from lag.

CN115617500BActive Publication Date: 2026-02-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110796878.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2026-02-06
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

In existing technologies, processors are prone to overheating when operating at high frequencies, which affects their safety and stability. Furthermore, existing frequency reduction methods can lead to performance degradation and electronic device lag.

Method used

The processor monitors the current or power supplied by the power supply module, the current temperature, and the operating frequency to predict when the temperature will rise to a certain critical value. It then switches from a high frequency to a lower frequency in advance to avoid overheating, reduce power consumption, and extend the time it takes for the temperature to reach the critical value.

Benefits of technology

It effectively avoids overheating of the processor, maintains the stability and performance of the processor, avoids stuttering caused by significant frequency reduction, and improves the operational stability of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115617500B_ABST
    Figure CN115617500B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a working frequency adjustment method and device, an electronic device and the electronic device. The electronic device comprises a power supply module and a processor; the power supply module is configured to supply power to the processor; the processor is configured to determine a predicted time length for the processor to rise from a first temperature value to a second temperature value according to a working current or power supply power provided by the power supply module to the processor, a current first temperature value of the processor and a current first working frequency, and to switch from the first working frequency to a second working frequency according to the predicted time length, wherein the first working frequency is greater than the second working frequency. The working frequency adjustment method, device, electronic device and storage medium described above can avoid the case of excessively high processor temperature, and ensure the safety and stability of the processor.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power supply, in particular to a working frequency adjustment method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the rapid development of electronic technology, various electronic devices are becoming more and more perfect. The internal of the electronic device is usually provided with a processor, such as a CPU (central processing unit), etc. The processor can be used to perform various tasks to realize the function of the electronic device. The processor usually has multiple different working frequencies. The higher the working frequency, the faster the running speed of the processor, and the more powerful the processing performance of the processor. At present, in order to ensure the processing performance of the processor, the processor usually works at a high working frequency, which may cause the temperature of the processor to be too high, affecting the safety and stability of the processor. SUMMARY

[0003] The embodiments of the present application disclose a working frequency adjustment method and device, electronic equipment and storage medium, which can avoid the case that the temperature of the processor is too high, and ensure the safety and stability of the processor.

[0004] The embodiments of the present application disclose an electronic device, which comprises a power supply module and a processor.

[0005] The power supply module is configured to supply power to the processor.

[0006] The processor is configured to determine a predicted time length for the processor to rise from a first temperature value to a second temperature value according to a working current or power supply power provided by the power supply module to the processor, the first temperature value and a first working frequency, and to switch from the first working frequency to a second working frequency according to the predicted time length, wherein the first working frequency is greater than the second working frequency.

[0007] The embodiments of the present application disclose a working frequency adjustment method, which is applied to an electronic device comprising a processor and a power supply module. The method comprises:

[0008] The processor determines a predicted time length for the processor to rise from a first temperature value to a second temperature value according to a working current or power supply power provided by the power supply module to the processor, the first temperature value and a first working frequency.

[0009] The processor switches from the first working frequency to a second working frequency according to the predicted time length, wherein the first working frequency is greater than the second working frequency.

[0010] The embodiment of the present application discloses a working frequency adjusting device, which is applied to an electronic device, the electronic device comprises a processor and a power supply module, and the device comprises:

[0011] a prediction module, configured to determine, by the processor, a predicted time length for the processor to rise from a first temperature value to a second temperature value according to working current or power supply power provided by the power supply module to the processor, a current first temperature value and a current first working frequency;

[0012] a frequency reduction module, configured to switch from the first working frequency to a second working frequency according to the predicted time length, wherein the first working frequency is greater than the second working frequency.

[0013] The embodiment of the present application discloses an electronic device comprising a memory and a processor, the memory stores a computer program, and the computer program is executed by the processor to realize the method described above.

[0014] The embodiment of the present application discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the method described above.

[0015] The working frequency adjusting method, device, electronic device and storage medium disclosed by the embodiment of the present application, the processor can determine the predicted time length for the processor to rise from the first temperature value to the second temperature value according to the working current or power supply power provided by the power supply module to the processor, the current first temperature value and the current first working frequency, and switch from the first working frequency to the second working frequency according to the predicted time length, the first working frequency is greater than the second working frequency, the processor can avoid the case that the temperature of the processor is too high in advance before the temperature rises to the second temperature value, and the time for the temperature of the processor to reach the second temperature value is prolonged, and the safety and stability of the processor are enhanced. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0017] Figure 1 It is a structural block diagram of an electronic device in an embodiment;

[0018] Figure 2 It is a structural block diagram of an electronic device in another embodiment;

[0019] Figure 3 It is a circuit schematic diagram of a transformation unit in an embodiment;

[0020] Figure 4 a schematic diagram of a correspondence between supply power and temperature in one embodiment;

[0021] Figure 5 a flowchart of a method for adjusting operating frequency in one embodiment;

[0022] Figure 6 a flowchart of a method for adjusting operating frequency in another embodiment;

[0023] Figure 7 a schematic diagram of a method for determining a predicted time length by a processor according to a current value of operating current or supply power, a current first temperature value and a first operating frequency, and performing frequency reduction in one embodiment;

[0024] Figure 8 a block diagram of an apparatus for adjusting operating frequency in one embodiment;

[0025] Figure 9 a structural block diagram of an electronic device in another embodiment. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0027] It should be noted that the terms “include” and “have” and any variations thereof in the embodiments of the present application and the drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed or optionally further includes other steps or units inherent to the process, method, product or device.

[0028] It can be understood that the terms “first”, “second” and the like used in the present application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, a first temperature value can be referred to as a second temperature value, and similarly, a second temperature value can be referred to as a first temperature value. Both the first temperature value and the second temperature value are temperature values, but they are not the same temperature. It should be noted that the term “multiple” used in the present application refers to two or more.

[0029] Figure 1A structural block diagram of an electronic device in an embodiment. In the embodiments of the present application, the electronic device can include, but is not limited to, a mobile phone, a smart wearable device, a vehicle terminal, a tablet computer, a notebook computer, etc. As shown in Figure 1 The electronic device 100 can include a power supply module 110 and a processor 120. The power supply module 110 can be connected with the processor 120. Optionally, the connection between the power supply module 110 and the processor 120 can include an electrical connection through a power supply bus and a communication connection through a communication bus.

[0030] The power supply module 110 is configured to supply power to the processor 120.

[0031] In an embodiment, the power supply module 110 can include, but is not limited to, a PMIC (Power Management IC, integrated power management circuit) chip, etc. The power supply module 110 can provide the processor 120 with the operating voltage and operating current required by the processor 120 according to the power provided by the power supply, so that the processor 120 can correctly run and work. The processor 120 needs to be driven at different operating voltages to work at different operating frequencies. The operating frequency of the processor 120 can refer to the main frequency at which the core in the processor 120 works. Each operating frequency of the processor 120 can correspond to a different operating voltage. The operating frequency and the operating voltage can be positively correlated. The higher the operating frequency of the processor 120, the greater the operating voltage required.

[0032] For example, the processor 120 can run at multiple different operating frequencies such as 2.34 GHz (gigahertz), 2.30 GHz, 2.26 GHz, etc. The operating voltage corresponding to the operating frequency 2.34 GHz can be 1.12 V (volt), the operating voltage corresponding to the operating frequency 2.30 GHz can be 1.09 V, the operating voltage corresponding to the operating frequency 2.26 GHz can be 1.06 V, etc., but is not limited thereto.

[0033] In some embodiments, during the operation of the processor 120, the power supply module 110 can obtain the current value of the working current or the power supply power provided to the processor 120, which can reflect the power consumption of the processor 120. For example, the power supply power can be regarded as the consumption power of the processor 120. As an implementation, the power supply module 110 can detect the current value of the working current provided to the processor 120 and send the current value to the processor 120, and the processor 120 can calculate the power supply power according to the current value and the current working voltage. As another implementation, after detecting the current value of the working current provided to the processor 120, the power supply module 110 can also calculate the power supply power of the processor 120 according to the current working voltage provided to the processor 120 and the current value, and then send the power supply power to the processor 120.

[0034] Further, the power supply module 110 can send the current value of the working current or the power supply power to the processor 120 through the communication bus. It should be noted that a function module for obtaining the current value of the working current or the power supply power provided by the power supply module 110 to the processor 120 can also be separately arranged, and a communication connection between the function module and the processor 120 is established, and the function of obtaining the current value or the power supply power is not necessarily integrated in the power supply module 110.

[0035] Optionally, the power supply module 110 can obtain the current value of the working current or the power supply power in real time, or obtain the current value of the working current or the power supply power according to a preset sampling period. The sampling period can be set according to actual needs, for example, 1 second, 2 seconds, 500 milliseconds, etc., but is not limited thereto.

[0036] The processor 120 is configured to determine the predicted time length for the first temperature value to rise to the second temperature value according to the working current or the power supply power provided by the power supply module 110 to the processor 120, the current first temperature value of the processor, and the current first working frequency of the processor, and switch the second working frequency from the first working frequency according to the predicted time length.

[0037] The processor 120 is one of the core components in the electronic device 100, which can execute computer instructions and process data in software programs to realize various functions of the electronic device 100. The processor 120 can also control and allocate various resources (such as memory, input / output units) of the electronic device 100. In order to meet the needs of performing different tasks in the electronic device 100, the processor 120 can usually provide multiple different working frequencies. The higher the working frequency, the faster the running speed of the processor 120, and the more powerful the processing performance of the processor 120.

[0038] The processor 120 can include, but is not limited to, a CPU, an MCU (Microcontroller Unit), a GPU (Graphics Processing Unit), an AP (Application Processor), and the like, or can be other electronic devices with data processing functions. In an embodiment, the electronic device 100 can include a temperature detection module (not shown in the figure), which can be configured to detect a temperature value of the processor 120 and send the detected temperature value to the processor 120. After receiving the current value of the working current or the power supply power sent by the power supply module 120, the processor 120 can predict the temperature change of the processor 120 according to the current value of the working current or the power supply power, the current first temperature value of the processor, and the current first working frequency. The temperature change of the processor 120 can be related to the power consumption of the processor 120, which can be determined according to the current value of the working current or the power supply power as described above. In the case where the working frequency of the processor 120 is greater and the current value of the working current or the power supply power is greater, the corresponding power consumption of the processor 120 is greater, and the generated heat is greater, so the temperature of the processor 120 rises faster.

[0039] The processor 120 can estimate a predicted time length to reach the second temperature value according to the current running state, which can include the current working current or power supply power of the processor 120, the current first temperature value, and the current first working frequency. The processor 120 can switch from the first working frequency to the second working frequency according to the predicted time length, where the first working frequency is greater than the second working frequency. Since the working frequency of the processor 120 is reduced from the first working frequency to the second working frequency, the situation of the processor temperature being too high can be avoided, and the processor 120 is frequency-reduced before the temperature reaches the second temperature value, which can prolong the time for the temperature of the processor to reach the second temperature value, and enhance the safety and stability of the processor.

[0040] In related technologies, the frequency adjustment mechanism of the processor 120 can include: 1. The processor 120 determines the working frequency by judging the required tasks, and adaptively adjusts the working frequency to adapt the running performance of the processor to the required working tasks; 2. In order to ensure that the processor 120 can work stably and safely, the processor 120 detects its own temperature during operation, and reduces the frequency when the temperature is too high. If the processor 120 works at a high working frequency for a long time, the temperature of the processor 120 will be too high. At present, the processor 120 will be greatly frequency-reduced when detecting that its own temperature is too high, in order to achieve the purpose of cooling. This frequency adjustment method can cause a significant decrease in the performance of the processor 120, and thus cause the electronic device to have a significant lag phenomenon.

[0041] In some embodiments, the second temperature value described above can be the original frequency reduction temperature value of the processor 120, and the second temperature value can be the temperature triggering the processor 120 to reduce the working frequency to the third working frequency to achieve cooling. In related technologies, the processor 120 will trigger frequency reduction only when the temperature of the processor 120 reaches the second temperature value, for example, the current working frequency of the processor 120 is 2.34 GHz, and when the temperature of the processor 120 reaches the second temperature value, the working frequency is directly reduced to 1.31 GHz. The working frequency of the processor 120 is greatly reduced, which affects the running performance of the processor 120 and causes the electronic device to appear a situation of freezing.

[0042] In the embodiments of the present application, after the processor 120 estimates the predicted time length from the current first temperature value to the second temperature value, the processor 120 can switch from the first working frequency to the second working frequency in advance according to the predicted time length, and the frequency reduction is performed in advance, and the second working frequency after the reduction is greater than the third working frequency, for example, the processor 120 is reduced from the current working frequency of 2.34 GHz to 2.30 GHz, or to 2.22 GHz, etc. Since the working frequency of the processor 120 is reduced, the corresponding working voltage is also reduced, which reduces the power consumption of the processor 120, thereby reducing the heat generated by the processor 120, delaying the time when the temperature of the processor 120 reaches the second temperature value, and the processor 120 will not appear a situation of greatly reducing the frequency, thereby ensuring the running performance of the processor 120.

[0043] In some embodiments, the processor 120 can determine whether the predicted time length from the first temperature value to the second temperature value is greater than a target time length. The target time length can be a fixed value set in advance, or a value dynamically changed according to the actual executed task of the processor 120. If the predicted time length is not greater than the target time length, it means that the temperature of the processor 120 will rise to the second temperature value in a short time, and the frequency reduction needs to be performed in advance, and then the processor 120 can switch from the first working frequency to the second working frequency. If the predicted time length is greater than the target time length, it means that the temperature of the processor 120 will not rise to the second temperature value in a short time, and the frequency reduction does not need to be performed in advance, and then the processor 120 can continue to obtain the current value or the power supplied by the power supply module 120, and continue to estimate the predicted time length when the temperature of the processor 120 reaches the second temperature value. When the estimated predicted time length is not greater than the target time length, the frequency reduction is performed, thereby maximizing the running performance of the processor 120.

[0044] In some embodiments, the processor 120 can be provided with a plurality of frequency levels, each of which can correspond to a different operating frequency. The frequency level can be negatively correlated with the operating frequency, i.e., the greater the frequency level, the smaller the corresponding operating frequency. As an implementation, the second operating frequency described above can be the operating frequency corresponding to the next frequency level of the first operating frequency. For example, if the current first operating frequency is 2.34 GHz and the corresponding frequency level is 1, the operating frequency of 2.30 GHz corresponding to the frequency level of 2 can be taken as the second operating frequency. As another implementation, the second operating frequency described above can also be the operating frequency reduced by a preset level from the first operating frequency. For example, if the current first operating frequency is 2.34 GHz and the corresponding frequency level is 1, and the preset level of reduction is 2, the operating frequency of 2.26 GHz corresponding to the frequency level of 3 can be taken as the second operating frequency.

[0045] In some embodiments, the processor 120 can determine the second operating frequency according to the predicted time length, which can be positively correlated with the second operating frequency, i.e., the longer the predicted time length, the greater the second operating frequency that can be selected. As a specific implementation, a plurality of time length ranges can be preset, each of which can correspond to a different reduction level. For example, the time length range of 15-20 minutes can correspond to the reduction level of 1, the time length range of 10-15 minutes can correspond to the reduction level of 2, the time length range of 5-10 minutes can correspond to the reduction level of 3, and the like, but not limited thereto. After determining the predicted time length, the processor 120 can determine the corresponding reduction level according to the time length range to which the predicted time length belongs, and determine the second operating frequency according to the reduction level. For example, if the current first operating frequency is 2.34 GHz and the corresponding frequency level is 1, and the processor 120 determines the predicted time length to be 11 minutes, the corresponding reduction level is 2, and the operating frequency of 2.26 GHz corresponding to the frequency level of 3 can be taken as the second operating frequency. According to the predicted time length to select the second operating frequency, the temperature and performance of the processor 120 are taken into account, thereby ensuring the safety and performance of the processor 120.

[0046] In some embodiments, after the operating frequency of the processor 120 is reduced from the first operating frequency to the second operating frequency, the processor 120 can work at the second operating frequency. The second operating frequency can be taken as a new first operating frequency, and the scheme described in the above embodiments can be continued to determine the predicted time length for rising to the second temperature value, and then determine whether the frequency needs to be reduced again, until the processor 120 does not need to be reduced in frequency.

[0047] In some embodiments, the processor 120 can continuously acquire the temperature of the processor 120 after the frequency reduction. The processor 120 is further configured to switch the second working frequency back to the first working frequency if the temperature of the processor 120 is detected to be reduced to a third temperature value. After the frequency reduction, the power supply generated by the processor 120 is reduced, i.e., the power consumption is reduced, and the temperature is reduced. Therefore, when the temperature of the processor 120 is reduced to the third temperature value, the processor 120 can be restored to high frequency operation, and the working frequency is increased from the second working frequency to the first working frequency. In this way, the performance and safety of the processor 120 can be better balanced, and the working performance of the processor 120 can be improved.

[0048] In the embodiments of the present application, the processor 120 can switch from the first working frequency to the second working frequency in advance according to the actual running state before the temperature reaches the second temperature value triggering the frequency reduction. The first working frequency is greater than the second working frequency. In this way, the situation that the temperature of the processor is too high can be avoided in advance, and the time for the temperature of the processor to reach the second temperature value is prolonged, and the safety and stability of the processor are enhanced.

[0049] In addition, the second working frequency is greater than the third working frequency, which can avoid the situation that the performance of the processor is greatly reduced when the temperature reaches the second temperature value and the frequency is reduced to the third working frequency. In this way, the time for the temperature of the processor 120 to reach the second temperature value is prolonged, the running performance of the processor 120 is ensured, and the freezing phenomenon of the electronic device caused by the frequency reduction of the processor 120 is improved.

[0050] As shown in FIG. 2, Figure 2 In one embodiment, the power supply module 110 includes a conversion unit 202, a current detection unit 204, and a control unit 206. The conversion unit 202 is connected with the control unit 206 and the processor 120, respectively. The current detection unit 204 is connected with the control unit 206 and the conversion unit 202, respectively. The control unit 206 is further connected with the processor 120. The conversion unit 202 can be electrically connected with the processor 120. The control unit 206 and the processor 120 can be connected through a communication bus.

[0051] The conversion unit 202 is configured to provide working voltage and working current to the processor 210 according to the power provided by the power supply.

[0052] The conversion unit 202 can also be electrically connected with a power module, such as a battery in an electronic device, an access interface of a charging device, etc. The conversion unit 202 can convert a power voltage provided by the power module to obtain a working voltage required by the processor 120, and provide the working voltage to the processor 120. Meanwhile, the conversion unit 202 can also provide a working current to the processor 210 according to the power provided by the power module. Further, the conversion unit 202 can provide the working voltage to the processor 120 according to the power voltage provided by the power module under the driving of the control unit 206.

[0053] The current detection unit 204 is configured to detect a current value of the working current, and send the current value to the control unit.

[0054] The current detection unit 204 can detect the current value of the working current provided by the conversion unit 202 to the processor 120. Optionally, the current detection unit 204 can detect the current value of the working current of the processor 120 in multiple different current detection manners, such as a mirror current detection manner, an inductance average current detection manner, a series resistance current detection manner, etc. The mirror current detection manner can refer to that a mirror circuit is arranged in the current detection unit 204, and the working current provided by the conversion unit 202 can be obtained through the mirror circuit. The inductance average current detection manner can refer to that the voltage of the inductance of the conversion unit 202 is detected, and the working current provided by the conversion unit 202 is calculated according to the resistance of the inductance. The series resistance manner can refer to that a resistance is connected in series in the conversion unit 202, and the working current provided by the conversion unit 202 is calculated through the detected voltage of the resistance and the resistance value of the resistance. It can be understood that other current detection manners can also be used, which are not limited in the embodiments of the present application.

[0055] In some embodiments, the processor 120 can control the power supply module 110 to provide a working voltage corresponding to the current working frequency to the processor 120 according to the current working frequency, so as to meet the requirement of the processor 120 working at the working frequency. When the processor 120 works at a first working frequency, the control unit 206 of the power supply module 110 is further configured to send a first pulse signal corresponding to the first working frequency to the conversion unit 202. The conversion unit 202 is further configured to convert the power voltage according to the first pulse signal to obtain a first working voltage adapted to the first working frequency, and provide the first working voltage to the processor 120.

[0056] When the processor 120 operates at a first operating frequency, it can send a communication signal carrying a first voltage value corresponding to the first operating frequency to the control unit 206. The control unit 206 can generate a corresponding first pulse signal based on the first voltage value. This first pulse signal can be used to drive the conversion unit 202 to perform a step-down conversion of the power supply voltage, thereby obtaining a first operating voltage with the first voltage value. When the processor 120 operates at different operating frequencies, the required operating voltage is different. Therefore, the control unit 206 can generate different pulse signals based on the required operating voltage of the processor 120. For example, it can generate pulse signals with different duty cycles, different frequencies, or different peak values.

[0057] like Figure 3 As shown, in one embodiment, the conversion unit 202 includes a first switch Q1, a second switch Q2, a first inductor L1, and a first capacitor C1. The first switch Q1 and the second switch Q2 can be connected in series. The first terminal of the first inductor L1 is connected to the first terminal of the first switch Q1 and the second terminal of the second switch Q1, respectively. The second terminal of the first inductor L1 is connected to the first capacitor C1. The first switch Q1, the second switch Q2, the first inductor L1, and the first capacitor C1 can form a step-down conversion circuit to perform step-down conversion on the power supply voltage.

[0058] The first switch Q1 and the second switch Q2 can also be connected to the control unit 206. The control unit 206 can send pulse signals to the first switch Q1 and the second switch Q2 to control the conduction and turn-off of the first switch Q1 and the second switch Q2. In one specific embodiment, the first switch Q1 and the second switch Q2 can both be N-type MOS (Metal-Oxide-Semiconductor Field-Effect Transistor). The gate (G) of the first switch Q1 and the gate (G) of the second switch Q2 are both connected to the control unit 206. The source (S) of the first switch Q1 can be connected to the drain (D) of the second switch Q2 and the first terminal of the first inductor L1, respectively. The drain (D) of the first switch Q1 can be connected to the power supply module.

[0059] As a specific implementation, when the processor 120 works at the first working frequency, the control unit 206 can send a first pulse signal to the first switch Q1 and send a pulse signal opposite to the first pulse signal to the second switch Q2, the first switch Q1 is in a conductive state when the first pulse signal is high, at this time, the opposite pulse signal input to the second switch Q2 is low, and the second switch Q2 is in a cut-off state; the first switch Q1 is in a cut-off state when the first pulse signal is low, at this time, the opposite pulse signal input to the second switch Q2 is high, and the second switch Q2 is in a conductive state. Therefore, the first pulse signal can be used to control the first switch Q1 and the second switch Q2 to switch between the conductive state and the cut-off state, and the power supply voltage (VIN) is chopped and modulated, and the chopped and modulated voltage passes through the LC filter composed of the first voltage L1 and the first capacitor C1 to realize the step-down conversion of the power supply voltage, and the first working voltage required by the processor 120 is obtained.

[0060] The current detection unit 204 can be connected with the first end and the second end of the first inductor L1 respectively, and the current detection unit 204 can detect the current value of the working current provided by the conversion unit 202 to the processor 120.

[0061] The control unit 206 is configured to send the current value to the processor 120.

[0062] The current detection unit 204 can send the detected current value to the control unit 206. In some embodiments, the control unit 206 is further configured to send the current value to the processor 120 through the communication bus. The processor 120 is further configured to calculate the power supply power according to the first working voltage corresponding to the first working frequency and the current value, and determine the predicted time length from the first temperature value to the second temperature value according to the power supply power, the first temperature value and the first working frequency.

[0063] The power supply power can be the sampling power of the processor 120 at a certain moment, the total power supply power of the processor 120 within a certain period of time, or the average power supply power of the processor 120 within a certain period of time, etc.

[0064] As an implementation, the processor 120 can calculate the power supply power of the first time period according to the first working voltage corresponding to the first working frequency and the plurality of current values sent by the control unit 206 in the first time period.

[0065] The power supply power of the first time period can be the total power supply power of the first time period. Alternatively, the plurality of current values received in the first time period can be multiplied by the first working voltage respectively to obtain the power supply power corresponding to the plurality of current values respectively, and the plurality of power supply powers obtained are accumulated to obtain the power supply power of the first time period. Alternatively, the plurality of current values received in the first time period and the first working voltage can be multiplied, and the first time period is integrated to obtain the power supply power of the first time period.

[0066] The power supply power of the first time period can also be the average power supply power of the first time period. Alternatively, the average current value of the plurality of current values received in the first time period can be calculated, and the average current value is multiplied by the first working voltage to obtain the power supply power of the first time period. It should be noted that other ways of calculating the power supply power of the first time period can also be used, which are not limited herein. The first time period can be set according to actual needs, for example, 1 minute, 30 seconds, 50 seconds, 2 minutes, etc., but is not limited thereto.

[0067] As another implementation, the processor 120 is further configured to obtain the current value sent by the control unit 206 according to a time period, calculate the power supply power according to the current value and the first working voltage corresponding to the first working frequency, and determine the predicted time length for the processor 120 to rise from the first temperature value to the second temperature value according to the power supply power, the first temperature value and the first working frequency.

[0068] The processor 120 can sample the current value sent by the control unit 206 according to a time period, which can be set according to actual needs, for example, 40 seconds, 1 minute, 2 minutes, etc., but is not limited thereto. The sampled current value is multiplied by the first working voltage to obtain the power supply power corresponding to the sampled current value.

[0069] After the processor 120 calculates the power supply power according to the current value sent by the power supply module 110 and the first working voltage corresponding to the current first working frequency, the processor 120 can determine the predicted time length for the processor 120 to rise from the first temperature value to the second temperature value according to the power supply power, the current first temperature value and the first working frequency. The processor 120 can switch from the first working frequency to the second working frequency according to the predicted time length, and send a voltage regulation signal to the control unit 206 according to the second working frequency, wherein the voltage regulation signal can carry a second voltage value of the second working voltage corresponding to the second working frequency.

[0070] The control unit 206 is further configured to generate a second pulse signal corresponding to the second operating frequency according to the voltage regulation signal, and send the second pulse signal to the conversion unit 202. The second pulse signal can be used to drive the conversion unit 202 to step-down convert the power supply voltage to obtain the second operating voltage. The conversion unit 202 is further configured to step-down convert the power supply voltage according to the second pulse signal to obtain the second operating voltage adapted to the second operating frequency, and provide the second operating voltage to the processor 120, so that the processor 120 can operate at the second operating frequency.

[0071] In the embodiment of the present application, the power supply module 110 can send a current value to the processor 120, the current value being a current value of the operating current provided by the power supply module 110 to the processor 120. The processor 120 can obtain the power supply power according to the current value and the first operating voltage corresponding to the current first operating frequency, so that the processor 120 can monitor the power consumed by itself, and reduce the operating frequency from the first operating frequency to the second operating frequency in advance before the temperature reaches the second temperature value, so as to avoid the case that the performance of the processor 120 greatly decreases when the operating frequency is reduced to the third operating frequency when the temperature reaches the second temperature value, prolong the time for the temperature of the processor 120 to reach the second temperature value, ensure the operating performance of the processor 120, and improve the freezing phenomenon of the electronic device 100 due to the frequency reduction of the processor 120.

[0072] In one embodiment, the processor 120 is further configured to determine a temperature difference between the first temperature value and the second temperature value, and determine a predicted time length corresponding to the rising temperature difference according to the first relationship between the operating current or the power supply power and the temperature at the first operating frequency.

[0073] The corresponding relationship between the operating current or the power supply power and the temperature of the processor 120 at each operating frequency can be calibrated in advance, and the corresponding relationship can be used to describe the change of the temperature of the processor 120 with the change of the operating current or the power supply power. The corresponding relationship can be calibrated by experiment before the processor 120 is shipped, or can be calibrated according to the change of the operating current or the power supply power provided by the power supply module 110 to the processor 120 in the actual use process of the electronic device. The corresponding relationship between the operating current or the power supply power and the temperature of the processor 120 at different operating frequencies can be the same or different, that is, the power supply module 110 provides the same operating current to the processor 120 or the processor 120 has the same power supply power at different operating frequencies, and the temperature change caused thereby can be the same or different.

[0074] Optionally, since the operating voltage is fixed at the same operating frequency, the magnitude of the operating current supplied by the power supply module 110 to the processor 120 can directly reflect the magnitude of the power supply, and a direct correlation between operating current and temperature can be established. In another embodiment, a correlation between power supply and temperature can also be established.

[0075] The above correspondence can be represented by a curve. Figure 4 This is a schematic diagram illustrating the relationship between power supply and temperature in one embodiment. For example... Figure 4 As shown, curve 410 represents the relationship between power supply and temperature at operating frequency A, and curve 420 represents the relationship between power supply and temperature at operating frequency B. Operating frequency A can be higher than operating frequency B; that is, when processor 120 operates at a lower frequency, the temperature rise will be slower. It should be noted that... Figure 4 This is only used to illustrate the correspondence between power supply and temperature in the embodiments of this application, and is not intended to limit the correspondence. The actual correspondence between power supply and temperature of processor 120 can be determined based on actual measurement data, and is related to the model, heat dissipation capacity, power consumption, etc. of processor 120.

[0076] In one specific implementation, after acquiring the current value or power supply of the operating current, the processor 120 can compare the current value or power supply with the first relationship corresponding to the first operating frequency to obtain the target temperature corresponding to the current value or power supply, and determine the temperature change rate corresponding to the target temperature. Further, the temperature change rate can be determined based on the slope of the target temperature in the first relationship. The larger the slope corresponding to the target temperature, the faster the temperature change rate; the smaller the slope corresponding to the target temperature, the slower the temperature change rate.

[0077] The processor 120 can determine whether the first temperature value is lower than the target temperature. If the first temperature value is lower than the target temperature, it means that the temperature of the processor 120 will rise under the current or power supply. Based on the corresponding rate of temperature change, the predicted duration corresponding to the temperature difference between the first and second temperature values ​​can be determined. Furthermore, the predicted duration can be obtained by dividing the temperature difference by the rate of temperature change. If the first temperature value is not lower than the target temperature, it means that the temperature of the processor 120 will not rise temporarily under the current current or power supply, and frequency reduction is not required.

[0078] In the embodiment of the present application, the processor 120 can determine the predicted time length from the current first temperature value to the second temperature value by using a first relationship corresponding to the current first working frequency, the first relationship can be used to describe the corresponding relationship between the working current or the power supply power and the temperature of the processor 120 at the first working frequency, so that the predicted time length can be accurately obtained, and the accuracy of the working frequency adjustment of the processor 120 is improved.

[0079] In one embodiment, the processor 120 is further configured to obtain task data of a currently running task, and predict power consumption change data in a future second time period according to the task data and the working current or the power supply power; and determine the predicted time length from the first temperature value to the second temperature value according to the power consumption change data, the current first temperature value and the current first working frequency.

[0080] The task data can include but is not limited to one or more of task load, task quantity, running time length of each task, corresponding application program, etc., wherein the task load can refer to the number of processes occupying the processor time and the number of processes waiting for the processor time, etc. The task data can reflect the current task processing pressure of the processor 120, the greater the task processing pressure, the higher the requirement for the running performance of the processor 120, and the greater the power consumption generated by the processor 120.

[0081] The processor 120 can predict the power consumption change data in the future second time period according to the task data of the currently running task, if the task data of the currently running task reflects that the current task processing pressure of the processor is large, the power consumption in the future second time period will be large, if the task data of the currently running task reflects that the current task processing pressure of the processor is small, the power consumption in the future second time period will be small or remain unchanged. The power consumption change data can include the change trend and the change speed of the power consumption, such as the change trend and the change speed of the power supply power.

[0082] In some embodiments, the processor 120 can also predict the power consumption change data in the future second time period in combination with the use habit of the user using the electronic device. After the processor obtains the task data of the currently running task, the task data can include the application program corresponding to each task, the historical use data of the application program corresponding to each task can be obtained, and the historical use data can be analyzed to obtain the use habit data corresponding to each application program.

[0083] The historical use data of the application program can include but is not limited to the historical use time length of the application program at each running time, the historical power consumption data corresponding to the processor 120, etc., further, the historical power consumption data corresponding to the processor 120 can be the power supply power data of the processor 120 when the electronic device is running only the application program, which can improve the accuracy of the use habit data. The use habit data can include habit use time length and habit power consumption.

[0084] Optionally, the processor 120 can average the historical usage data of the application program to obtain usage habit data according to the historical usage data. For example, the historical usage duration of the application program can be averaged to obtain an average usage duration, and the historical power consumption data of the processor 120 can be averaged to obtain average power consumption data, and the average usage duration can be taken as the habit usage duration and the average power consumption data can be taken as the habit power consumption to obtain the usage habit data of the application program.

[0085] Optionally, the processor 120 can also count the historical usage data of the application program to obtain the historical usage data with the largest number of occurrences as the usage habit data. For example, the historical usage duration of the application program can be counted, and the historical usage duration with the largest number of occurrences (the counting method can be counting in specific duration or counting in time range, such as counting the number of times of historical usage duration greater than 20 minutes, counting the number of times of historical usage duration between 10 and 20 minutes, etc.) can be obtained, and the historical power consumption data of the processor 120 can be counted, and the historical power consumption data with the largest number of occurrences can be obtained. The historical usage duration with the largest number of occurrences can be taken as the habit usage duration, and the historical power consumption data with the largest number of occurrences can be taken as the habit power consumption to obtain the usage habit data of the application program.

[0086] The processor 120 can predict the power consumption change data in a second time period in the future according to the usage habit data of the application program corresponding to each task. Optionally, the second time period can be a fixed time period set in advance, for example, 5 minutes, 7 minutes, 10 minutes, etc., but is not limited thereto.

[0087] As an optional implementation, the processor 120 can obtain the habit usage duration of the application program corresponding to each task currently running, and determine the second time period according to the habit usage duration. Optionally, the second time period can be the average duration of the habit usage duration of the application program corresponding to each task, or the maximum duration of the habit usage duration of the application program corresponding to each task, or the minimum duration of the habit usage duration of the application program corresponding to each task, etc., which is not limited herein.

[0088] The processor 120 can also predict the power consumption change data in the second time period in the future according to the habit power consumption of the application programs corresponding to the tasks currently running, and further determine the change trend of the supply power according to the habit power consumption. Specifically, the application programs corresponding to the tasks currently running can be assigned with corresponding weight coefficients, and the habit power consumption of each application program can be weighted and calculated according to the weight coefficients of the application programs, to obtain target power consumption data. It can be determined whether the current power consumption data of the processor 120 is less than the target power consumption data, if less, it can be determined that the change trend of the power consumption data is increasing, if not less, it can be determined that the change trend of the power consumption data is decreasing or not changing, etc.

[0089] In the case that the change trend of the power consumption data is increasing, the processor 120 can further predict the change speed of the power consumption according to the habit power consumption of the application programs corresponding to the tasks currently running. Specifically, the difference between the current power consumption data of the processor 120 and the target power consumption data can be used for prediction, the greater the difference, the faster the corresponding change speed, and the smaller the difference, the smaller the corresponding change speed. For example, the target power consumption data can include target power, the processor 120 can calculate the target power according to the habit power consumption of the application programs corresponding to the tasks currently running, and calculate the current supply power according to the current of the working current sent by the power supply module 110, and then predict the change trend and change speed of the supply power in the second time period in the future according to the current supply power and the target power, etc.

[0090] It should be noted that the processor 120 in the embodiments of the present application can also predict the power consumption change data in the second time period in the future in other ways, for example, a neural network can be used, a prediction model can be established in advance, and the prediction model can be trained by collecting task data and corresponding power consumption data of the processor 120 in the actual running process, so that the prediction model has the ability to predict the power consumption change data according to the task data. After the processor 120 obtains the current working current or supply power, the current working current or supply power and the task data currently running can be input into the prediction model, and the power consumption change data in the second time period in the future can be predicted through the prediction model, etc. The way in which the processor 120 predicts the power consumption change data in the second time period in the future is not limited in the embodiments of the present application.

[0091] The processor 120 can determine a predicted time length for the first temperature value to rise to the second temperature value according to the predicted power consumption change data, the current first temperature value and the current first working frequency. Alternatively, the processor 120 can convert the power consumption change data into temperature change data, and the conversion relationship between the power consumption change data and the temperature change data can be determined in advance according to a large number of experiments. The conversion relationship between the power consumption change data and the temperature change data can change with the working frequency of the processor 120. Therefore, the processor 120 can convert the power consumption change data into the temperature change data according to the conversion relationship corresponding to the current first working frequency. The temperature change data can include a temperature change trend and a temperature change speed. If the temperature change trend is a temperature rising trend, the temperature difference between the second temperature value and the first temperature value can be divided by the temperature change speed to obtain the predicted time length.

[0092] In some embodiments, the processor 120 is further configured to determine a second working frequency according to the task data and switch from the first working frequency to the second working frequency if the predicted time length is greater than the target time length. The second working frequency can be determined according to the task data currently running on the processor 120, so as to ensure that the reduced second working frequency can support the processor 120 to continue running the corresponding task and will not affect the task.

[0093] As a specific implementation, the task data can include a task load, and the processor 120 is further configured to determine a target frequency level capable of supporting the task load. If there are multiple target frequency levels, the working frequency of the next target frequency level at the first working frequency can be determined as the second working frequency, or the working frequency of the largest target frequency level can be determined as the second working frequency.

[0094] The processor 120 can be provided with multiple frequency levels, and the multiple frequency levels can correspond to different working frequencies respectively. The processor 120 can determine a target frequency level capable of supporting the current task load from the multiple frequency levels according to the current task load. The greater the task load is, the higher the performance requirement for the processor 120 is, and the greater the working frequency required by the processor 120 is. For example, the processor 120 determines that the target frequency level capable of supporting the current task load is 1-4 levels according to the current task load, and the second working frequency can be selected from 1-4 levels.

[0095] As an implementation, if there are multiple target frequency levels capable of supporting the task load, the processor 120 can determine the working frequency of the next target frequency level at the first working frequency as the second working frequency. For example, the frequency level corresponding to the first working frequency is 2 levels, and the target frequency level capable of supporting the task load is 1-4 levels. The working frequency of 3 levels can be determined as the second working frequency. In this way, the running performance of the processor 120 can be guaranteed to the maximum extent.

[0096] As another optional implementation, if there are multiple target frequency gears capable of supporting the task load, the processor 120 can also determine the working frequency of the largest target frequency gear as the second working frequency, that is, select the smallest working frequency capable of supporting the task load as the second working frequency. For example, the target frequency gears capable of supporting the task load are gears 1-5, and the working frequency of gear 5 can be directly determined as the second working frequency. In this way, the power consumption generated by the processor 120 can be quickly reduced, and the temperature of the processor 120 can be reduced while ensuring that the processor 120 normally runs the task.

[0097] In the embodiment of the present application, the processor 120 can predict the power consumption change data in the future second time period according to the task data currently running, thereby determining the predicted duration of the temperature rising from the first temperature value to the second temperature value. The temperature rising condition can be predicted according to the actual task processing condition of the processor 120, so that the prediction result is more accurate, and the processor 120 can reduce the working frequency from the first working frequency to the second working frequency in advance according to the actual running state before the temperature reaches the second temperature value triggering the frequency reduction. The time for the temperature of the processor to reach the second temperature value is prolonged while ensuring that the current task can be supported, the running performance of the processor is ensured, and the freezing phenomenon of the electronic device due to the frequency reduction of the processor is improved.

[0098] As shown in FIG. 5, in one embodiment, a working frequency adjustment method is provided, which can be applied to the above-mentioned electronic device. The method can include the following steps: Figure 5

[0099] Step 510: The processor determines the predicted duration of the temperature rising from the first temperature value to the second temperature value according to the working current or the power supply power provided by the power supply module to the processor, the current first temperature value, and the current first working frequency.

[0100] Step 520: The processor switches the first working frequency to the second working frequency according to the predicted duration, wherein the first working frequency is greater than the second working frequency.

[0101] In one embodiment, the second temperature value is a temperature triggering the processor to switch the working frequency to the third working frequency to achieve cooling, and the second working frequency is greater than the third working frequency.

[0102] In one embodiment, after switching from the first working frequency to the second working frequency according to the predicted duration, the method further includes: if the processor detects that the temperature of the processor decreases to the third temperature value, switching back from the second working frequency to the first working frequency.

[0103] ​In this embodiment, the processor can switch its operating frequency from a first operating frequency to a second operating frequency based on the actual operating state before the temperature reaches the second temperature value that triggers frequency reduction. The first operating frequency is greater than the second operating frequency, which avoids the processor temperature from getting too high in advance and prolongs the time it takes for the processor temperature to reach the second temperature value, thereby enhancing the processor's safety and stability.

[0104] Furthermore, the aforementioned second operating frequency is higher than the third operating frequency, which can avoid the situation where the processor performance drops significantly when the frequency is reduced to the third operating frequency after the temperature reaches the second temperature value. This extends the time it takes for the processor to reach the second temperature value, ensures the processor's operating performance, and improves the stuttering phenomenon in electronic devices caused by processor frequency reduction.

[0105] like Figure 6 As shown, in another embodiment, a method for adjusting the operating frequency is provided. This method can be applied to the above-described electronic device and may include the following steps:

[0106] Step 610: The processor receives the current value or power supply sent by the power supply module. The current value is the operating current provided by the power supply module to the processor.

[0107] Step 620: The processor determines the predicted time for the processor to rise from the first temperature value to the second temperature value based on the current value or power supply, the current first temperature value, and the current first operating frequency.

[0108] In some embodiments, step 610 includes: the processor receiving a current value sent by the power supply module via a communication bus.

[0109] Step 620 includes: the processor calculates the power supply based on the first operating voltage and current value corresponding to the first operating frequency, and determines the predicted time from the first temperature value to the second temperature value based on the power supply, the first temperature value and the first operating frequency.

[0110] In one embodiment, the step of calculating the power supply based on the first operating voltage and current value corresponding to the first operating frequency includes: calculating the power supply power for the first time period based on multiple current values ​​sent by the power supply module in the first time period and the first operating voltage corresponding to the first operating frequency; or obtaining the current value sent by the power supply module according to the time period, and calculating the power supply power based on the current value and the first operating voltage corresponding to the first operating frequency.

[0111] In one embodiment, step 620 includes: the processor determining the temperature difference between the first temperature value and the second temperature value, and determining the predicted duration corresponding to the rising temperature difference based on the operating current or power supply and the first relationship corresponding to the first operating frequency, wherein the first relationship is used to describe the correspondence between the processor's operating current or power supply and temperature at the first operating frequency.

[0112] Step 630: The processor switches from a first operating frequency to a second operating frequency based on the predicted duration, wherein the first operating frequency is greater than the second operating frequency.

[0113] like Figure 7 As shown, in one embodiment, step 620 may include steps 702-706, and step 630 may include step 708:

[0114] Step 702: The processor obtains the data of the currently running task.

[0115] Step 704: Based on the operating current or power supply and the task data, predict the power consumption change data in the second future time period.

[0116] Step 706: Based on the power consumption change data, the current first temperature value, and the current first operating frequency, determine the predicted time for the temperature to rise from the first temperature value to the second temperature value.

[0117] Step 708: If the predicted duration is longer than the target duration, determine the second working frequency based on the task data and switch from the first working frequency to the second working frequency.

[0118] In one embodiment, the task data includes the task load. The step of determining the second operating frequency based on the task data includes: determining a target frequency level that the processor can support for the task load; if there are multiple target frequency levels, determining the operating frequency of the next target frequency level after the first operating frequency as the second operating frequency, or determining the operating frequency of the highest target frequency level as the second operating frequency, wherein the processor's operating frequency is negatively correlated with the frequency level.

[0119] It should be noted that the description of the operating frequency adjustment method provided in the embodiments of this application can be referred to the relevant description of the electronic devices provided in the above embodiments, and will not be repeated here.

[0120] In this embodiment, the processor can predict power consumption changes in a future second time period based on the currently running task data, thereby determining the predicted time from the first temperature value to the second temperature value. It can predict the temperature rise based on the actual task processing of the processor, making the prediction results more accurate. Furthermore, the processor can reduce its operating frequency from the first operating frequency to the second operating frequency in advance based on the actual operating state before the temperature reaches the second temperature value that triggers frequency reduction. While ensuring that the current task can be supported, it extends the time for the processor temperature to reach the second temperature value, ensuring the processor's operating performance and improving the stuttering phenomenon of electronic devices caused by processor frequency reduction.

[0121] like Figure 8 As shown, in one embodiment, a working frequency adjustment device 800 is provided, which can be applied in electronic devices. The working frequency adjustment device 800 includes a prediction module 810 and a down-frequency module 820.

[0122] The prediction module 810 is used to determine the predicted time for the processor to rise from the first temperature value to the second temperature value based on the operating current or power supplied to the processor by the power supply module, the current first temperature value, and the current first operating frequency.

[0123] The down-frequency module 820 is used to switch from a first operating frequency to a second operating frequency based on the predicted duration, wherein the first operating frequency is greater than the second operating frequency.

[0124] In one embodiment, the second temperature value is the temperature at which the processor is triggered to reduce its operating frequency to a third operating frequency to achieve cooling, and the second operating frequency is greater than the third operating frequency.

[0125] In one embodiment, the operating frequency adjustment device 800 further includes an upsampling module for switching back from the second operating frequency to the first operating frequency if the temperature of the processor is detected to drop to a third temperature value.

[0126] In this embodiment, the processor can switch its operating frequency from a first operating frequency to a second operating frequency based on the actual operating state before the temperature reaches the second temperature value that triggers frequency reduction. The first operating frequency is greater than the second operating frequency, which avoids the processor temperature from getting too high in advance and prolongs the time it takes for the processor temperature to reach the second temperature value, thereby enhancing the processor's safety and stability.

[0127] Furthermore, the aforementioned second operating frequency is higher than the third operating frequency, which can avoid the situation where the processor performance drops significantly when the frequency is reduced to the third operating frequency after the temperature reaches the second temperature value. This extends the time it takes for the processor to reach the second temperature value, ensures the processor's operating performance, and improves the stuttering phenomenon in electronic devices caused by processor frequency reduction.

[0128] In one embodiment, the working frequency adjusting apparatus 800 described above, in addition to comprising the prediction module 810 and the frequency reduction module 820, further comprises a receiving module.

[0129] The receiving module is configured to receive, by the processor, the current value or the power value sent by the power supply module, the current value being a current value of working current provided by the power supply module to the processor.

[0130] In one embodiment, the receiving module 810 is further configured to receive, by the processor, the current value sent by the power supply module through the communication bus.

[0131] The prediction module 810 is further configured to calculate, by the processor, the power value according to the first working voltage corresponding to the first working frequency and the current value, and determine the predicted time length for the temperature to rise from the first temperature value to the second temperature value according to the power value, the first temperature value and the first working frequency.

[0132] In one embodiment, the prediction module 810 is further configured to calculate, by the processor, the power value of the first time period according to the first working voltage corresponding to the first working frequency and the plurality of current values sent by the power supply module in the first time period, or configured to obtain, by the processor, the current value sent by the power supply module according to the time period, and calculate the power value according to the current value and the first working voltage corresponding to the first working frequency.

[0133] In the embodiments of the present application, the power supply module can send the current value of the working current to the processor, and the processor can obtain the power value according to the current value and the first working voltage corresponding to the current first working frequency. The processor realizes the monitoring of the power consumed by itself, and reduces the working frequency from the first working frequency to the second working frequency in advance before the temperature reaches the second temperature value, which can avoid the case that the performance of the processor greatly decreases when the working frequency is reduced to the third working frequency when the temperature reaches the second temperature value, prolongs the time for the temperature of the processor to reach the second temperature value, guarantees the running performance of the processor, and improves the freezing phenomenon of the electronic device caused by the frequency reduction of the processor.

[0134] In one embodiment, the prediction module 810 is further configured to determine, by the processor, a temperature difference value between the first temperature value and the second temperature value, and determine the predicted time length corresponding to the rising temperature difference value according to the working current or the power value and a first relationship corresponding to the first working frequency, the first relationship being used to describe the corresponding relationship between the working current or the power value and the temperature of the processor at the first working frequency.

[0135] In the embodiment of the present application, the processor can determine the predicted time length from the current first temperature value to the second temperature value by using the first relationship corresponding to the current first working frequency, and the first relationship can be used to describe the corresponding relationship between the working current or the power supply power and the temperature of the processor at the first working frequency, so that the predicted time length can be accurately obtained, and the accuracy of the working frequency adjustment of the processor is improved.

[0136] In one embodiment, the prediction module 810 includes a task acquisition unit, a change prediction unit and a time length determination unit.

[0137] The task acquisition unit is configured to acquire task data of a currently running task by the processor.

[0138] The change prediction unit is configured to predict power consumption change data in a future second time period according to the working current or the power supply power and the task data.

[0139] The time length determination unit is configured to determine a predicted time length from the first temperature value to the second temperature value according to the power consumption change data, the current first temperature value and the current first working frequency.

[0140] In one embodiment, the frequency reduction module 820 is further configured to determine a second working frequency according to the task data and switch from the first working frequency to the second working frequency if the predicted time length is greater than the target time length.

[0141] In one embodiment, the task data includes a task load. The frequency reduction module 820 is further configured to determine a target frequency level that the processor can support for the task load, and determine a working frequency at a next target frequency level of the first working frequency as the second working frequency or a working frequency at a maximum target frequency level as the second working frequency if there are multiple target frequency levels, wherein the working frequency of the processor and the frequency level are in a negative correlation relationship.

[0142] In the embodiment of the present application, the processor can predict the power consumption change data in the future second time period according to the task data of the currently running task, so as to determine the predicted time length from the first temperature value to the second temperature value, and the temperature rising condition can be predicted according to the actual task processing condition of the processor, so that the prediction result is more accurate, and the processor can reduce the working frequency from the first working frequency to the second working frequency in advance according to the actual running state before the temperature reaches the second temperature value triggering the frequency reduction, so as to prolong the time for the temperature of the processor to reach the second temperature value while ensuring that the current task can be supported, guarantee the running performance of the processor, and improve the freezing phenomenon of the electronic device due to the frequency reduction of the processor.

[0143] Figure 9 is a structural block diagram of an electronic device in another embodiment. As Figure 9As shown, the electronic device 900 can include one or more of the following components: a processor 910, a memory 920 coupled with the processor 910, wherein the memory 920 can store one or more computer programs which can be configured to implement the methods described in the above embodiments when executed by the one or more processors 910.

[0144] The processor 910 can include one or more processing cores. The processor 910 connects various parts in the entire electronic device 900 by various interfaces and lines, and performs various functions of the electronic device 900 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920. Alternatively, the processor 910 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 910 can integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU is mainly used to process operating systems, user interfaces, and application programs; the GPU is used to render and draw display content; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 910, but can be implemented by a separate communication chip.

[0145] The memory 920 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 920 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 920 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area can also store data created by the electronic device 900 in use, etc.

[0146] It can be understood that the electronic device 900 can include more or less structural elements than those in the above structural block diagram, for example, including a power module, a physical key, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited herein.

[0147] An embodiment of the present application discloses a computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method described in the above embodiment.

[0148] An embodiment of the present application discloses a computer program product, comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is executed by a processor to implement the method described in the above embodiment.

[0149] Those skilled in the art can understand that all or part of the processes of the above-mentioned embodiments can be completed by a computer program instructing related hardware, and the program can be stored in a non-volatile computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. The storage medium can be a magnetic disc, an optical disc, a ROM, etc.

[0150] As used herein, any reference to memory, storage or database or other medium can include non-volatile and / or volatile storage. Suitable non-volatile storage can include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), or flash storage. Volatile storage can include random access memory (RAM) used as external cache memory. As an illustration and not a limitation, RAM can be in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and direct Rambus dynamic RAM (DRDRAM).

[0151] It should be understood that every feature, structure, or characteristic described herein is within a preferred embodiment of the present application. It should be understood that "comprising," "including," "has," and any variations thereof are not intended to exclude other features, structures, or characteristics from the present application. Further, unless otherwise specified, "first," "second," or "third" and any variations thereof are not intended to imply that a feature, structure, or characteristic described herein is preferred over another feature, structure, or characteristic. Moreover, unless otherwise specified, the use of relative terms, such as "about," "approximately," "substantially," or the like, typically denote that a feature, structure, or characteristic is within some acceptable limit or range.

[0152] In various embodiments of the present application, it should be understood that the magnitude of the serial number of the above processes does not mean the inevitable sequence of execution, and the execution sequence of the processes should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0153] The units described as separate components above can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place, or they can 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 embodiments of the present application.

[0154] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0155] The above describes in detail a working frequency adjustment method, device, electronic equipment and storage medium disclosed by the embodiments of the present application. The principles and implementation modes of the present application are described by applying specific examples. The above embodiment descriptions are only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. An electronic device, characterized in that, Includes power supply module and processor; The power supply module is used to supply power to the processor; The processor is configured to determine the predicted time for the processor to rise from the first temperature value to the second temperature value based on the operating current or power supplied to the processor by the power supply module, the current first temperature value of the processor, the current first operating frequency, and the first relationship corresponding to the first operating frequency, and to switch from the first operating frequency to the second operating frequency based on the predicted time. Wherein, the first operating frequency is greater than the second operating frequency, and the first relationship is used to describe the correspondence between the processor's operating current or power supply and temperature at the first operating frequency; The power supply module is also used to acquire the current value or power supply of the operating current supplied to the processor, and send the current value or power supply of the operating current to the processor. The power supply module includes a conversion unit, a current detection unit, and a control unit, wherein the current detection unit is connected to the conversion unit, the processor, and the control unit respectively. The conversion unit is used to provide the processor with operating voltage and operating current according to the electrical energy provided by the power supply; The current detection unit is used to detect the current value of the operating current and send the current value to the control unit; The control unit is used to send the current value to the processor.

2. The electronic device according to claim 1, characterized in that, The second temperature value is the temperature at which the processor is triggered to switch its operating frequency to the third operating frequency to achieve cooling, and the second operating frequency is greater than the third operating frequency.

3. The electronic device according to claim 1, characterized in that, The control unit is connected to the processor via a communication bus; The control unit is further configured to send the current value of the operating current to the processor via the communication bus; The processor is further configured to calculate the power supply based on the first operating voltage corresponding to the first operating frequency and the current value, and to determine the predicted time for the temperature to rise from the first temperature value to the second temperature value based on the power supply, the first temperature value, the first operating frequency and the first relationship.

4. The electronic device according to claim 3, characterized in that, The processor is further configured to calculate the power supply during the first time period based on multiple current values ​​sent by the control unit during the first time period and the first operating voltage corresponding to the first operating frequency, and to determine the predicted duration for the temperature to rise from the first temperature value to the second temperature value based on the power supply during the first time period, the first temperature value, the first operating frequency, and the first relationship; or The processor is further configured to acquire the current value sent by the control unit according to a time period, calculate the power supply based on the current value and the first operating voltage corresponding to the first operating frequency, and determine the predicted time from the first temperature value to the second temperature value based on the power supply, the first temperature value, the first operating frequency and the first relationship.

5. The electronic device according to claim 1, 3, or 4, characterized in that, The control unit is further configured to send a first pulse signal corresponding to the first operating frequency to the conversion unit; The conversion unit is further configured to perform step-down conversion on the power supply voltage according to the first pulse signal to obtain a first operating voltage adapted to the first operating frequency, and provide the first operating voltage to the processor; The processor is further configured to send a voltage regulation signal to the control unit according to the second operating frequency after switching from the first operating frequency to the second operating frequency; The control unit is further configured to generate a second pulse signal corresponding to the second operating frequency based on the voltage regulation signal, and send the second pulse signal to the conversion unit; The conversion unit is further configured to perform step-down conversion on the power supply voltage according to the second pulse signal to obtain a second operating voltage adapted to the second operating frequency, and to provide the second operating voltage to the processor.

6. The electronic device according to claim 5, characterized in that, The conversion unit includes a first switch, a second switch, a first inductor, and a first capacitor. The first switch and the second switch are connected in series. The first end of the first inductor is connected to the first end of the first switch and the second end of the second switch, respectively. The second end of the first inductor is connected to the first capacitor. The first switch, the second switch, the first inductor, and the first capacitor form a step-down conversion circuit. The current detection unit is connected to the first end and the second end of the first inductor, respectively.

7. A method for adjusting operating frequency, characterized in that, This invention relates to an electronic device, which includes a processor and a power supply module. The power supply module is further configured to acquire the current value or power supply of the operating current provided to the processor, and send the current value or power supply to the processor. The power supply module includes a conversion unit, a current detection unit, and a control unit. The current detection unit is connected to the conversion unit, the processor, and the control unit, respectively. The conversion unit is configured to provide the processor with an operating voltage and an operating current based on the electrical energy supplied by the power source. The current detection unit is configured to detect the current value of the operating current and send the current value to the control unit. The control unit is used to send the current value to the processor; The method includes: The processor determines the predicted time for the processor to rise from the first temperature value to the second temperature value based on the operating current or power supplied to the processor by the power supply module, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency. The first relationship is used to describe the correspondence between the operating current or power supplied to the processor and the temperature at the first operating frequency. The processor switches from the first operating frequency to the second operating frequency according to the predicted duration, wherein the first operating frequency is greater than the second operating frequency.

8. The method according to claim 7, characterized in that, The second temperature value is the temperature at which the processor is triggered to switch its operating frequency to the third operating frequency to achieve cooling, and the second operating frequency is greater than the third operating frequency.

9. The method according to claim 7 or 8, characterized in that, Before the processor determines the predicted time for the processor to rise from the first temperature value to the second temperature value based on the operating current or power supplied to the processor by the power supply module, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency, the method includes: The processor receives the current value or power supply sent by the power supply module, wherein the current value is the operating current provided by the power supply module to the processor.

10. The method according to claim 9, characterized in that, The processor receives the current value or power supply sent by the power supply module, including: The processor receives the current value sent by the power supply module through the communication bus; The step of determining the predicted time for the temperature to rise from the first temperature value to the second temperature value based on the operating current or power supplied by the power supply module to the processor, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency includes: The power supply is calculated based on the first operating voltage corresponding to the first operating frequency and the current value. Based on the power supply, the first temperature value, the first operating frequency, and the first relationship, the predicted time for the temperature to rise from the first temperature value to the second temperature value is determined.

11. The method according to claim 10, characterized in that, The step of calculating the power supply based on the first operating voltage corresponding to the first operating frequency and the current value includes: The power supply power during the first time period is calculated based on the multiple current values ​​sent by the power supply module during the first time period and the first operating voltage corresponding to the first operating frequency; or The current value sent by the power supply module is obtained according to the time period, and the power supply power is calculated based on the current value and the first operating voltage corresponding to the first operating frequency.

12. The method according to any one of claims 7-8 and 10-11, characterized in that, The step of determining the predicted time for the temperature to rise from the first temperature value to the second temperature value based on the operating current or power supplied by the power supply module to the processor, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency includes: The temperature difference between the first temperature value and the second temperature value is determined, and the predicted duration corresponding to the rise of the temperature difference is determined based on the operating current or power supply and the first relationship.

13. The method according to any one of claims 7-8 and 10-11, characterized in that, The step of determining the predicted time for the temperature to rise from the first temperature value to the second temperature value based on the operating current or power supplied by the power supply module to the processor, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency includes: The processor acquires data of the currently running task; Based on the operating current or power supply, and the task data, predict the power consumption change data in the second future time period; Based on the power consumption change data, the current first temperature value, the current first operating frequency, and the first relationship, the predicted time for the temperature to rise from the first temperature value to the second temperature value is determined.

14. The method according to claim 13, characterized in that, The step of switching from the first operating frequency to the second operating frequency based on the predicted duration includes: If the predicted duration is greater than the target duration, a second operating frequency is determined based on the task data, and the system switches from the first operating frequency to the second operating frequency.

15. The method according to claim 14, characterized in that, The task data includes the task load; determining the second operating frequency based on the task data includes: Determine the target frequency range that the processor can support for the task load; If there are multiple target frequency levels, the operating frequency of the next target frequency level after the first operating frequency will be determined as the second operating frequency, or the operating frequency of the largest target frequency level will be determined as the second operating frequency, wherein the operating frequency of the processor is negatively correlated with the frequency level.

16. The method according to claim 7 or 8, characterized in that, After switching from the first operating frequency to the second operating frequency based on the predicted duration, the method further includes: If the processor detects that the processor temperature has dropped to a third temperature value, it switches back from the second operating frequency to the first operating frequency.

17. A working frequency adjustment device, characterized in that, This invention relates to an electronic device, which includes a processor and a power supply module. The power supply module is further configured to acquire the current value or power supply of the operating current provided to the processor, and send the current value or power supply to the processor. The power supply module includes a conversion unit, a current detection unit, and a control unit. The current detection unit is connected to the conversion unit, the processor, and the control unit, respectively. The conversion unit is configured to provide the processor with an operating voltage and an operating current based on the electrical energy supplied by the power source. The current detection unit is configured to detect the current value of the operating current and send the current value to the control unit. The control unit is used to send the current value to the processor; The device includes: The prediction module is used to determine the predicted time for the processor to rise from the first temperature value to the second temperature value based on the operating current or power supplied to the processor by the power supply module, the current first temperature value, the current first operating frequency, and the first relationship corresponding to the first operating frequency. The first relationship is used to describe the correspondence between the operating current or power supplied to the processor and the temperature at the first operating frequency. The frequency reduction module is used to switch from the first operating frequency to the second operating frequency according to the predicted duration, wherein the first operating frequency is greater than the second operating frequency.

18. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 7 to 16.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 7 to 16.

Citation Information

Patent Citations

  • Temperature regulation device and method

    CN104122962A