CN107256078A - A kind of method for regulating dynamic voltage frequency and device - Google Patents
A kind of method for regulating dynamic voltage frequency and device Download PDFInfo
- Publication number
- CN107256078A CN107256078A CN201710313920.2A CN201710313920A CN107256078A CN 107256078 A CN107256078 A CN 107256078A CN 201710313920 A CN201710313920 A CN 201710313920A CN 107256078 A CN107256078 A CN 107256078A
- Authority
- CN
- China
- Prior art keywords
- cpu
- frequency
- operating voltage
- dvfs
- forms
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3296—Power saving characterised by the action undertaken by lowering the supply or operating voltage
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the invention discloses a kind of DVFS method and devices, to solve to be directed to the occasion that electronic equipment carries out Video coding in the prior art, the problem of CPU power consumption can not reach lower, this method includes:Judge whether video buffer utilization rate is more than the threshold value of setting;If so, according to cpu load and predetermined first DVFS forms, determining target operating voltage and target operating frequency;If it is not, according to cpu load and predetermined 2nd DVFS forms, determining that the cpu load lower threshold value in target operating voltage and target operating frequency, the 2nd DVFS forms is bigger than the cpu load lower threshold value in the first DVFS forms;It is operated according to the target operating voltage and target operating frequency of determination.The target operating voltage and target operating frequency that the target operating voltage and target operating frequency that this mode is determined more only are determined by the first DVFS forms are smaller, so as to reach the purpose of reduction power consumption.
Description
Technical field
The present invention relates to dynamic voltage frequency adjustment technology field, more particularly to a kind of dynamic voltage frequency adjustment
(Dynamic Voltage and Frequency Scaling, DVFS) method and device.
Background technology
At present, because the CPU of electronic equipment has strict requirements for the life-span of supplying cell and power consumption, it is therefore desirable to logical
Dynamic voltage frequency adjustment (Dynamic Voltage Frequency Scaling, DVFS) technology is crossed, according to the real-time of CPU
Loading demand, dynamic adjustment CPU working frequency and operating voltage, so as to reach the purpose of effectively reduction CPU power consumption.
In the prior art, carry out DVFS dynamically adjust when, according to the operating voltage recorded in fixed DVFS forms,
The corresponding relation of the upper lower threshold value of working frequency and cpu load, determines CPU target operating voltage and target operating frequency, from
And be adjusted.When the cpu load of electronic equipment exceedes upper threshold value, then increase CPU target operating voltage and target operation
Frequency, when the CPU of electronic equipment is less than lower threshold value, then reduces CPU target operating voltage and target operating frequency.
When electronic equipment carries out Video coding, the cpu load of electronic equipment in fixed DVFS forms typically than recording
Cpu load lower threshold value it is slightly larger, now, if CPU use fixation corresponding with present operating voltage and present operating frequency
DVFS forms in the adjacent group of group in, the operating voltage small compared with present operating voltage and present operating frequency and work frequency
Rate is defined as CPU target operating voltage and target operating frequency, and can also meet the CPU is normally carried out video encoding job
Demand.But only by the upper lower threshold value adjusting method of the single solutions for diverse problems of the DVFS forms to existing fixation, then can not be by CPU
Target operating voltage and target operating frequency adjusted to smaller numerical value, so above-mentioned method of adjustment, for Video coding
Occasion, it is impossible to CPU power consumption is reached lower state.
The content of the invention
The present invention provides a kind of DVFS method and devices, to solve to carry out video volume for electronic equipment in the prior art
The occasion of code, the problem of CPU power consumption can not reach lower.
To reach above-mentioned purpose, DVFS methods, the side are adjusted the embodiment of the invention discloses a kind of dynamic voltage frequency
Method includes:
When in Video coding scene, video buffer utilization rate and cpu load are obtained, judges that the video buffer is utilized
Whether rate is more than the threshold value of setting, wherein, the memory capacity that the video buffer utilization rate is taken for encoded video with
It is available for the ratio of total memory capacity in the video loop buffer region of coding;
If it is, according to the cpu load of acquisition and predetermined first DVFS forms, determining CPU mesh
Mark operating voltage and target operating frequency;
If it is not, then according to the cpu load of acquisition and predetermined 2nd DVFS forms, determining CPU mesh
Operating voltage and target operating frequency are marked, wherein the cpu load lower threshold value in the second DVFS forms is than the first DVFS forms
In cpu load lower threshold value it is big;
It is operated according to the CPU of determination target operating voltage and target operating frequency.
Further, before the acquisition video buffer utilization rate and cpu load, methods described also includes:
Work clock configuration information is received, wherein when including the work of video encoder in the work clock configuration information
The highest frequency of the highest frequency of clock and dual-magnification technique synchronous DRAM DDR work clock;
The work clock of the video encoder is arranged on corresponding highest frequency, and during by the work of the DDR
Clock is arranged on corresponding highest frequency.
Further, the cpu load and predetermined 2nd DVFS forms according to acquisition, determines CPU
Target operating voltage and target operating frequency include:
The cpu load is compared with the cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
Compared with;
If the cpu load is located at cpu load upper threshold value and cpu load lower threshold value model in the 2nd DVFS forms
In enclosing, then CPU present operating voltage and present operating frequency are defined as to CPU target operating voltage and target operation frequency
Rate;
If the cpu load is not located at cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
In the range of, according to the every group of operating voltage recorded in comparative result, the 2nd DVFS forms and working frequency and CPU work at present
Voltage and present operating frequency determine CPU target operating voltage and target operating frequency.
Further, it is described according to the every group of operating voltage and working frequency that are recorded in comparative result, the 2nd DVFS forms
And CPU present operating voltage and present operating frequency determines that CPU target operating voltage and target operating frequency include:
When comparative result is the cpu load upper threshold value that the cpu load is more than in the 2nd DVFS forms, according to
Group in CPU present operating voltage and the corresponding 2nd DVFS forms of CPU present operating frequency, will be adjacent with described group
Operating voltage and working frequency in group are defined as CPU target operating voltage and target operating frequency, wherein, it is described adjacent
Operating voltage and working frequency in group is big compared with present operating voltage and present operating frequency;
When comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms, according to
Group in CPU present operating voltage and the corresponding 2nd DVFS forms of CPU present operating frequency, will be adjacent with described group
Operating voltage and working frequency in group are defined as CPU target operating voltage and target operating frequency, wherein, it is described adjacent
Operating voltage and working frequency in group is small compared with present operating voltage and present operating frequency.
Further, it is described when comparative result is on the cpu load that the cpu load is more than in the 2nd DVFS forms
During threshold value, the operating voltage and working frequency in the group adjacent with described group are defined as to CPU target operating voltage and target
Before working frequency, methods described also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms most
Big operating voltage and maximum operation frequency;If it is, present operating voltage and working frequency to be defined as to CPU target operation
Voltage and target operating frequency;If it is not, then carrying out following step;
, will be with institute when comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms
The operating voltage and working frequency stated in the adjacent group of group are defined as before CPU target operating voltage and target operating frequency,
Methods described also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms most
Small operating voltage and minimum frequency of operation;If it is, present operating voltage and working frequency to be defined as to CPU target operation
Voltage and target operating frequency;If it is not, then carrying out following step.
DVFS devices are adjusted the embodiment of the invention discloses a kind of dynamic voltage frequency, described device includes:
Judge module is obtained, for when in Video coding scene, obtaining video buffer utilization rate and cpu load, sentencing
Whether the video buffer utilization rate of breaking is more than the threshold value of setting, wherein, the video buffer utilization rate regards to be encoded
The ratio of total memory capacity in video loop buffer region of the memory capacity that frequency takes with being available for coding;
First determining module, for when obtaining the judged result of judge module to be, according to the cpu load of acquisition
And predetermined first DVFS forms, determine CPU target operating voltage and target operating frequency;
Second determining module, for when the judged result for obtaining judge module is no, according to the cpu load of acquisition
And predetermined 2nd DVFS forms, CPU target operating voltage and target operating frequency is determined, wherein described second
Cpu load lower threshold value in DVFS forms is bigger than the cpu load lower threshold value in the first DVFS forms;
Operational module, target operating voltage and target operating frequency for the CPU according to determination are operated.
Further, described device also includes:
Receiving module, for receiving work clock configuration information, wherein including video in the work clock configuration information
The highest frequency of the highest frequency of the work clock of encoder and dual-magnification technique synchronous DRAM DDR work clock;
Setup module, for the work clock of the video encoder to be arranged on into corresponding highest frequency, and by institute
The work clock for stating DDR is arranged on corresponding highest frequency.
Further, second determining module, specifically for by the cpu load and the 2nd DVFS forms
Cpu load upper threshold value and cpu load lower threshold value are compared;If the cpu load is located in the 2nd DVFS forms
In the range of cpu load upper threshold value and cpu load lower threshold value, then CPU present operating voltage and present operating frequency are defined as
CPU target operating voltage and target operating frequency;If the cpu load is not located at the CPU in the 2nd DVFS forms
Load in the range of upper threshold value and cpu load lower threshold value, according to the every group of operating voltage recorded in comparative result, the 2nd DVFS forms
CPU target operating voltage and target operation frequency is determined with the present operating voltage and present operating frequency of working frequency and CPU
Rate.
Further, second determining module, specifically for being that the cpu load is more than described second when comparative result
During cpu load upper threshold value in DVFS forms, according to the present operating frequency of CPU present operating voltage and CPU corresponding
Group in two DVFS forms, the operating voltage and working frequency in the group adjacent with described group is defined as CPU target operation
Voltage and target operating frequency, wherein, operating voltage and working frequency in the adjacent group are compared with present operating voltage and work as
Preceding working frequency is big;When comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms,
, will be with described group of phase according to the group in the corresponding 2nd DVFS forms of the present operating frequency of CPU present operating voltage and CPU
Operating voltage and working frequency in adjacent group are defined as CPU target operating voltage and target operating frequency, wherein, the phase
Operating voltage and working frequency in adjacent group is small compared with present operating voltage and present operating frequency.
Further, described device also includes:
Judge module, for judging whether CPU present operating voltage and present operating frequency are the 2nd DVFS tables
The maximum working voltage and maximum operation frequency of record in lattice;
Second determining module, is additionally operable to when the judged result of judge module is is, by present operating voltage and work
Working frequency is defined as CPU target operating voltage and target operating frequency;
The judge module, whether the present operating voltage and present operating frequency for being additionally operable to judge CPU are described second
The minimum and minimum frequency of operation of record in DVFS forms;
Second determining module, is additionally operable to when the judged result of judge module is is, by present operating voltage and work
Working frequency is defined as CPU target operating voltage and target operating frequency.
The embodiment of the invention discloses a kind of DVFS method and devices, methods described includes:When in Video coding scene
When, video buffer utilization rate and cpu load are obtained, judges whether the video buffer utilization rate is more than the threshold value of setting, wherein,
The video buffer utilization rate is the memory capacity that encoded video takes and the video loop buffer region for being available for coding
Total memory capacity ratio;If it is, according to the cpu load of acquisition and predetermined first DVFS tables
Lattice, determine CPU target operating voltage and target operating frequency;If it is not, then according to the cpu load of acquisition and in advance
The 2nd DVFS forms determined, determine CPU target operating voltage and target operating frequency, wherein in the second DVFS forms
Cpu load lower threshold value it is bigger than the cpu load lower threshold value in the first DVFS forms;According to the CPU of determination target operating voltage
It is operated with target operating frequency.Due in embodiments of the present invention, when the video buffer utilization rate of acquisition is more than setting threshold
During value, the CPU of acquisition load also can be larger, then CPU target work can be determined by predetermined first DVFS forms
Make voltage and target operating frequency.When the video buffer utilization rate of acquisition is not more than given threshold, the CPU of acquisition load
Can be smaller, now can be between lower threshold value that typically can be in the first DVFS forms and the lower threshold value scope of the 2nd DVFS forms
CPU target operating voltage and target operating frequency is determined by predetermined 2nd DVFS forms, what this mode was determined
CPU target operating voltage and target operating frequency more only by the first DVFS forms determine CPU target operating voltage and
Target operating frequency is smaller, so as to reach the purpose of reduction power consumption.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of DVFS process schematics that the embodiment of the present invention 1 is provided;
Fig. 2A is a kind of Video coding schematic diagram provided in an embodiment of the present invention;
Fig. 2 B are the inner bay composition of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 2 C are a kind of 2nd DVFS form schematic diagrames provided in an embodiment of the present invention;
Fig. 3 is a kind of DVFS process schematics provided in an embodiment of the present invention;
Fig. 4 is a kind of DVFS structure drawing of device that the embodiment of the present invention 1 is provided;
Fig. 5 is a kind of DVFS structure drawing of device provided in an embodiment of the present invention.
Embodiment
In order that electronic equipment is when carrying out Video coding, CPU power consumption reaches lower, and the embodiments of the invention provide one
Plant DVFS method and devices.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
Fig. 1 is a kind of DVFS process schematics provided in an embodiment of the present invention, and the process comprises the following steps:
S101:When in Video coding scene, video buffer utilization rate and cpu load are obtained.
S102:Judge whether the video buffer utilization rate is more than the threshold value of setting, wherein, the video buffer utilization rate
The ratio of total memory capacity of memory capacity and the video loop buffer region for being available for coding for encoded video occupancy
Value, if it is, S103 is performed, if it is not, then performing S104.
DVFS methods provided in an embodiment of the present invention can apply to that the electronic equipment of Video coding can be carried out.The electricity
Sub- equipment can be handheld device or on-handheld device.If the electronic equipment is handheld device, reduction CPU's
Power consumption will be even more important, because handheld device is by battery-powered operation, the CPU of handheld device is for supplying cell
Life-span and power consumption have strict requirements.No matter whether the electronic equipment is handheld device, on the embodiment of the present invention without influence.
Threshold value is preserved in electronic equipment, when the electronic equipment is in Video coding scene, video buffer can be obtained
Utilization rate and cpu load, video buffer utilization rate are bigger, and corresponding cpu load typically can be bigger, and video buffer utilization rate is got over
Small, corresponding cpu load typically can be smaller.Electronic equipment judges whether the video buffer utilization rate is more than the threshold value of setting,
CPU target operating voltage and target operating frequency is determined according to judged result.
Electronic equipment is obtaining video buffer utilization rate and during cpu load, can be obtain in real time or according to
What the time interval of setting was obtained, obtain video buffer utilization rate and obtain cpu load can be and meanwhile carry out or
Obtained successively according to default time interval and default acquisition order, such as default time interval is 1s, is obtained suitable
Sequence then obtains cpu load first to obtain video buffer utilization rate, then first obtains and obtain CPU after video buffer utilization rate, 1s again and bear
Carry.The video buffer utilization rate is the memory capacity that encoded video takes and the video buffer circle for being available for coding
The ratio of total memory capacity in domain.Video buffer utilization rate can reflect the overall performance of Video coding.
S103:According to the cpu load of acquisition and predetermined first DVFS forms, CPU target work is determined
Make voltage and target operating frequency.
The first DVFS forms are preserved in electronic equipment, when judge the video buffer utilization rate be more than setting threshold value
When, CPU target operating voltage can be determined according to the cpu load and predetermined first DVFS forms of acquisition
And target operating frequency.Wherein, the first DVFS forms are existing DVFS forms, and the CPU according to acquisition is born
Carry and predetermined first DVFS forms, determine that CPU target operating voltage and the process of target operating frequency belong to existing
There is technology, in embodiments of the present invention to the process without repeating.
S104:According to the cpu load of acquisition and predetermined 2nd DVFS forms, CPU target work is determined
Make voltage and target operating frequency, wherein the cpu load lower threshold value in the second DVFS forms is than in the first DVFS forms
Cpu load lower threshold value is big.
The cpu load lower threshold value preserved in electronic equipment in the 2nd DVFS forms, the 2nd DVFS forms compares first
Cpu load lower threshold value in DVFS forms is big., can be with when judging that the video buffer utilization rate is not more than the threshold value of setting
According to the cpu load of acquisition and predetermined 2nd DVFS forms, CPU target operating voltage and target work is determined
Working frequency.
S105:It is operated according to the CPU of determination target operating voltage and target operating frequency.
After the target operating voltage and target operating frequency for determining CPU, electronic equipment just can be according to the CPU of determination
Target operating voltage and target operating frequency be operated.
Before above-mentioned S101, i.e., before Video coding scene, also need to carry out DVFS module initializations.For above-mentioned
The video buffer utilization rate that S101 and S102 are referred to, can be illustrated according to Fig. 2A Video coding schematic diagram.Compiled in video
During code, video loop buffer region is used to store encoded data stream, while write pointer p_write and read pointer p_read
Manage region 1, region 2 and region 3 in whole video coding process, figure and constitute video loop buffer region, it is encoded
The space that video takes is referred to as region 2, the sky in the video loop buffer region in addition to the space that encoded video takes
Between be region 2 and region 3, region 1 take memory capacity, region 2 take memory capacity and region 3 take memory capacity
Constitute total memory capacity in video loop buffer region.The memory capacity that region 2 takes takes for encoded video
Memory capacity, then video buffer utilization rate is the ratio of memory capacity and total memory capacity that region 2 takes.
With the progress of Video coding, write pointer will increase in write-in video data, the then memory capacity that the region 2 takes
Plus, the memory capacity in corresponding region 3 will diminish, and the video data of write-in can be read out by read pointer, then region 1 is accounted for
Memory capacity will increase, and the memory capacity that corresponding region 2 takes will reduce.Region 2 can dynamic change, Ke Nengbian
It is small, it is also possible to become big.The memory capacity that each region takes can also become big or diminish, but region 1, region 2 and region 3 are constituted
Total memory capacity that video loop buffer region will not change i.e. video loop buffer region will not change.When region 2
When the memory capacity of occupancy changes, the ratio of the memory capacity that region 2 takes and total memory capacity also can dynamic change.
Due in embodiments of the present invention, when the video buffer utilization rate of acquisition is more than given threshold, the CPU's of acquisition
Load also can be larger, then CPU target operating voltage and target operation can be determined by predetermined first DVFS forms
Frequency.When the video buffer utilization rate of acquisition is not more than given threshold, the CPU of acquisition load also can be smaller, can typically locate
Between the lower threshold value of the first DVFS forms and the lower threshold value scope of the 2nd DVFS forms, it can now pass through predetermined
Two DVFS forms determine CPU target operating voltage and target operating frequency, the target operating voltage for the CPU that this mode is determined
The CPU more only determined with target operating frequency by the first DVFS forms target operating voltage and target operating frequency is smaller,
So as to reach the purpose of reduction power consumption.
Embodiment 2:
In order to reduce the interference to Video coding scene, further ensure that the CPU of electronic equipment power consumption is preferably minimized,
On the basis of above-described embodiment, in embodiments of the present invention, before the acquisition video buffer utilization rate and cpu load, institute
Stating method also includes:
Work clock configuration information is received, wherein when including the work of video encoder in the work clock configuration information
The highest frequency of the highest frequency of clock and dual-magnification technique synchronous DRAM DDR work clock;
The work clock of the video encoder is arranged on corresponding highest frequency, and during by the work of the DDR
Clock is arranged on corresponding highest frequency.
In embodiments of the present invention, for the performance of Video coding, major influence factors have the work of video encoder
Make the frequency, the frequency of DDR work clock and CPU frequency of clock, wherein performance impact of the CPU frequency to Video coding
It is smaller, it can be ignored.When the work clock of encoder frequency and DDR work clock frequency be located at respective highest
During frequency, the performance impact encoded for video video is minimum.
Electronic equipment receives work clock configuration information, wherein including video encoder in the work clock configuration information
Work clock highest frequency and DDR work clock highest frequency.The work clock of the video encoder is set
It is arranged on corresponding highest frequency, and by the work clock of the DDR on corresponding highest frequency.
The inner bay composition of the electronic equipment of progress Video coding as shown in Figure 2 B, including bus, CPU, Video coding
Device and DDR, can set the frequency of the frequency of the work clock of video encoder and DDR work clock by bus, with
And obtain cpu load.
Embodiment 3:
On the basis of the various embodiments described above, in embodiments of the present invention, the cpu load according to acquisition and
Predetermined 2nd DVFS forms, determining CPU target operating voltage and target operating frequency includes:
The cpu load is compared with the cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
Compared with;
If the cpu load is located at cpu load upper threshold value and cpu load lower threshold value model in the 2nd DVFS forms
In enclosing, then CPU present operating voltage and present operating frequency are defined as to CPU target operating voltage and target operation frequency
Rate;
If the cpu load is not located at cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
In the range of, according to the every group of operating voltage recorded in comparative result, the 2nd DVFS forms and working frequency and CPU work at present
Voltage and present operating frequency determine CPU target operating voltage and target operating frequency.
In embodiments of the present invention, in the cpu load according to acquisition and predetermined 2nd DVFS forms, really
When determining CPU target operating voltage and target operating frequency, specifically, can be by the cpu load of acquisition and described the
Cpu load upper threshold value and cpu load lower threshold value in two DVFS forms are compared, if comparative result is the cpu load
In the range of cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms, then illustrate work electricity now
Pressure and working frequency are the electronic equipment preferably operating voltage and working frequency, then by CPU present operating voltage and currently
Working frequency is defined as CPU target operating voltage and target operating frequency.
If the cpu load is not located at cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
In the range of, can be according to the current of the every group of operating voltage and working frequency and CPU recorded in comparative result, the 2nd DVFS forms
Operating voltage and present operating frequency determine CPU target operating voltage and target operating frequency.
The working as according to the every group of operating voltage and working frequency that are recorded in comparative result, the 2nd DVFS forms and CPU
When preceding operating voltage and present operating frequency determine CPU target operating voltage and target operating frequency, Ke Yishi:
, then will be when comparative result is the cpu load upper threshold value that the cpu load is more than in the 2nd DVFS forms
The ratio present operating voltage and the big operating voltage of present operating frequency and working frequency recorded in the 2nd DVFS forms is true
It is set to CPU target operating voltage and target operating frequency.The CPU determined target operating voltage and target operating frequency
The group in group the 2nd DVFS forms corresponding with present operating voltage and present operating frequency in corresponding 2nd DVFS forms
Can be adjacent or non-conterminous.
, then will be when comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms
The ratio present operating voltage and the small operating voltage of present operating frequency and working frequency recorded in the 2nd DVFS forms is true
It is set to target operating voltage and target operating frequency.The CPU determined target operating voltage is corresponding with target operating frequency
The 2nd DVFS forms in group the 2nd DVFS forms corresponding with present operating voltage and present operating frequency in group can be with
It is adjacent or non-conterminous.
Embodiment 4:
In order to ensure the optimal power consumption that the CPU of determination target operating voltage and target operating frequency are the electronic equipment,
It is in embodiments of the present invention, described according to recording in comparative result, the 2nd DVFS forms on the basis of the various embodiments described above
Every group of operating voltage and working frequency and CPU present operating voltage and present operating frequency determine CPU target operating voltage
Include with target operating frequency:
When comparative result is the cpu load upper threshold value that the cpu load is more than in the 2nd DVFS forms, according to
Group in CPU present operating voltage and the corresponding 2nd DVFS forms of CPU present operating frequency, will be adjacent with described group
Operating voltage and working frequency in group are defined as CPU target operating voltage and target operating frequency, wherein, it is described adjacent
Operating voltage and working frequency in group is big compared with present operating voltage and present operating frequency;
When comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms, according to
Group in CPU present operating voltage and the corresponding 2nd DVFS forms of CPU present operating frequency, will be adjacent with described group
Operating voltage and working frequency in group are defined as CPU target operating voltage and target operating frequency, wherein, it is described adjacent
Operating voltage and working frequency in group is small compared with present operating voltage and present operating frequency.
In embodiments of the present invention, it is described when comparative result is that the cpu load is more than in the 2nd DVFS forms
During cpu load upper threshold value, the operating voltage and working frequency in the group adjacent with described group are defined as to CPU target operation electricity
Before pressure and target operating frequency, methods described also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms most
Big operating voltage and maximum operation frequency;If it is, present operating voltage and working frequency to be defined as to CPU target operation
Voltage and target operating frequency;If it is not, then carrying out following step.
In embodiments of the present invention, comprising at least one set of operating voltage and working frequency in the 2nd DVFS forms, when CPU's
Present operating voltage and present operating frequency are the maximum working voltage and maximum functional of the record in the 2nd DVFS forms
During frequency, then illustrate that the present operating voltage and present operating frequency of the electronic equipment have been adjusted to maximum, then can not be again
CPU target operating voltage and target operating frequency are adjusted to bigger, so by CPU present operating voltage and work at present
Frequency is defined as CPU target operating voltage and target operating frequency.If CPU present operating voltage and present operating frequency
The maximum working voltage and maximum operation frequency of record in the 2nd DVFS forms, then can be according to the current of CPU
Group in operating voltage and the CPU corresponding 2nd DVFS forms of present operating frequency, by the work in the group adjacent with described group
Make voltage and working frequency is defined as CPU target operating voltage and target operating frequency, wherein, the work in the adjacent group
Make voltage and working frequency big compared with present operating voltage and present operating frequency.
In embodiments of the present invention, when comparative result is that the CPU that the cpu load is less than in the 2nd DVFS forms is born
Carry lower threshold value when, by the operating voltage and working frequency in the group adjacent with described group be defined as CPU target operating voltage and
Before target operating frequency, methods described also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms most
Small operating voltage and minimum frequency of operation;If it is, present operating voltage and working frequency to be defined as to CPU target operation
Voltage and target operating frequency;If it is not, then carrying out following step.
In embodiments of the present invention, comprising at least one set of operating voltage and working frequency in the 2nd DVFS forms, when CPU's
Present operating voltage and present operating frequency are the minimums of the record in the 2nd DVFS forms and minimum worked
During frequency, then illustrate that the present operating voltage and present operating frequency of the electronic equipment have been adjusted to minimum value, then can not be again
CPU target operating voltage and target operating frequency are adjusted to smaller, so by CPU present operating voltage and work at present
Frequency is defined as CPU target operating voltage and target operating frequency.If CPU present operating voltage and present operating frequency
The minimum and minimum frequency of operation of the record in the 2nd DVFS forms, then can be according to the current of CPU
Group in operating voltage and the CPU corresponding 2nd DVFS forms of present operating frequency, by the work in the group adjacent with described group
Make voltage and working frequency is defined as CPU target operating voltage and target operating frequency, wherein, the work in the adjacent group
Make voltage and working frequency small compared with present operating voltage and present operating frequency.
2nd DVFS form schematic diagrames as that shown in fig. 2 c, CPU upper threshold values are that 80%, CPU lower threshold values are 45%, described
Every group of operating voltage and working frequency are record in two DVFS forms, for example, working frequency is 1300000Hz is with operating voltage
1.25V is one group, and working frequency is 1200000Hz and operating voltage is that 1.23V is one group, working frequency be 1100000Hz with
Operating voltage is that 1.20V is one group, working frequency is 1000000Hz and operating voltage is that 1.15V is one group, and working frequency is
800000Hz and operating voltage are that 1.10V is one group.Determined according to the 2nd DVFS forms CPU target operating voltage and
During target operating frequency, it is first determined CPU present operating voltage and present operating frequency, by the cpu load of acquisition with it is described
Cpu load upper threshold value and cpu load lower threshold value in 2nd DVFS forms are compared.
If the cpu load is located at cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms
In the range of, then CPU present operating voltage and present operating frequency are defined as to CPU target operating voltage and target operation frequency
Rate, such as described present operating voltage is 1.20V, and present operating frequency is 1100000Hz, and the cpu load is 50%, then is
CPU target operating voltage is 1.20V, and target operating frequency is 1100000Hz.
If the cpu load is less than the cpu load lower threshold value in the 2nd DVFS forms, judges CPU current work
Make voltage and present operating frequency whether be record in the 2nd DVFS forms minimum and minimum work frequency
Rate;If it is, present operating voltage and working frequency to be defined as to CPU target operating voltage and target operating frequency;Such as
Really no, then the group in the corresponding 2nd DVFS forms of present operating frequency of CPU present operating voltage and CPU will be with
Operating voltage and working frequency in described group of adjacent group are defined as CPU target operating voltage and target operating frequency, its
In, the operating voltage and working frequency in the adjacent group are small compared with present operating voltage and present operating frequency.For example, described
Cpu load is 40%, and the present operating voltage of the CPU is 1.20V, and present operating frequency is 1100000Hz, the current work
Make minimum and minimum frequency of operation that voltage and present operating frequency are not the records in the 2nd DVFS forms,
It is 1.20V then to determine the present operating voltage, and present operating frequency is corresponding group of 1100000Hz, will be adjacent with described group
And operating voltage and working frequency are true compared with the operating voltage and working frequency of present operating voltage and present operating frequency group
It is set to CPU target operating voltage and target operating frequency, then the target operating voltage is 1.15V, target operating frequency is
1000000Hz.For example, the cpu load is 40%, the present operating voltage of the CPU is 1.10V, and present operating frequency is
800000Hz, the present operating voltage and present operating frequency are that the minimum of record in the 2nd DVFS forms works electric
Pressure and minimum frequency of operation, then by CPU present operating voltage and present operating frequency be defined as CPU target operating voltage and
Target operating frequency, then the target operating voltage is 1.15V, and target operating frequency is 1000000Hz.
If the cpu load is more than the cpu load upper threshold value in the 2nd DVFS forms, judges CPU current work
Make voltage and present operating frequency whether be record in the 2nd DVFS forms maximum working voltage and maximum functional frequency
Rate;If it is, present operating voltage and working frequency to be defined as to CPU target operating voltage and target operating frequency;Such as
Really no, then the group in the corresponding 2nd DVFS forms of present operating frequency of CPU present operating voltage and CPU will be with
Operating voltage and working frequency in described group of adjacent group are defined as CPU target operating voltage and target operating frequency, its
In, the operating voltage and working frequency in the adjacent group are big compared with present operating voltage and present operating frequency.For example, described
Cpu load is 90%, and the present operating voltage of the CPU is 1.20V, and present operating frequency is 1100000Hz, the current work
Make maximum working voltage and maximum operation frequency that voltage and present operating frequency are not the records in the 2nd DVFS forms,
It is 1.20V then to determine the present operating voltage, and present operating frequency is corresponding group of 1100000Hz, will be adjacent with described group
And big group compared with present operating voltage and present operating frequency of operating voltage and working frequency operating voltage and working frequency it is true
It is set to CPU target operating voltage and target operating frequency, then the target operating voltage is 1.20V, target operating frequency is
1100000Hz.For example, the cpu load is 90%, the present operating voltage of the CPU is 1.25V, and present operating frequency is
1300000Hz, the present operating voltage and present operating frequency are the maximum functionals of the record in the 2nd DVFS forms
Voltage and maximum operation frequency, then be defined as CPU target operating voltage by CPU present operating voltage and present operating frequency
And target operating frequency, then the target operating voltage is 1.25V, and target operating frequency is 1300000Hz.
Fig. 3 is a kind of DVFS process schematics provided in an embodiment of the present invention, and the process comprises the following steps:
S301:Work clock configuration information is received, wherein including video encoder in the work clock configuration information
The highest frequency of the highest frequency of work clock and DDR work clock, the work clock of the video encoder is arranged on
On corresponding highest frequency, and the work clock of the DDR is arranged on corresponding highest frequency.
S302:When in Video coding scene, video buffer utilization rate and cpu load are obtained, judges that the video delays
The threshold value whether utilization rate is more than setting is rushed, wherein, the storage that the video buffer utilization rate takes for encoded video
The ratio of total memory capacity in video loop buffer region of the capacity with being available for coding, if it is, S303 is performed, if
It is no, then perform S304.
S303:According to the cpu load of acquisition and predetermined first DVFS forms, CPU target work is determined
Make voltage and target operating frequency.
S304:Compare the cpu load and cpu load upper threshold value in the 2nd DVFS forms and cpu load lower threshold value
Size, if the cpu load is located at cpu load upper threshold value and cpu load lower threshold value scope in the 2nd DVFS forms
It is interior, then S305 is performed, if the cpu load is more than the cpu load upper threshold value in the 2nd DVFS forms, is performed
S306, the cpu load is less than the cpu load lower threshold value in the 2nd DVFS forms, then performs S307.
S305:CPU present operating voltage and present operating frequency are defined as to CPU target operating voltage and target work
Working frequency.
S306:Whether the present operating voltage and present operating frequency for judging CPU are note in the 2nd DVFS forms
The maximum working voltage and maximum operation frequency of record, if it is, S305 is performed, if it is not, then performing S308.
S307:Whether the present operating voltage and present operating frequency for judging CPU are note in the 2nd DVFS forms
The minimum and minimum frequency of operation of record, if it is, S305 is performed, if it is not, then performing S309.
S308:According in the corresponding 2nd DVFS forms of the present operating frequency of CPU present operating voltage and CPU
Group, the operating voltage and working frequency in the group adjacent with described group is defined as CPU target operating voltage and target operation
Frequency, wherein, the operating voltage and working frequency in the adjacent group are big compared with present operating voltage and present operating frequency.
S309:According in the corresponding 2nd DVFS forms of the present operating frequency of CPU present operating voltage and CPU
Group, the operating voltage and working frequency in the group adjacent with described group is defined as CPU target operating voltage and target operation
Frequency, wherein, the operating voltage and working frequency in the adjacent group are small compared with present operating voltage and present operating frequency.
S310:It is operated according to the CPU of determination target operating voltage and target operating frequency.
Fig. 4 is a kind of DVFS structure drawing of device that the embodiment of the present invention 1 is provided, and described device includes:
Judge module 41 is obtained, for when in Video coding scene, obtaining video buffer utilization rate and cpu load,
Judge whether the video buffer utilization rate is more than the threshold value of setting, wherein, the video buffer utilization rate is encoded
The ratio of total memory capacity in video loop buffer region of the memory capacity that video takes with being available for coding;
First determining module 42, it is negative according to the CPU of acquisition for when obtaining the judged result of judge module to be
Carry and predetermined first DVFS forms, determine CPU target operating voltage and target operating frequency;
Second determining module 43, it is negative according to the CPU of acquisition for when the judged result for obtaining judge module is no
Carry and predetermined 2nd DVFS forms, CPU target operating voltage and target operating frequency is determined, wherein described second
Cpu load lower threshold value in DVFS forms is bigger than the cpu load lower threshold value in the first DVFS forms;
Operational module 44, target operating voltage and target operating frequency for the CPU according to determination are operated.
Fig. 5 is a kind of DVFS structure drawing of device provided in an embodiment of the present invention, and on the basis of Fig. 4, described device is also wrapped
Include:
Receiving module 51, for receiving work clock configuration information, is regarded wherein being included in the work clock configuration information
The most high frequency of the highest frequency of the work clock of frequency encoder and dual-magnification technique synchronous DRAM DDR work clock
Rate;
Setup module 52, for the work clock of the video encoder to be arranged on into corresponding highest frequency, and will
The work clock of the DDR is arranged on corresponding highest frequency.
Second determining module 43, specifically for by the cpu load in the cpu load and the 2nd DVFS forms
Upper threshold value and cpu load lower threshold value are compared;If the cpu load is located at the cpu load in the 2nd DVFS forms
In the range of upper threshold value and cpu load lower threshold value, then CPU present operating voltage and present operating frequency are defined as CPU mesh
Mark operating voltage and target operating frequency;If the cpu load is not located at the cpu load upper-level threshold in the 2nd DVFS forms
In the range of value and cpu load lower threshold value, according to the every group of operating voltage and work frequency recorded in comparative result, the 2nd DVFS forms
Rate and CPU present operating voltage and present operating frequency determine CPU target operating voltage and target operating frequency.
Second determining module 43, specifically for being that the cpu load is more than the 2nd DVFS tables when comparative result
During cpu load upper threshold value in lattice, according to corresponding 2nd DVFS of the present operating frequency of CPU present operating voltage and CPU
Group in form, by the operating voltage and working frequency in the group adjacent with described group be defined as CPU target operating voltage and
Target operating frequency, wherein, the operating voltage and working frequency in the adjacent group are compared with present operating voltage and work at present
Frequency is big;When comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms, according to CPU
The corresponding 2nd DVFS forms of the present operating frequency of present operating voltage and CPU in group, by the group adjacent with described group
In operating voltage and working frequency be defined as CPU target operating voltage and target operating frequency, wherein, the adjacent group
In operating voltage and working frequency it is small compared with present operating voltage and present operating frequency.
Described device also includes:
Judge module 53, for judging whether CPU present operating voltage and present operating frequency are the 2nd DVFS
The maximum working voltage and maximum operation frequency of record in form;
Second determining module 43, is additionally operable to the judged result when judge module for when being, by present operating voltage and
Working frequency is defined as CPU target operating voltage and target operating frequency;
The judge module 53, whether the present operating voltage and present operating frequency for being additionally operable to judge CPU are described
The minimum and minimum frequency of operation of record in two DVFS forms;
Second determining module 43, is additionally operable to the judged result when judge module for when being, by present operating voltage and
Working frequency is defined as CPU target operating voltage and target operating frequency.
The embodiment of the invention discloses a kind of DVFS method and devices, methods described includes:When in Video coding scene
When, video buffer utilization rate and cpu load are obtained, judges whether the video buffer utilization rate is more than the threshold value of setting, wherein,
The video buffer utilization rate is the memory capacity that encoded video takes and the video loop buffer region for being available for coding
Total memory capacity ratio;If it is, according to the cpu load of acquisition and predetermined first DVFS tables
Lattice, determine CPU target operating voltage and target operating frequency;If it is not, then according to the cpu load of acquisition and in advance
The 2nd DVFS forms determined, determine CPU target operating voltage and target operating frequency, wherein in the second DVFS forms
Cpu load lower threshold value it is bigger than the cpu load lower threshold value in the first DVFS forms;According to the CPU of determination target operating voltage
It is operated with target operating frequency.Due in embodiments of the present invention, when the video buffer utilization rate of acquisition is more than setting threshold
During value, the CPU of acquisition load also can be larger, then CPU target work can be determined by predetermined first DVFS forms
Make voltage and target operating frequency.When the video buffer utilization rate of acquisition is not more than given threshold, the CPU of acquisition load
Can be smaller, now can be between lower threshold value that typically can be in the first DVFS forms and the lower threshold value scope of the 2nd DVFS forms
CPU target operating voltage and target operating frequency is determined by predetermined 2nd DVFS forms, what this mode was determined
CPU target operating voltage and target operating frequency more only by the first DVFS forms determine CPU target operating voltage and
Target operating frequency is smaller, so as to reach the purpose of reduction power consumption.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or an operation make a distinction with another entity or another operation, and not necessarily require or imply these entities
Or there is any this actual relation or order between operation.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality of complete hardware embodiment, complete Application Example or connected applications and hardware aspect
Apply the form of example.Moreover, the application can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.
Claims (10)
1. a kind of dynamic voltage frequency adjusts DVFS methods, it is characterised in that methods described includes:
When in Video coding scene, video buffer utilization rate and cpu load are obtained, judges that the video buffer utilization rate is
The no threshold value for being more than setting, wherein, the video buffer utilization rate is the memory capacity of encoded video occupancy with being available for
The ratio of total memory capacity in the video loop buffer region of coding;
If it is, according to the cpu load of acquisition and predetermined first DVFS forms, determining CPU target work
Make voltage and target operating frequency;
If it is not, then according to the cpu load of acquisition and predetermined 2nd DVFS forms, determining CPU target work
Make voltage and target operating frequency, wherein the cpu load lower threshold value in the second DVFS forms is than in the first DVFS forms
Cpu load lower threshold value is big;
It is operated according to the CPU of determination target operating voltage and target operating frequency.
2. the method as described in claim 1, it is characterised in that before the acquisition video buffer utilization rate and cpu load,
Methods described also includes:
Work clock configuration information is received, wherein the work clock comprising video encoder in the work clock configuration information
The highest frequency of highest frequency and dual-magnification technique synchronous DRAM DDR work clock;
The work clock of the video encoder is arranged on corresponding highest frequency, and the work clock of the DDR is set
Put on corresponding highest frequency.
3. the method as described in claim 1, it is characterised in that the cpu load according to acquisition and predefine
The 2nd DVFS forms, determining CPU target operating voltage and target operating frequency includes:
The cpu load is compared with the cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms;
If the cpu load is located at cpu load upper threshold value and cpu load lower threshold value scope in the 2nd DVFS forms
It is interior, then CPU present operating voltage and present operating frequency are defined as to CPU target operating voltage and target operating frequency;
If the cpu load is not located at cpu load upper threshold value and cpu load lower threshold value scope in the 2nd DVFS forms
It is interior, according to the every group of operating voltage and working frequency and CPU present operating voltage recorded in comparative result, the 2nd DVFS forms
CPU target operating voltage and target operating frequency is determined with present operating frequency.
4. method as claimed in claim 3, it is characterised in that described according to being recorded in comparative result, the 2nd DVFS forms
Every group of operating voltage and working frequency and CPU present operating voltage and present operating frequency determine CPU target operating voltage
Include with target operating frequency:
When comparative result is the cpu load upper threshold value that the cpu load is more than in the 2nd DVFS forms, according to CPU's
Group in present operating voltage and the CPU corresponding 2nd DVFS forms of present operating frequency, by the group adjacent with described group
Operating voltage and working frequency be defined as CPU target operating voltage and target operating frequency, wherein, in the adjacent group
Operating voltage and working frequency it is big compared with present operating voltage and present operating frequency;
When comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms, according to CPU's
Group in present operating voltage and the CPU corresponding 2nd DVFS forms of present operating frequency, by the group adjacent with described group
Operating voltage and working frequency be defined as CPU target operating voltage and target operating frequency, wherein, in the adjacent group
Operating voltage and working frequency it is small compared with present operating voltage and present operating frequency.
5. method as claimed in claim 4, it is characterised in that described when comparative result is that the cpu load is more than described the
During cpu load upper threshold value in two DVFS forms, the operating voltage and working frequency in the group adjacent with described group are defined as
Before CPU target operating voltage and target operating frequency, methods described also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms maximum work
Make voltage and maximum operation frequency;If it is, present operating voltage and working frequency to be defined as to CPU target operating voltage
And target operating frequency;If it is not, then carrying out following step;
, will be with described group when comparative result is the cpu load lower threshold value that the cpu load is less than in the 2nd DVFS forms
Operating voltage and working frequency in adjacent group are defined as before CPU target operating voltage and target operating frequency, described
Method also includes:
Judge CPU present operating voltage and present operating frequency whether be record in the 2nd DVFS forms most unskilled labourer
Make voltage and minimum frequency of operation;If it is, present operating voltage and working frequency to be defined as to CPU target operating voltage
And target operating frequency;If it is not, then carrying out following step.
6. a kind of dynamic voltage frequency adjusts DVFS devices, it is characterised in that described device includes:
Judge module is obtained, for when in Video coding scene, obtaining video buffer utilization rate and cpu load, judging institute
The threshold value whether video buffer utilization rate is more than setting is stated, wherein, the video buffer utilization rate is that encoded video is accounted for
The ratio of total memory capacity in video loop buffer region of the memory capacity with being available for coding;
First determining module, for when obtaining the judged result of judge module to be, according to the cpu load of acquisition and
Predetermined first DVFS forms, determine CPU target operating voltage and target operating frequency;
Second determining module, for when obtain the judged result of judge module for it is no when, according to the cpu load of acquisition and
Predetermined 2nd DVFS forms, determine CPU target operating voltage and target operating frequency, wherein the second DVFS tables
Cpu load lower threshold value in lattice is bigger than the cpu load lower threshold value in the first DVFS forms;
Operational module, target operating voltage and target operating frequency for the CPU according to determination are operated.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Receiving module, for receiving work clock configuration information, wherein including Video coding in the work clock configuration information
The highest frequency of the highest frequency of the work clock of device and dual-magnification technique synchronous DRAM DDR work clock;
Setup module, for the work clock of the video encoder to be arranged on into corresponding highest frequency, and by the DDR
Work clock be arranged on corresponding highest frequency.
8. device as claimed in claim 6, it is characterised in that second determining module, specifically for by the cpu load
It is compared with the cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms;If the cpu load position
In the range of cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms, then by CPU work at present electricity
Pressure and present operating frequency are defined as CPU target operating voltage and target operating frequency;If the cpu load is not located at institute
State in the range of the cpu load upper threshold value and cpu load lower threshold value in the 2nd DVFS forms, according to comparative result, the 2nd DVFS tables
The every group of operating voltage and working frequency and CPU present operating voltage and present operating frequency that are recorded in lattice determine CPU mesh
Mark operating voltage and target operating frequency.
9. device as claimed in claim 8, it is characterised in that second determining module, specifically for being when comparative result
When the cpu load is more than the cpu load upper threshold value in the 2nd DVFS forms, according to CPU present operating voltage and CPU
The corresponding 2nd DVFS forms of present operating frequency in group, by the operating voltage in the group adjacent with described group and work frequency
Rate is defined as CPU target operating voltage and target operating frequency, wherein, operating voltage and work frequency in the adjacent group
Rate is big compared with present operating voltage and present operating frequency;When comparative result is that the cpu load is less than the 2nd DVFS forms
In cpu load lower threshold value when, according to the corresponding 2nd DVFS tables of the present operating frequency of CPU present operating voltage and CPU
Group in lattice, the operating voltage and working frequency in the group adjacent with described group is defined as CPU target operating voltage and mesh
Working frequency is marked, wherein, the operating voltage and working frequency in the adjacent group are compared with present operating voltage and work at present frequency
Rate is small.
10. device as claimed in claim 9, it is characterised in that described device also includes:
Judge module, used in judging whether CPU present operating voltage and present operating frequency are the 2nd DVFS forms
Record maximum working voltage and maximum operation frequency;
Second determining module, is additionally operable to when the judged result of judge module is is, by present operating voltage and work frequency
Rate is defined as CPU target operating voltage and target operating frequency;
The judge module, whether the present operating voltage and present operating frequency for being additionally operable to judge CPU are the 2nd DVFS
The minimum and minimum frequency of operation of record in form;
Second determining module, is additionally operable to when the judged result of judge module is is, by present operating voltage and work frequency
Rate is defined as CPU target operating voltage and target operating frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710313920.2A CN107256078B (en) | 2017-05-05 | 2017-05-05 | Dynamic voltage frequency adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710313920.2A CN107256078B (en) | 2017-05-05 | 2017-05-05 | Dynamic voltage frequency adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107256078A true CN107256078A (en) | 2017-10-17 |
CN107256078B CN107256078B (en) | 2020-06-23 |
Family
ID=60027253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710313920.2A Active CN107256078B (en) | 2017-05-05 | 2017-05-05 | Dynamic voltage frequency adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107256078B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019091319A1 (en) * | 2017-11-07 | 2019-05-16 | 晶晨半导体(上海)股份有限公司 | Method for automatically testing processor |
CN112286338A (en) * | 2020-11-09 | 2021-01-29 | 维沃移动通信有限公司 | Chip control method, chip control device, electronic device, and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101115198A (en) * | 2006-07-26 | 2008-01-30 | 财团法人工业技术研究院 | Video decoder power monitoring method and apparatus for multi-core platform |
CN101150698A (en) * | 2007-09-04 | 2008-03-26 | 浙江大学 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
CN101312519A (en) * | 2008-07-04 | 2008-11-26 | 深圳华为通信技术有限公司 | Data frame processing method and apparatus |
US8171187B2 (en) * | 2008-07-25 | 2012-05-01 | Freescale Semiconductor, Inc. | System and method for arbitrating between memory access requests |
CN103596045A (en) * | 2012-08-14 | 2014-02-19 | 上海海德数据科技有限公司 | An energy-saving control method for a video code stream playing terminal |
CN103678247A (en) * | 2012-08-29 | 2014-03-26 | 三星电子株式会社 | Dynamic voltage frequency scaling method and apparatus |
CN104604241A (en) * | 2012-07-09 | 2015-05-06 | Vid拓展公司 | Power aware video decoding and streaming |
US20150350656A1 (en) * | 2014-05-30 | 2015-12-03 | Qualcomm Innovation Center, Inc. | Dynamic video core clock and voltage scaling |
-
2017
- 2017-05-05 CN CN201710313920.2A patent/CN107256078B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101115198A (en) * | 2006-07-26 | 2008-01-30 | 财团法人工业技术研究院 | Video decoder power monitoring method and apparatus for multi-core platform |
CN101150698A (en) * | 2007-09-04 | 2008-03-26 | 浙江大学 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
CN101312519A (en) * | 2008-07-04 | 2008-11-26 | 深圳华为通信技术有限公司 | Data frame processing method and apparatus |
US8171187B2 (en) * | 2008-07-25 | 2012-05-01 | Freescale Semiconductor, Inc. | System and method for arbitrating between memory access requests |
CN104604241A (en) * | 2012-07-09 | 2015-05-06 | Vid拓展公司 | Power aware video decoding and streaming |
KR101692516B1 (en) * | 2012-07-09 | 2017-01-03 | 브이아이디 스케일, 인크. | Power aware video decoding and streaming |
CN103596045A (en) * | 2012-08-14 | 2014-02-19 | 上海海德数据科技有限公司 | An energy-saving control method for a video code stream playing terminal |
CN103678247A (en) * | 2012-08-29 | 2014-03-26 | 三星电子株式会社 | Dynamic voltage frequency scaling method and apparatus |
US20150350656A1 (en) * | 2014-05-30 | 2015-12-03 | Qualcomm Innovation Center, Inc. | Dynamic video core clock and voltage scaling |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019091319A1 (en) * | 2017-11-07 | 2019-05-16 | 晶晨半导体(上海)股份有限公司 | Method for automatically testing processor |
US11415627B2 (en) | 2017-11-07 | 2022-08-16 | Amlogic (Shanghai) Co., Ltd. | Method for automatically testing processor |
CN112286338A (en) * | 2020-11-09 | 2021-01-29 | 维沃移动通信有限公司 | Chip control method, chip control device, electronic device, and storage medium |
CN112286338B (en) * | 2020-11-09 | 2023-05-05 | 维沃移动通信有限公司 | Chip control method, chip control device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107256078B (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220229482A1 (en) | Systems and methods for power outage protection of storage device | |
CN102819313B (en) | Operating method of terminal equipment and terminal equipment | |
CN103324270B (en) | A kind of mobile terminal and regulate the method for its cpu frequency | |
CN105677000A (en) | Dynamic voltage and frequency scaling system and method | |
CN104199784B (en) | A kind of data migration method and device based on classification storage | |
CN103037109B (en) | Multicore equipment energy consumption management method and device | |
CN107256078A (en) | A kind of method for regulating dynamic voltage frequency and device | |
CN104424156A (en) | Core processing method and device of processor and terminal | |
CN101135951A (en) | Data output apparatus, memory system, data output method, and data processing method | |
CN109723609A (en) | A kind of fault early warning method and system of paddle change system of wind turbines | |
CN106095047A (en) | A kind of control method and electronic equipment | |
CN104317542A (en) | Method and system for converting frequency of internal storage | |
CN105320246B (en) | A kind of information processing method and electronic equipment | |
CN106034182A (en) | Method, device and terminal for controlling electric quantity loss | |
CN105828421A (en) | Terminal and terminal power saving method | |
CN104699223A (en) | Terminal | |
CN110045951A (en) | A kind of developing instrument that neural network hardware low-power consumption customizes | |
CN104391564A (en) | Power consumption control method and device | |
CN101806890B (en) | Method for compressing, storing and decompressing focusing parameters synthesized by ultrasound beams and device for decompressing same | |
CN104618715A (en) | Method and device for obtaining minimal rate-distortion cost | |
CN114889677A (en) | Magnetic levitation partition dividing mode determining method, device and medium | |
CN105843363A (en) | Low-power optimization method and device for chip | |
CN109840858A (en) | A kind of wind power fluctuation clustering method and system based on Gaussian function | |
CN105262126A (en) | Coordinative control strategy method for wind storage system | |
CN104795072A (en) | Method and device for coding audio data |
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 |