CN107193229B - Control method and electronic equipment - Google Patents
Control method and electronic equipment Download PDFInfo
- Publication number
- CN107193229B CN107193229B CN201710221600.4A CN201710221600A CN107193229B CN 107193229 B CN107193229 B CN 107193229B CN 201710221600 A CN201710221600 A CN 201710221600A CN 107193229 B CN107193229 B CN 107193229B
- Authority
- CN
- China
- Prior art keywords
- current
- processor
- state
- temperature
- voltage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Abstract
The invention discloses a control method and electronic equipment. The method comprises the following steps: detecting a first current of an electronic device processor; the first current is used for the processor to calculate power consumption; the first current is provided to the processor by a voltage generator; the voltage generator is also used for providing working voltage for the processor; determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor; and controlling the electronic equipment to adjust the first current of the processor by using the determined first state so as to enable the processor to determine corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
Description
Technical Field
The present invention relates to control technologies, and in particular, to a control method and an electronic device.
Background
With the development of science and technology, the great pursuit of the performance of electronic devices becomes a key point of research. Among the schemes for improving performance, improving the performance of the processor (processor over-clocking) is a core scheme for improving the performance of the electronic device.
At present, the control of the processor overclocking is basically a passive mode, has no universality, and the effect of the mode on improving the performance of the processor is not obvious.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a control method and an electronic device.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a control method, which comprises the following steps:
detecting a first current of an electronic device processor; the first current is used for the processor to calculate power consumption; the first current is provided to the processor by a voltage generator; the voltage generator is also used for providing working voltage for the processor;
determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor;
and controlling the electronic equipment to adjust the first current of the processor by using the determined first state so as to enable the processor to determine corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
In the above solution, when the first state represents that the load of the processor exceeds a first threshold, the method further includes:
detecting a first temperature of the processor; the first temperature is indicative of a current temperature of the processor;
and controlling the electronic equipment to adjust the first current of the processor by using the determined first state and combining the first temperature, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
In the foregoing solution, the controlling the electronic device to adjust the first current of the processor by using the determined first state and combining the first temperature includes:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result shows that the first temperature does not exceed the second temperature, controlling the electronic equipment to reduce the first current so as to enable the processor to increase the number of activated arithmetic units according to the first current.
In the foregoing solution, the controlling the electronic device to adjust the first current of the processor by using the determined first state and combining the first temperature includes:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result represents that the first temperature exceeds the second temperature, controlling the electronic equipment to increase the first current so as to enable the processor to reduce the number of activated arithmetic units according to the first current.
In the foregoing solution, the controlling the electronic device to adjust the first current of the processor by using the determined first state includes:
when the first state indicates that the load of the processor is lower than a second threshold value, the electronic equipment is controlled to reduce the first current, so that the processor increases the activated arithmetic unit according to the first current.
In the foregoing solution, the detecting a first current of a processor of an electronic device includes:
the first current is detected based on a negative feedback manner.
In the foregoing solution, detecting the first current based on a negative feedback manner includes:
detecting a first voltage through a first resistor connected to the voltage generator; the first voltage is characterized by the voltage of the resistor to ground;
determining the first current by using the first voltage and the resistance value of the first resistor;
the controlling the electronic device to adjust a first current of the processor using the determined first state includes:
and controlling the electronic equipment to adjust the resistance value of the first resistor by using the determined first state so that the electronic equipment adjusts the first current.
An embodiment of the present invention further provides an electronic device, including:
a processor;
a control circuit for detecting a first current of the electronic device processor; the first current is used for the processor to calculate power consumption; the first current is provided to the processor by a voltage generator; the voltage generator is also used for providing working voltage for the processor; determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor; and controlling the electronic equipment to adjust the first current of the processor by using the determined first state, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
In the foregoing solution, the control circuit is further configured to detect a first temperature of the processor when the first state indicates that a load of the processor exceeds a first threshold; the first temperature is indicative of a current temperature of the processor; and controlling the electronic equipment to adjust a first current of the processor by using the determined first state and combining the first temperature, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
In the foregoing solution, the control circuit is specifically configured to:
the first current is detected based on a negative feedback manner.
According to the control method and the electronic device provided by the embodiment of the invention, the current working state of the processor is determined by detecting the current provided by the voltage generator for the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the number of activated operation units, namely the number of operation units participating in calculation, is finally adjusted by the processor according to the power consumption corresponding to the adjusted current.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different examples of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
FIG. 1A is a schematic diagram of the relationship between processor operating frequency and processor core voltage;
FIG. 1B is a schematic diagram showing the variation of power consumption and temperature with time in various states in a conventional passive over-clocking mode;
FIG. 2 is a flowchart illustrating a control method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the relationship between the current bias and the first current according to an embodiment of the present invention;
FIG. 4 is a graph illustrating the relationship between the first current and the performance of the processor according to the present invention;
FIG. 5 is a flowchart illustrating a method of controlling according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating an integrated circuit structure according to an embodiment of the present invention;
FIG. 7 is a flow chart of a method for controlling three controls according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a fourth control method according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a fifth electronic device according to an embodiment of the invention;
FIG. 10 is a diagram illustrating processor performance according to a conventional scheme and an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
FIG. 1A is a diagram illustrating the relationship between the operating frequency of a Central Processing Unit (CPU) and the core voltage of the CPU. As can be seen from fig. 1A, in order to operate the CPU to a higher frequency, the CPU needs to have a stable core voltage. Therefore, the over-clocking of the CPU currently is usually performed by adding a bias voltage to the core voltage of the CPU to ensure that the CPU can operate normally and stably at a higher frequency.
At present, the CPU overclocking mode mostly adopts passive overclocking, that is, the performance of the CPU is improved by adjusting the frequency multiplication (Ratio) and the voltage (Volt). The mode is tedious in experiment and unobvious in experience effect. Meanwhile, due to the difference of CPU monomers, an optimal parameter is difficult to find out to realize the over-frequency of the CPU.
In addition, because of the passive over-clocking, in the light load mode, the power consumption of the CPU is relatively low, the CPU cannot fully perform the performance, and the system resources are wasted, as shown in fig. 1B.
Based on this, in various embodiments of the invention: detecting a first current of an electronic device processor; the first current is used for the processor to calculate power consumption; the first current is provided to the processor by a voltage generator; the voltage generator is also used for providing working voltage for the processor; determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor; and controlling the electronic equipment to adjust the first current by using the determined first state so as to enable the processor to determine corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
According to the scheme provided by the embodiment of the invention, the current working state of the processor is determined by detecting the current provided by the voltage generator for the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the number of activated operation units, namely the number of operation units participating in calculation, is finally adjusted by the processor according to the power consumption corresponding to the adjusted current.
Example one
The embodiment of the invention provides a control method, which is applied to electronic equipment.
The electronic device may be a notebook, a tablet (pad), or the like.
Fig. 2 is a schematic flow chart of an implementation of a control method according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step 201: detecting a first current of an electronic device processor;
here, the first current is used for the processor to calculate power consumption; and the first current is provided to the processor by a voltage generator, which may also be referred to as a Voltage Regulator (VR).
Meanwhile, the voltage generator is also used for providing working voltage for the processor.
In practical applications, the processor may be a CPU or the like. The first current may also be referred to as a load current of the voltage generator.
Step 202: determining a first state of the processor using the first current;
here, the first state characterizes a current operating state of the processor.
Wherein the operating state reflects a current load of the processor.
Depending on the load, the operating state (which may also be understood as an operating mode) may be: idle (idle), light loading (light loading), heavy loading (head loading), etc.
In practical application, different working states can be set according to the load.
In practical application, the corresponding relationship between the first current and the working state of the processor can be set, and accordingly, the current working state of the processor is determined.
Step 203: and controlling the electronic equipment to adjust the first current of the processor by using the determined first state so as to enable the processor to determine corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
That is, control of processor performance is achieved by adjusting the number of active arithmetic units.
Here, the activated arithmetic unit means: and the arithmetic unit currently participates in calculation.
The electronic device is controlled to adjust the first current of the processor by using the determined first state, namely: and controlling the voltage generator to regulate the first current by using the first state.
The first current of the processor is adjusted, and from another perspective, a current bias is applied to the processor based on the fixed current.
Fig. 3 is a diagram illustrating a relationship between a current bias and a first current. FIG. 4 is a graph illustrating the relationship between the first current and the performance of the processor. As can be seen from fig. 3 and 4, when the current bias is smaller than zero, that is, the adjusted first current is smaller than the fixed current (Under-Reporting), the processor increases the number of activated arithmetic units, and the performance of the processor is improved, so as to increase its own power consumption. When the current bias is greater than zero, that is, the adjusted first current is greater than the fixed current (Over-Reporting), the processor reduces the number of activated arithmetic units, and reduces the performance of the processor to reduce its own power consumption. That is, the performance of the processor decreases as the first current increases.
In practical application, the processor determines corresponding power consumption according to the first current, and has a reference current (called a pumping current, i.e. a current drawn by a load), and when the first current exceeds the pumping current, the processor reduces the number of activated operation units; when the first current does not exceed the load current, the processor increases the number of activated arithmetic units.
As can be seen from the above description, in the solution provided by the embodiment of the present invention, the current provided by the voltage generator for the processor is detected to determine the current operating state of the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the processor finally adjusts the number of activated arithmetic units, that is, the number of arithmetic units participating in calculation, according to the power consumption corresponding to the adjusted current.
Example two
The embodiment of the invention provides a control method, which is applied to electronic equipment.
Wherein, the electronic equipment can be a notebook, a pad, etc.
Fig. 5 is a schematic flow chart of an implementation of a control method according to a second embodiment of the present invention, and as shown in fig. 5, the method includes the following steps:
step 501: detecting a first current of the electronic equipment processor based on a negative feedback mode;
here, the first current is used for the processor to calculate power consumption; and the first current is provided to the processor by a voltage generator (also referred to as VR).
Meanwhile, the voltage generator is also used for providing working voltage for the processor.
In practical applications, the processor may be a CPU or the like. The first current may also be referred to as a load current of the voltage generator.
In practical applications, negative feedback is most commonly implemented through resistors.
Based on this, the specific implementation of this step may include:
detecting a first voltage through a first resistor connected to the voltage generator; the first voltage is characterized by the voltage of the resistor to ground;
and determining the first current by using the first voltage and the resistance value of the first resistor.
Step 502: determining a first state of the processor using the first current;
here, the first state characterizes a current operating state of the processor.
Wherein the operating state reflects a current load of the processor.
Depending on the load, the operating state (which may also be understood as an operating mode) may be: idle, light loading, or head loading, etc.
In practical application, different working states can be set according to the load.
In practical application, the corresponding relationship between the first current and the working state of the processor can be set, and accordingly, the current working state of the processor is determined.
Step 503: and controlling the electronic equipment to adjust the first current of the processor by using the determined first state so as to enable the processor to determine corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
That is, control of processor performance is achieved by adjusting the number of active arithmetic units.
Here, the activated arithmetic unit means: and the arithmetic unit currently participates in calculation.
The electronic device is controlled to adjust the first current of the processor by using the determined first state, namely: and controlling the voltage generator to regulate the first current by using the first state.
The controlling the electronic device to adjust a first current of the processor using the determined first state includes:
and controlling the electronic equipment to adjust the resistance value of the first resistor by using the determined first state so that the electronic equipment adjusts the first current.
In order to automatically realize the adjustment of the resistance value of the first resistor, the first resistor can be a variable resistor.
Then, in practical application, the first current magnitude reported to the processor by the voltage regulator may be formulated as:
VR Iout=DEC[Vsense/2]*FF;Vsense=Isrc_vr*Rvar。
the VR Iout represents a first current reported to the processor by the voltage generator; vsense represents the processor current analog voltage detected by the voltage generator; DEC is a binary symbol; FF is binary 11111111; isrc _ vr represents an internal current source used by the voltage generator for analog processor current calculations; rvar represents the resistance value of the first resistor.
The first current of the processor is adjusted, and from another perspective, a current bias is applied to the processor based on the fixed current.
Fig. 3 is a diagram illustrating a relationship between a current bias and a first current. FIG. 4 is a graph illustrating the relationship between the first current and the performance of the processor. As can be seen from fig. 3 and 4, when the current bias is smaller than zero, that is, the adjusted first current is smaller than the fixed current, the processor increases the number of activated arithmetic units, so as to improve the performance of the processor, thereby increasing its power consumption. When the current bias is larger than zero, namely the adjusted first current is larger than the fixed current, the number of the activated arithmetic units is reduced by the processor, and the performance of the processor is reduced, so that the power consumption of the processor is reduced. That is, the performance of the processor decreases as the first current increases.
In practical application, the processor determines corresponding power consumption according to the first current, and has a reference current (called a pumping current, i.e. a current drawn by a load), and when the first current exceeds the pumping current, the processor reduces the number of activated operation units; when the first current does not exceed the load current, the processor increases the number of activated arithmetic units.
Fig. 6 is a schematic diagram of an Integrated Circuit (IC) structure implementing an embodiment of the present invention. In practical applications, the scheme of the embodiment of the present invention can be implemented by setting ICs with different structures as required. As shown in fig. 6, the IC (which may also be referred to as an over-clocking Engine (OC Engine)) calculates a current first current value VR Iout from the voltage-to-ground voltage of the first resistor connected to the voltage generator, knows the current operating condition (idle, light loading or head loading) of the CPU, and then determines whether to add a current offset by adjusting the resistance of the first resistor to perform CPU over-clocking. That is, the voltage generator will calculate different first current values according to different resistances of the first resistor, and finally report to the CPU through the SVID BUS line, so that the CPU can determine whether to overclock (increase the number of activated arithmetic units).
As can be seen from the above description, in the solution provided by the embodiment of the present invention, the current provided by the voltage generator for the processor is detected based on a negative feedback manner to determine the current operating state of the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the processor finally adjusts the number of activated operation units, that is, the number of operation units participating in calculation, according to the power consumption corresponding to the adjusted current, so that the performance of the processor can be dynamically adjusted according to the real-time status of the processor, and the adjustment is more effective and fine. And the first current is detected based on a negative feedback mode, so that the stability of a closed-loop negative feedback system is higher, and the stability of the system can be ensured while the performance of the processor is exerted. Meanwhile, the individual difference of the processor can be compensated, and the complicated parameter test of a passive over-frequency mode is avoided.
In addition, a first voltage is detected through a first resistor connected with the voltage generator; the first voltage is characterized by the voltage of the resistor to ground; the first current is determined by utilizing the first voltage and the resistance value of the first resistor, and the electronic equipment is controlled to adjust the resistance value of the first resistor, so that the electronic equipment adjusts the first current, and thus, the current can be simply and effectively adjusted.
EXAMPLE III
The embodiment of the invention provides a control method, which is applied to electronic equipment.
Wherein, the electronic equipment can be a notebook, a pad, etc.
Fig. 7 is a schematic flow chart of an implementation of a three-control method according to an embodiment of the present invention, as shown in fig. 7, the method includes the following steps:
step 701: detecting a first current of an electronic device processor; detecting a first temperature of the processor;
here, the first current is used for the processor to calculate power consumption; and the first current is provided to the processor by a voltage generator (also referred to as VR).
Meanwhile, the voltage generator is also used for providing working voltage for the processor.
The first temperature is indicative of a current temperature of the processor.
In practical applications, the processor may be a CPU or the like. The first current may also be referred to as a load current of the voltage generator.
Step 702: determining a first state of the processor using the first current;
here, the first state characterizes a current operating state of the processor.
Wherein the operating state reflects a current load of the processor.
Depending on the load, the operating state (which may also be understood as an operating mode) may be: idle, light loading, or head loading, etc.
In practical application, different working states can be set according to the load.
In practical application, the corresponding relationship between the first current and the working state of the processor can be set, and accordingly, the current working state of the processor is determined.
In practice, the operation of detecting the first temperature of the processor may also be performed when the first load characterizing the processor exceeds a first threshold, i.e. in case of a processor overload.
Step 703: and controlling the electronic equipment to adjust the first current of the processor by using the determined first state and combining the first temperature, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
That is, control of processor performance is achieved by adjusting the number of active arithmetic units.
Here, the activated arithmetic unit means: and the arithmetic unit currently participates in calculation.
The electronic device is controlled to adjust the first current of the processor by using the determined first state, namely: and controlling the voltage generator to adjust the first current by utilizing the first state and combining the first temperature.
In an embodiment, the specific implementation of step 703 may include:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result shows that the first temperature does not exceed the second temperature, controlling the electronic equipment to reduce the first current so as to enable the processor to increase the number of activated arithmetic units according to the first current.
When the first judgment result represents that the first temperature exceeds the second temperature, the electronic equipment is controlled to increase the first current, so that the number of activated arithmetic units is reduced by the processor according to the first current.
The first current of the processor is adjusted, and from another perspective, a current bias is applied to the processor based on the fixed current.
Fig. 3 is a diagram illustrating a relationship between a current bias and a first current. FIG. 4 is a graph illustrating the relationship between the first current and the performance of the processor. As can be seen from fig. 3 and 4, when the current bias is smaller than zero, that is, the adjusted first current is smaller than the fixed current, the processor increases the number of activated arithmetic units, so as to improve the performance of the processor, thereby increasing its power consumption. When the current bias is larger than zero, namely the adjusted first current is larger than the fixed current, the number of the activated arithmetic units is reduced by the processor, and the performance of the processor is reduced, so that the power consumption of the processor is reduced. That is, the performance of the processor decreases as the first current increases.
In practical application, the processor determines corresponding power consumption according to the first current, and has a reference current (called a pumping current, i.e. a current drawn by a load), and when the first current exceeds the pumping current, the processor reduces the number of activated operation units; when the first current does not exceed the load current, the processor increases the number of activated arithmetic units.
The scheme of the embodiment of the present invention can be implemented using an IC shown in fig. 6. Referring to fig. 6, the current temperature of the CPU is obtained in real time through the SMBUS line, and the current first current value VR Iout is calculated by detecting the voltage-to-ground voltage of the first resistor hung on the voltage generator, and the current condition (idle/light loading/head loading) of the CPU is known according to the first current value VR Iout. If the CPU is currently in the latent loading state, judging the current temperature of the CPU, if the current temperature does not exceed the system heat dissipation design rated value, reducing the resistance value of the first resistor, reducing a first current value fed back to the CPU end by the voltage generator through the SVID bus, further increasing an activated operation unit by the CPU, and improving the performance of the CPU; on the contrary, when the current temperature exceeds the system heat dissipation design rated value, the resistance value of the first resistor is increased, the first current value fed back to the CPU end by the voltage generator through the SVID bus is increased, and further the CPU reduces activated operation units, reduces the performance, and reduces heat dissipation and power consumption.
As can be seen from the above description, in the solution provided by the embodiment of the present invention, the current provided by the voltage generator for the processor is detected to determine the current operating state of the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the processor finally adjusts the number of activated arithmetic units, that is, the number of arithmetic units participating in calculation, according to the power consumption corresponding to the adjusted current.
In addition, when the first current is adjusted, the first current is dynamically adjusted by utilizing the working state and combining the current temperature, the resources of the processor are fully considered, and therefore the performance of the processor can be better obtained.
Example four
The embodiment of the invention provides a control method, which is applied to electronic equipment.
Wherein, the electronic equipment can be a notebook, a pad, etc.
Fig. 8 is a schematic flow chart of an implementation of a fourth control method according to an embodiment of the present invention, and as shown in fig. 8, the method includes the following steps:
step 801: detecting a first current of an electronic device processor;
here, the first current is used for the processor to calculate power consumption; and the first current is provided to the processor by a voltage generator (also referred to as VR).
Meanwhile, the voltage generator is also used for providing working voltage for the processor.
In practical applications, the processor may be a CPU or the like. The first current may also be referred to as a load current of the voltage generator.
Step 802: determining a first state of the processor using the first current;
here, the first state characterizes a current operating state of the processor.
Wherein the operating state reflects a current load of the processor.
Depending on the load, the operating state (which may also be understood as an operating mode) may be: idle, light loading, or head loading, etc.
In practical application, different working states can be set according to the load.
In practical application, the corresponding relationship between the first current and the working state of the processor can be set, and accordingly, the current working state of the processor is determined.
Step 803: and when the first state represents that the load of the processor is lower than a second threshold value, controlling the electronic equipment to reduce the first current so as to enable the processor to determine corresponding power consumption according to the first current, and increasing the number of activated arithmetic units by using the determined power consumption.
That is, control of processor performance is achieved by adjusting the number of active arithmetic units.
Here, the activated arithmetic unit means: and the arithmetic unit currently participates in calculation.
The electronic device is controlled to reduce the first current of the processor by using the determined first state, namely: and controlling the voltage generator to reduce the first current by using the first state.
The first current of the processor is reduced, and from another point of view, a current bias is applied to the processor on the basis of a fixed current, and the current bias is smaller than zero.
Fig. 3 is a diagram illustrating a relationship between a current bias and a first current. FIG. 4 is a graph illustrating the relationship between the first current and the performance of the processor. As can be seen from fig. 3 and 4, when the current bias is smaller than zero, that is, the adjusted first current is smaller than the fixed current, the processor increases the number of activated arithmetic units, so as to improve the performance of the processor, thereby increasing its power consumption. When the current bias is larger than zero, namely the adjusted first current is larger than the fixed current, the number of the activated arithmetic units is reduced by the processor, and the performance of the processor is reduced, so that the power consumption of the processor is reduced. That is, the performance of the processor decreases as the first current increases.
In practical application, the processor determines corresponding power consumption according to the first current, and has a reference current (called a pumping current, i.e. a current drawn by a load), and when the first current exceeds the pumping current, the processor reduces the number of activated operation units; when the first current does not exceed the load current, the processor increases the number of activated arithmetic units.
When the first state indicates that the load of the processor is lower than the second threshold, the processor is in a light loading state, and the performance of the processor can be improved.
The scheme of the embodiment of the present invention can be implemented using an IC shown in fig. 6. Referring to fig. 6, a current first current value VR Iout is calculated by detecting the voltage-to-ground voltage of the first resistor hung on the voltage generator, and the current CPU status (idle/light loading/head loading) is known according to the first current value VR Iout. If the CPU is in the light loading mode, the resistance value of the first resistor is reduced, so that the first current value fed back to the CPU end by the voltage generator through the SVID bus is reduced, the activated operation unit of the CPU is further increased, and the performance of the CPU is improved.
As can be seen from the above description, in the solution provided by the embodiment of the present invention, the current provided by the voltage generator for the processor is detected to determine the current operating state of the processor, and then the current provided by the voltage generator for the processor is dynamically adjusted, so that the processor finally adjusts the number of activated arithmetic units, that is, the number of arithmetic units participating in calculation, according to the power consumption corresponding to the adjusted current.
EXAMPLE five
Based on the foregoing control method, this embodiment provides an electronic device, as shown in fig. 9, including:
a processor 91;
a control circuit 92 for detecting a first current of the electronic device processor 91; the first current is used for the processor to calculate power consumption; the first current is provided by a voltage generator to the processor 91; the voltage generator is also used for providing working voltage for the processor; determining a first state of the processor 91 using the first current; the first state represents a current operating state of the processor 91; the operating state reflects the current load of the processor 91; and controlling the electronic device to adjust a first current of the processor 91 by using the determined first state, so that the processor 91 determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
In one embodiment, the control circuit 92 is further configured to detect a first temperature of the processor 91 when the first state indicates that the load of the processor exceeds a first threshold; the first temperature is indicative of a current temperature of the processor 91; and controlling the electronic device to adjust a first current of the processor 91 by using the determined first state in combination with the first temperature, so that the processor 91 determines a corresponding power consumption according to the first current, and adjusts the number of activated arithmetic units by using the determined power consumption.
The control circuit 92 is specifically configured to:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result indicates that the first temperature does not exceed the second temperature, controlling the electronic device to reduce the first current so that the processor 91 increases the number of activated arithmetic units according to the first current.
When the first determination result indicates that the first temperature exceeds the second temperature, the control circuit 92 controls the electronic device to increase the first current, so that the processor 91 decreases the number of activated arithmetic units according to the first current.
In an embodiment, the control circuit 92 is specifically configured to:
the first current is detected based on a negative feedback manner.
More specifically, the control circuit 92 detects a first voltage through a first resistor connected to the voltage generator; the first voltage is characterized by the voltage of the resistor to ground; determining the first current by using the first voltage and the resistance value of the first resistor;
accordingly, the control circuit 92 controls the electronic device to adjust the resistance of the first resistor using the determined first state, so that the electronic device adjusts the first current.
It should be understood by those skilled in the art that the functions implemented by the components in the electronic device shown in fig. 9 can be understood by referring to the related description of the display control method.
In order to better explain the scheme of the embodiment of the invention, for a four-core processor, a traditional passive over-clocking mode and the performance of the four-core processor adopting the scheme of the embodiment of the invention are tested. Fig. 10 is a graph of the performance of both. As can be seen from fig. 10, compared with the performance of the processor in the conventional over-clocking mode, the performance of the processor is improved by 10% by using the scheme of the embodiment of the present invention. Further illustrates that the adjustment is more effective and fine after the scheme of the embodiment of the invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (6)
1. A control method, comprising:
detecting a first voltage through a first resistor connected to a voltage generator; the first voltage is indicative of a voltage of the first resistor to ground;
determining a first current by using the first voltage and the resistance value of the first resistor; the first current is used for calculating power consumption by the processor; the first current is provided to the processor by a voltage generator; the voltage generator is also used for providing working voltage for the processor;
determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor;
when the first state represents that the load of the processor is lower than a second threshold value, the electronic device is controlled to reduce the resistance value of the first resistor, so that the electronic device reduces the first current of the processor, the processor determines corresponding power consumption according to the first current, and the number of activated operation units is increased by using the determined power consumption.
2. The method of claim 1, wherein when the first state characterizes a load of the processor exceeding a first threshold, the method further comprises:
detecting a first temperature of the processor; the first temperature is indicative of a current temperature of the processor;
and controlling the electronic equipment to adjust the first current of the processor by using the determined first state and combining the first temperature, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
3. The method of claim 2, wherein the controlling the electronic device to adjust the first current of the processor using the determined first state in conjunction with the first temperature comprises:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result shows that the first temperature does not exceed the second temperature, controlling the electronic equipment to reduce the first current so as to enable the processor to increase the number of activated arithmetic units according to the first current.
4. The method of claim 2, wherein the controlling the electronic device to adjust the first current of the processor using the determined first state in conjunction with the first temperature comprises:
judging whether the first temperature exceeds a preset second temperature or not to obtain a first judgment result;
and when the first judgment result represents that the first temperature exceeds the second temperature, controlling the electronic equipment to increase the first current so as to enable the processor to reduce the number of activated arithmetic units according to the first current.
5. An electronic device, comprising:
a processor;
a control circuit for detecting a first voltage through a first resistor connected to the voltage generator; the first voltage is indicative of a voltage of the first resistor to ground; determining a first current by using the first voltage and the resistance value of the first resistor; the first current is used for the processor to calculate power consumption; the first current is provided for the processor by the voltage generator; the voltage generator is also used for providing working voltage for the processor; determining a first state of the processor using the first current; the first state represents the current working state of the processor; the working state reflects the current load of the processor; and when the first state represents that the load of the processor is lower than a second threshold value, controlling the electronic device to reduce the resistance value of the first resistor, so that the electronic device reduces the first current of the processor, the processor determines the corresponding power consumption according to the first current, and the number of activated operation units is increased by using the determined power consumption.
6. The electronic device of claim 5, wherein the control circuit is further configured to detect a first temperature of the processor when the first state is indicative of a load of the processor exceeding a first threshold; the first temperature is indicative of a current temperature of the processor; and controlling the electronic equipment to adjust a first current of the processor by using the determined first state and combining the first temperature, so that the processor determines corresponding power consumption according to the first current, and adjusting the number of activated arithmetic units by using the determined power consumption.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221600.4A CN107193229B (en) | 2017-04-06 | 2017-04-06 | Control method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221600.4A CN107193229B (en) | 2017-04-06 | 2017-04-06 | Control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107193229A CN107193229A (en) | 2017-09-22 |
CN107193229B true CN107193229B (en) | 2021-02-19 |
Family
ID=59871381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710221600.4A Active CN107193229B (en) | 2017-04-06 | 2017-04-06 | Control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107193229B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765438A (en) * | 2015-04-29 | 2015-07-08 | 集怡嘉数码科技(深圳)有限公司 | Method for controlling power consumption and mobile terminal |
CN105392170A (en) * | 2015-09-30 | 2016-03-09 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105867569A (en) * | 2015-11-06 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Power consumption control method and system in OTA upgrading mode |
CN106557152A (en) * | 2016-12-02 | 2017-04-05 | 郑州云海信息技术有限公司 | A kind of control device and method of mainboard |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436098A (en) * | 2008-12-24 | 2009-05-20 | 华为技术有限公司 | Method and apparatus for reducing power consumption of multiple-core symmetrical multiprocessing system |
US8510582B2 (en) * | 2010-07-21 | 2013-08-13 | Advanced Micro Devices, Inc. | Managing current and power in a computing system |
US9075611B2 (en) * | 2012-09-12 | 2015-07-07 | Htc Corporation | Electronic device with power management mechanism and power management method thereof |
US9335803B2 (en) * | 2013-02-15 | 2016-05-10 | Intel Corporation | Calculating a dynamically changeable maximum operating voltage value for a processor based on a different polynomial equation using a set of coefficient values and a number of current active cores |
US9256274B2 (en) * | 2013-08-01 | 2016-02-09 | Texas Instruments Incorporated | Dynamic low power states characterization |
US9292293B2 (en) * | 2013-08-08 | 2016-03-22 | Qualcomm Incorporated | Intelligent multicore control for optimal performance per watt |
KR20150044729A (en) * | 2013-10-17 | 2015-04-27 | 삼성전자주식회사 | Method and apparatus for controlling CPU resource using current consumption in multi-core device |
CN103699204A (en) * | 2013-11-28 | 2014-04-02 | 青岛歌尔声学科技有限公司 | System power consumption regulating circuit, method and electronic equipment |
CN105518563B (en) * | 2014-12-12 | 2017-02-22 | 上海兆芯集成电路有限公司 | Dynamic voltage frequency scaling system and associated method |
CN105892596A (en) * | 2016-03-28 | 2016-08-24 | 联想(北京)有限公司 | Information processing method and electronic device |
CN106502788A (en) * | 2016-10-09 | 2017-03-15 | 珠海市魅族科技有限公司 | The method and device of control central processor CPU work |
-
2017
- 2017-04-06 CN CN201710221600.4A patent/CN107193229B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765438A (en) * | 2015-04-29 | 2015-07-08 | 集怡嘉数码科技(深圳)有限公司 | Method for controlling power consumption and mobile terminal |
CN105392170A (en) * | 2015-09-30 | 2016-03-09 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105867569A (en) * | 2015-11-06 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Power consumption control method and system in OTA upgrading mode |
CN106557152A (en) * | 2016-12-02 | 2017-04-05 | 郑州云海信息技术有限公司 | A kind of control device and method of mainboard |
Also Published As
Publication number | Publication date |
---|---|
CN107193229A (en) | 2017-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8732495B2 (en) | Systems, apparatuses and methods for dynamic voltage and frequency control of components used in a computer system | |
JP5160033B2 (en) | Methods, systems, and adjustment techniques for power measurement and power saving for multiple time frames | |
JP5437077B2 (en) | System comprising processor and power system and method of operation thereof | |
US9170626B2 (en) | Performance reduction limit for power consumption device | |
CN102734194B (en) | control method of computer cooling fan | |
JP5301478B2 (en) | Dynamic voltage scaling system | |
US9304520B2 (en) | Thermal management | |
JP6748625B2 (en) | Current regulating equipment, system, method and computer readable recording medium for electronic device regulating electric power drawn from an external power source | |
TW200304592A (en) | Method and apparatus for providing multiple supply voltages for a processor | |
KR100767163B1 (en) | Method and apparatus for providing supply voltages for a processor | |
CN100474212C (en) | Method for controlling fan rotation speed of electronic system and system for implementing the method | |
US11550382B2 (en) | Power-subsystem-monitoring-based graphics processing system | |
US10389251B2 (en) | Setting operating points for circuits in an integrated circuit chip | |
TWI243983B (en) | System and method of power management | |
CN107390852B (en) | Control method, electronic device and computer readable storage medium | |
US9117511B2 (en) | Control circuits for asynchronous circuits | |
US8788851B2 (en) | Electric device power control optimized to device operational load state | |
EP3014288B1 (en) | A power detector circuit | |
CN107193229B (en) | Control method and electronic equipment | |
US7865755B2 (en) | Clock frequency variation of a clocked current consumer | |
JP2007122657A (en) | Current consumption control system | |
US8504851B2 (en) | Electronic device having power consumption adjusting feature | |
US11630003B2 (en) | Temperature control system for central processing unit and temperature control method thereof | |
KR20160085029A (en) | Computer-system power control unit and method thereof | |
WO2012030329A1 (en) | Systems, apparatuses and methods for dynamic voltage and frequency control of components used in a computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |