CN106055070B - Terminal power consumption control method and device - Google Patents

Terminal power consumption control method and device Download PDF

Info

Publication number
CN106055070B
CN106055070B CN201610353096.9A CN201610353096A CN106055070B CN 106055070 B CN106055070 B CN 106055070B CN 201610353096 A CN201610353096 A CN 201610353096A CN 106055070 B CN106055070 B CN 106055070B
Authority
CN
China
Prior art keywords
frequency
cpu
target
application
run
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
Application number
CN201610353096.9A
Other languages
Chinese (zh)
Other versions
CN106055070A (en
Inventor
秦勇
孔志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610353096.9A priority Critical patent/CN106055070B/en
Publication of CN106055070A publication Critical patent/CN106055070A/en
Application granted granted Critical
Publication of CN106055070B publication Critical patent/CN106055070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency

Abstract

The invention discloses a kind of terminal power consumption control method and devices, belong to field of computer technology.The described method includes: obtaining the target identification of the target application in target application starting, the target application is the application of any one of specified third-party application;The target frequency of the corresponding CPU of the target identification, corresponding relationship of first corresponding relationship for record identification and the frequency of the CPU are obtained from preset first corresponding relationship;Instruction message is generated, the instruction message includes the target frequency of the CPU;The instruction message is sent to the CPU, the instruction message is used to indicate the CPU in the target application operational process, meets the target frequency according to the frequency that the instruction message controls the CPU.The present invention solves the problems, such as that the effect of power consumption control in the prior art is poor, improves the effect of power consumption control, is used for controlling terminal power consumption.

Description

Terminal power consumption control method and device
Technical field
The present invention relates to field of computer technology, in particular to a kind of terminal power consumption control method and device.
Background technique
With computer, handheld terminal it is universal, more and more users can select smart phone, Intelligent flat computer, Application in the terminals such as personal computer is surfed the Internet, is entertained or works.With the rapid development of terminal device technology, at multicore The application of device is managed, the hardware performance of terminal is become better and better, but the power consumption of terminal also increases with it, and leads to the battery durable of terminal Time shortens.
There is a kind of terminal power consumption control method in the prior art, this method is optimized by the system application to terminal, The power consumption of terminal is reduced under the premise of guaranteeing the hardware performance of terminal.
But due to other than system application, being also equipped with third-party application in terminal, and third-party application is in the mistake of exploitation Do not designed for specific terminal in journey, thus terminal in conjunction with third-party application after power consumption compatibility it is poor, terminal When running third-party application, power consumption of terminal is larger, and therefore, the effect of power consumption control is poor.
Summary of the invention
Effect in order to solve the problems, such as power consumption control in the prior art is poor, and the present invention provides a kind of power consumption of terminal controls Method and device processed.The technical solution is as follows:
In a first aspect, providing a kind of terminal power consumption control method, which comprises
In target application starting, the target identification of the target application is obtained, the target application is specified third Any one of Fang Yingyong application;
The corresponding central processing unit of the target identification (English: Central is obtained from preset first corresponding relationship Processing Unit;Target frequency referred to as: CPU), first corresponding relationship are used for the frequency of record identification and the CPU The corresponding relationship of rate;
Instruction message is generated, the instruction message includes the target frequency of the CPU;
The instruction message is sent to the CPU, the instruction message is used to indicate the CPU and transports in the target application During row, the target frequency is met according to the frequency that the instruction message controls the CPU.
Optionally, described that the corresponding central processor CPU of the target identification is obtained from preset first corresponding relationship Target frequency, comprising:
The maximum frequency and the CPU of the corresponding CPU of the target identification are obtained from first corresponding relationship Minimum frequency, the minimum frequency of the maximum frequency of the CPU and the CPU are according to when the target application not running When starting number of run and the target application of the CPU in n frequency point under the frequency of each frequency point instruction run preset duration The CPU terminates what number of run determined under the frequency of each frequency point instruction, and the n is greater than or equal to 1;
The frequency in frequency range that the maximum frequency and the minimum frequency are constituted is as the target frequency.
Optionally, the target identification is the title of the target application.
Optionally, at least a kind of third-party application is installed in the terminal,
The specified third-party application are as follows: in every class application of at least a kind of third-party application, access times are Preceding m of third-party application, the m are greater than 1.
Optionally, the m is equal to 10.
Second aspect, provides a kind of power consumption of terminal control device, and described device includes:
First obtains module, for obtaining the target identification of the target application, the target in target application starting It is applied using for any one of specified third-party application;
Second obtains module, for obtaining the corresponding central processing of the target identification from preset first corresponding relationship The target frequency of device CPU, corresponding relationship of first corresponding relationship for record identification and the frequency of the CPU;
Generation module, for generating instruction message, the instruction message includes the target frequency of the CPU;
Sending module, for sending the instruction message to the CPU, the instruction message is used to indicate the CPU and exists In the target application operational process, the target frequency is met according to the frequency that the instruction message controls the CPU.
Optionally, described second module is obtained, is also used to:
The maximum frequency and the CPU of the corresponding CPU of the target identification are obtained from first corresponding relationship Minimum frequency, the minimum frequency of the maximum frequency of the CPU and the CPU are according to when the target application not running When starting number of run and the target application of the CPU in n frequency point under the frequency of each frequency point instruction run preset duration The CPU terminates what number of run determined under the frequency of each frequency point instruction, and the n is greater than or equal to 1;
The frequency in frequency range that the maximum frequency and the minimum frequency are constituted is as the target frequency.
Optionally, the target identification is the title of the target application.
Optionally, at least a kind of third-party application is installed in the terminal,
The specified third-party application are as follows: in every class application of at least a kind of third-party application, access times are Preceding m of third-party application, the m are greater than 1.
Optionally, the m is equal to 10.
The present invention provides a kind of terminal power consumption control method and device, this method can be from preset first corresponding relationship The target frequency of the middle corresponding CPU of target identification for obtaining target application, and send the target frequency including CPU to CPU and indicate Message meets target frequency according to the frequency that instruction message controls CPU to realize CPU in target application operational process, Compared to the prior art, power consumption of terminal is reduced, this improves the effects of power consumption control.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of terminal power consumption control method provided in an embodiment of the present invention;
Fig. 2-1 is the flow chart of another terminal power consumption control method provided in an embodiment of the present invention;
Fig. 2-2 is the process of the maximum frequency of determining CPU provided in an embodiment of the present invention a kind of and the minimum frequency of CPU Figure;
Fig. 3 is a kind of structural schematic diagram of power consumption of terminal control device provided in an embodiment of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of terminal power consumption control methods, as shown in Figure 1, this method comprises:
Step 101, in target application starting, obtain the target identification of target application, which be the specified Any one of tripartite's application application.
Step 102, the target frequency that the corresponding CPU of target identification is obtained from preset first corresponding relationship, this first Corresponding relationship of the corresponding relationship for record identification and the frequency of CPU.
Step 103 generates instruction message, which includes the target frequency of CPU.
Step 104 sends instruction message to CPU, which is used to indicate CPU in target application operational process, Meet target frequency according to the frequency that instruction message controls CPU.
In conclusion terminal power consumption control method provided in an embodiment of the present invention, since this method can be from preset The target frequency of the corresponding CPU of target identification of target application is obtained in one corresponding relationship, and sends the mesh including CPU to CPU Frequency instruction message is marked, to realize CPU in target application operational process, is accorded with according to the frequency that instruction message controls CPU Closing target frequency reduces power consumption of terminal compared to the prior art, and this improves the effects of power consumption control.
The embodiment of the invention provides another terminal power consumption control methods, as shown in Fig. 2-1, this method comprises:
Step 201, target application starting when, obtain the target identification of target application.
The target application is the application of any one of specified third-party application.It is installed in terminal in the embodiment of the present invention There are at least a kind of third-party application, the specified third-party application are as follows: in every class application of at least a kind of third-party application, use Number is preceding m of third-party application, which is greater than 1.Exemplary, m can be equal to 10.Wherein, third-party application is usually basis What functional attributes were classified, for example, can be divided into chat class application, music class application, study class is applied and game class application Deng.Specified third-party application can be the third-party application that access times are top 10 in types of applications.
Optionally, target identification can be the title of target application.In addition, target identification can also be the body of target application Part identification number (English: IDentity;Referred to as: ID), the embodiment of the present invention is not construed as limiting the concrete form of target identification.
The minimum frequency of step 202, the maximum frequency that the corresponding CPU of target identification is obtained from the first corresponding relationship and CPU Rate.
First corresponding relationship is used for the corresponding relationship of record identification and the frequency of CPU, the CPU recorded in the first corresponding relationship Frequency may include the maximum frequency of CPU and the minimum frequency of CPU.First corresponding relationship can be by static list come real It is existing, as shown in table 1.In table 1, the title for being identified as application of application, the maximum frequency using the corresponding CPU of A is 960MHz (million Hertz), the minimum frequency using the corresponding CPU of A is also 960MHz, corresponding with application A using the maximum frequency of the corresponding CPU of A CPU minimum frequency it is equal, be 960MHz.Maximum frequency using the corresponding CPU of B is 960MHz, corresponding using B The minimum frequency of CPU is 500MHz.Further, since the minimum of the maximum frequency CPU corresponding with application A using the corresponding CPU of A Frequency is equal, it is possible to using one frequency of record at the frequency of the corresponding CPU of A in table 1.
In addition, each application can be written in the static list in the way of round-robin queue, so, answered a certain When with operation, this method can the quick search static list, obtain the frequency for applying corresponding CPU.
Table 1
Optionally, the maximum frequency of CPU and the minimum frequency of CPU are according to CPU when target application not running in n frequency point In the instruction of each frequency point frequency under starting number of run and CPU refers in each frequency point when target application operation preset duration Terminate what number of run determined under the frequency shown, n is greater than or equal to 1.It is exemplary, as shown in Fig. 2-2, determine the maximum of CPU The process of the minimum frequency of frequency and CPU can be with are as follows:
Step 221 obtains starting number of run of the CPU in n frequency point under the frequency of each frequency point instruction.Execute step 222。
Frequency point refers to the number of frequency.Table 2 shows the frequency of each frequency point instruction in 5 frequency points, as shown in table 2, The frequency of frequency point C0 instruction is 500MHz, and the frequency of frequency point C2 instruction is 960MHz, and the frequency of frequency point C5 instruction is 1400MHz.
Table 2
Frequency point C0 C1 C2 C3 C4 C5
Frequency 500MHz 800MHz 960MHz 1120MHz 1300MHz 1400MHz
This method obtains starting number of run of the CPU in n frequency point under the frequency of each frequency point instruction in advance.Specifically , node/sys/devices/system/cpu/cpu0/cpufreq/stats/ can be read under the interface terminal i dle The value of time_in_state obtains starting number of run of the CPU in n frequency point under the frequency of each frequency point instruction.Wherein, The interface idle be one can edit, run, browsing and the graphic user interface of debugging routine (English: Graphical User Interface;Referred to as: GUI).By taking table 2 as an example, it is assumed that the CPU of acquisition rising under the frequency (i.e. 500MHz) that frequency point C0 is indicated Beginning number of run C0s is that starting number of run C1s of 20, the CPU under the frequency (i.e. 800MHz) that frequency point C1 is indicated is 30, CPU Starting number of run C2s under the frequency (i.e. 960MHz) of frequency point C2 instruction be the frequency that indicates in frequency point C3 of 24, CPU (i.e. Starting number of run C3s under 1120MHz) is starting operation of 35, the CPU under the frequency (i.e. 1300MHz) that frequency point C4 is indicated Number C4s is that starting number of run C5s of 15, the CPU under the frequency (i.e. 1400MHz) that frequency point C5 is indicated is 40.
Step 222, when target application runs preset duration, obtain end of the CPU under the frequency that each frequency point indicates Number of run.Execute step 223.
Optionally, preset duration is 30 minutes.
After obtaining starting number of run of the CPU in n frequency point under the frequency of each frequency point instruction, operational objective application is pre- If duration, such as 30 minutes, then when target application is run 30 minutes, knot of the CPU under the frequency that each frequency point indicates is counted Beam number of run.
By taking table 2 as an example, it is assumed that when the target application is run 30 minutes, the frequency that the CPU of acquisition is indicated in frequency point C0 is (i.e. End number of run C0e under 500MHz) is end operation time of 25, the CPU under the frequency (i.e. 800MHz) that frequency point C1 is indicated It is 30, CPU in frequency point C3 that number C1e, which is end number of run C2e of 40, the CPU under the frequency (i.e. 960MHz) that frequency point C2 is indicated, End number of run C3e under the frequency (i.e. 1120MHz) of instruction is the frequency (i.e. 1300MHz) that 48, CPU is indicated in frequency point C4 Under end number of run C4e be end number of run C5e of 23, the CPU under the frequency (i.e. 1400MHz) that frequency point C5 is indicated be 55。
Step 223 obtains the corresponding n number of run difference of n frequency point.Execute step 224.
The corresponding number of run difference of each frequency point be end number of run of the CPU under the frequency that each frequency point indicate and The difference of starting number of run of the CPU under the frequency of corresponding frequency point instruction.
By taking table 2 as an example, the corresponding number of run difference C0x of the frequency point C0 of acquisition be the frequency that indicates in frequency point C0 of CPU (i.e. The difference of starting number of run C0s of the end number of run C0e and CPU under the frequency that frequency point C0 is indicated under 500MHz), by In C0e be 25, C0s 20, so C0x be 5.Likewise, the corresponding number of run difference C1x of frequency point C1 be 10, C2 pairs of frequency point The number of run difference C2x answered is 6, and the corresponding number of run difference C3x of frequency point C3 is 13, and the corresponding number of run of frequency point C4 is poor Value C4x is 8, and the corresponding number of run difference C5x of frequency point C5 is 15.
Maximum value in n step 224, acquisition number of run difference.Execute step 225.
By taking table 2 as an example, the maximum value in 5 number of run differences of acquisition is the corresponding number of run difference of frequency point C5 C5x (C5x 15).
Step 225 judges that maximum value accounts for the specific gravity of n number of run difference and whether is greater than preset value.When maximum value accounts for n When the specific gravity of number of run difference is greater than preset value, step 226 is executed, when maximum value accounts for the specific gravity of n number of run difference not When greater than preset value, step 227 is executed.
Exemplary, preset value can be 0.7.By taking table 2 as an example, judge that the corresponding number of run difference C5x of frequency point C5 accounts for 5 Whether the specific gravity of number of run difference is greater than 0.7.Specifically, being transported according to the corresponding number of run difference C5x of frequency point C5 and 5 Row number difference, the specific gravity that available C5x accounts for 5 number of run differences are0.26 is small In 0.7, so executing step 227.Assuming that it is 0.8 that C5x, which is calculated, to account for the specific gravity of 5 number of run differences, then follow the steps 226。
Step 226, using the corresponding frequency of maximum value as the maximum frequency of the minimum frequency of CPU and CPU.
If the specific gravity that the maximum value in n number of run difference accounts for n number of run difference is greater than preset value, will most It is worth corresponding frequency greatly while is used as the minimum frequency of CPU and the maximum frequency of CPU.At this point, the minimum frequency and CPU of CPU Maximum frequency is equal, and the minimum frequency of CPU and the maximum frequency of CPU are used for CPU in target application operational process to the frequency of CPU Rate is controlled.When the specific gravity that maximum value accounts for n number of run difference is greater than preset value, it is believed that corresponding frequency point is mesh Mark applies most suitable operation frequency point, and the corresponding frequency of maximum value is the most suitable operation frequency of CPU in target application operational process Rate.
Second largest value in n step 227, acquisition number of run difference.Execute step 228.
If the maximum value in n number of run difference accounts for the specific gravity of n number of run difference no more than preset value, obtain Take the second largest value in n number of run difference.
It is equal to 0.26 with the specific gravity that the corresponding number of run difference C5x of step 225 intermediate-frequeney point C5 accounts for 5 number of run differences For, it is less than preset value (such as 0.7) due to 0.26, so the second largest value in 5 number of run differences can be obtained, i.e. C3 pairs of frequency point The number of run difference C3x (C3x 13) answered.
It is exemplary, it can be obtained using divide and conquer in the maximum value and n number of run difference in n number of run difference Second largest value.Wherein, the design philosophy of divide and conquer is to be difficult to the big problem directly solved for one, be divided into some scales compared with Small same problem solves.Divide and conquer includes sort algorithm, such as quick sorting algorithm and MERGING/SORTING ALGORITHM.Using dividing and ruling Method, which obtains maximum value and the process of second largest value, can refer to the prior art, and details are not described herein.
Step 228, using the larger frequency in the corresponding frequency of maximum value and the corresponding frequency of second largest value as the maximum of CPU Frequency, and using the relatively small frequency in the corresponding frequency of maximum value and the corresponding frequency of second largest value as the minimum frequency of CPU.
After obtaining the second largest value in maximum value and n number of run difference in n number of run difference, it can incite somebody to action Maximum frequency of the larger frequency as CPU in the corresponding frequency of maximum value and the corresponding frequency of second largest value, and by maximum value pair Minimum frequency of the relatively small frequency in the corresponding frequency of frequency and second largest value answered as CPU, in order to obtain the target frequency of CPU Rate.With the maximum value C5x that step 224 obtains, for the second largest value C3x obtained in step 227, since second largest value C3x is corresponding Frequency is 1120MHz, and the corresponding frequency of maximum value C5x is 1400MHz, then can using 1400MHz as the maximum frequency of CPU, Minimum frequency of the 1120MHz as CPU.When maximum value accounts for the specific gravity of n number of run difference no more than preset value, in target Using in operational process, the maximum frequency and minimum frequency of CPU is unequal.
Frequency in step 203, the frequency range for constituting maximum frequency and minimum frequency is as target frequency.
Assuming that the maximum frequency of the CPU of step 202 determination is 1400MHz, minimum frequency 1120MHz, then can incite somebody to action Target frequency of the frequency as CPU in 1120MHz~1400MHz.Assuming that the maximum frequency for the CPU that step 202 determines is 960MHz, minimum frequency 500MHz, then can be using the frequency in 500MHz~960MHz as the target frequency of CPU.It is false If step 202 determine CPU maximum frequency be 960MHz, minimum frequency is also 960MHz, then can using 960MHz as The target frequency of CPU.
Step 204 generates instruction message.
The instruction message includes the target frequency of CPU.Finger can be generated after the target frequency of CPU has been determined in this method Show message, which includes the target frequency of CPU, such as 960MHz.
Step 205 sends instruction message to CPU.
The instruction message is used to indicate CPU in target application operational process, is accorded with according to the frequency that instruction message controls CPU Close target frequency.
In target application operation, this method issues the target frequency of CPU, so that CPU enters specific performance and power consumption Balanced mode, and then effectively reduce power consumption of terminal, improve the effect of power consumption control.
It should be noted that terminal power consumption control method provided in an embodiment of the present invention can be applied to the operation system of terminal System, exemplary, which can be Android operation system, or other operating systems, the embodiment of the present invention is to this Without limitation.The terminal power consumption control method can be applied to smart machine field, and smart machine includes but is not limited to intelligent hand Machine.
It should be added that in the prior art, with the rapid development of terminal device technology, built-in terminal it is hard Part performance is become better and better, but the problem of bringing therewith is that the power consumption of terminal sharply increases, and the time that terminal is used is increasingly Short, the embodiment of the present invention is directed to terminal operating third-party application, causes power consumption of terminal to consume more serious problem, provides one kind Terminal power consumption control method, this method determine that the use of application loads according to the operating status of application, this is using load with CPU's Frequency, load correspond, and chained list (i.e. static list) is written in multiple applications by this method, make the corresponding CPU of each application Target frequency.This method combines application with the chirping strategies of CPU, for different applications, carries out to the frequency of CPU real When adjust, ensure that this method is not on the basis of increasing terminal hardware cost, by more using smooth operation at the terminal Change software to solve the problems, such as that power consumption of terminal is larger, reduce power consumption of terminal while guaranteeing the hardware performance of terminal, extends The time that terminal is used, and can allow terminal maximum power saving.
It should also be noted that, sequencing the step of terminal power consumption control method provided in an embodiment of the present invention can be with Appropriate adjustment is carried out, step according to circumstances can also accordingly be increased and decreased.Anyone skilled in the art is at this It invents in the technical scope disclosed, the method that can readily occur in variation should be covered by the protection scope of the present invention, therefore It repeats no more.
In conclusion terminal power consumption control method provided in an embodiment of the present invention, since this method can be from preset The target frequency of the corresponding CPU of target identification of target application is obtained in one corresponding relationship, and sends the mesh including CPU to CPU Frequency instruction message is marked, to realize CPU in target application operational process, is accorded with according to the frequency that instruction message controls CPU Target frequency is closed, compared to the prior art, power consumption of terminal is reduced while guaranteeing the hardware performance of terminal, extends terminal The time used, and can allow the maximum power saving of terminal, this improves the effects of power consumption control.
The embodiment of the invention provides a kind of power consumption of terminal control devices 300, as shown in figure 3, the device 300 includes:
First obtains module 301, for obtaining the target identification of target application, which answers in target application starting It is applied with for any one of specified third-party application.
Second obtains module 302, for obtaining the corresponding central processing of target identification from preset first corresponding relationship The target frequency of device CPU, corresponding relationship of first corresponding relationship for record identification and the frequency of CPU.
Generation module 303, for generating instruction message, which includes the target frequency of CPU.
Sending module 304, for sending instruction message to CPU, which is used to indicate CPU and runs in target application In the process, target frequency is met according to the frequency that instruction message controls CPU.
In conclusion power consumption of terminal control device provided in an embodiment of the present invention, since the device can be from preset The target frequency of the corresponding CPU of target identification of target application is obtained in one corresponding relationship, and sends the mesh including CPU to CPU Frequency instruction message is marked, to realize CPU in target application operational process, is accorded with according to the frequency that instruction message controls CPU Closing target frequency reduces power consumption of terminal compared to the prior art, and this improves the effects of power consumption control.
Optionally, second module 302 is obtained, is also used to:
The maximum frequency of the corresponding CPU of target identification and the minimum frequency of CPU are obtained from the first corresponding relationship, CPU's The minimum frequency of maximum frequency and CPU are the frequencies of each frequency point instruction in n frequency point according to CPU when target application not running Under starting number of run and when target application operation preset duration end of the CPU under the frequency that each frequency point indicate run What number determined, n is greater than or equal to 1;
The frequency in frequency range that maximum frequency and minimum frequency are constituted is as target frequency.
Optionally, target identification is the title of target application.
Optionally, at least a kind of third-party application, specified third-party application are installed are as follows: at least a kind of third in terminal In every class application of Fang Yingyong, access times are preceding m of third-party application, and m is greater than 1.Exemplary, m is equal to 10.
Optionally, the preset duration of target application operation can be 30 minutes.
In conclusion power consumption of terminal control device provided in an embodiment of the present invention, since the device can be from preset The target frequency of the corresponding CPU of target identification of target application is obtained in one corresponding relationship, and sends the mesh including CPU to CPU Frequency instruction message is marked, to realize CPU in target application operational process, is accorded with according to the frequency that instruction message controls CPU Target frequency is closed, compared to the prior art, power consumption of terminal is reduced while guaranteeing the hardware performance of terminal, extends terminal The time used, and can allow the maximum power saving of terminal, this improves the effects of power consumption control.
The embodiment of the invention also provides a kind of terminals, including power consumption of terminal control device shown in Fig. 3.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of module, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of terminal power consumption control method, which is characterized in that the described method includes:
In target application starting, the target identification of the target application is obtained, the target application is that specified third party answers With any one of application;
The maximum frequency of the corresponding CPU of the target identification and the minimum frequency of the CPU, institute are obtained from the first corresponding relationship State corresponding relationship of first corresponding relationship for record identification and the frequency of the CPU;
The frequency in frequency range that the maximum frequency and the minimum frequency are constituted is as the target frequency;
Instruction message is generated, the instruction message includes the target frequency of the CPU;
The instruction message is sent to the CPU, the instruction message is used to indicate the CPU and ran in the target application Cheng Zhong meets the target frequency according to the frequency that the instruction message controls the CPU;
Wherein it is determined that the process of the minimum frequency of the maximum frequency of the CPU and the CPU includes:
Starting number of run of the CPU in n frequency point under the frequency of each frequency point instruction is obtained, the n is greater than or equal to 1,
When the target application runs preset duration, end of the CPU under the frequency of each frequency point instruction is obtained Number of run,
The corresponding n number of run difference of the n frequency point is obtained,
The maximum value in the n number of run difference is obtained,
Judge that the maximum value accounts for the specific gravity of the n number of run difference and whether is greater than preset value, when the maximum value accounts for institute When stating the specific gravity of n number of run difference greater than the preset value, most using the corresponding frequency of the maximum value as the CPU The maximum frequency of small frequency and the CPU,
When the maximum value accounts for the specific gravity of the n number of run difference no more than the preset value, the n operation is obtained Second largest value in number difference makees the larger frequency in the corresponding frequency of the maximum value and the corresponding frequency of the second largest value For the maximum frequency of the CPU, by the relatively small frequency in the corresponding frequency of the maximum value and the corresponding frequency of the second largest value Minimum frequency as the CPU.
2. the method according to claim 1, wherein
The target identification is the title of the target application.
3. the method according to claim 1, wherein be equipped at least a kind of third-party application in the terminal,
The specified third-party application are as follows: in every class application of at least a kind of third-party application, access times are first m Third-party application, the m be greater than 1.
4. according to the method described in claim 3, it is characterized in that,
The m is equal to 10.
5. a kind of power consumption of terminal control device, which is characterized in that described device includes:
First obtains module, for obtaining the target identification of the target application, the target application in target application starting For the application of any one of specified third-party application;
Second obtains module, for obtaining maximum frequency and the institute of the corresponding CPU of the target identification from the first corresponding relationship The minimum frequency of CPU is stated, corresponding relationship of first corresponding relationship for record identification and the frequency of the CPU will be described The frequency in frequency range that maximum frequency and the minimum frequency are constituted is as the target frequency;
Generation module, for generating instruction message, the instruction message includes the target frequency of the CPU;
Sending module, for sending the instruction message to the CPU, the instruction message is used to indicate the CPU described In target application operational process, the target frequency is met according to the frequency that the instruction message controls the CPU;
Wherein, described second module is obtained, for obtaining the CPU rising under the frequency of each frequency point instruction in n frequency point Beginning number of run, the n are greater than or equal to 1, when the target application runs preset duration, obtain the CPU described every End number of run under the frequency of a frequency point instruction, obtains the corresponding n number of run difference of the n frequency point, obtains institute The maximum value in n number of run difference is stated, judges that the maximum value accounts for the specific gravity of the n number of run difference and whether is greater than Preset value, when the specific gravity that the maximum value accounts for the n number of run difference is greater than the preset value, by the maximum value pair The frequency answered is as the minimum frequency of the CPU and the maximum frequency of the CPU, when the maximum value accounts for the n operation time When the specific gravity of number difference is not more than the preset value, the second largest value in the n number of run difference is obtained, by the maximum value Maximum frequency of the larger frequency as the CPU in corresponding frequency and the corresponding frequency of the second largest value, by the maximum It is worth minimum frequency of the relatively small frequency in corresponding frequency and the corresponding frequency of the second largest value as the CPU.
6. device according to claim 5, which is characterized in that
The target identification is the title of the target application.
7. device according to claim 5, which is characterized in that at least a kind of third-party application is installed in the terminal,
The specified third-party application are as follows: in every class application of at least a kind of third-party application, access times are first m Third-party application, the m be greater than 1.
8. device according to claim 7, which is characterized in that
The m is equal to 10.
CN201610353096.9A 2016-05-24 2016-05-24 Terminal power consumption control method and device Active CN106055070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610353096.9A CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610353096.9A CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Publications (2)

Publication Number Publication Date
CN106055070A CN106055070A (en) 2016-10-26
CN106055070B true CN106055070B (en) 2019-08-09

Family

ID=57174477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610353096.9A Active CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Country Status (1)

Country Link
CN (1) CN106055070B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575B (en) * 2016-12-20 2021-05-04 北京安云世纪科技有限公司 Mobile terminal and method and device for loading and running application thereof
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment
CN107729145A (en) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 Application program progress control method and device
CN107831887B (en) * 2017-12-21 2021-03-23 青岛海信移动通信技术股份有限公司 Application starting method and device
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2900997B2 (en) * 1996-11-06 1999-06-02 富士通株式会社 Method and apparatus for controlling power consumption of a display unit, a display system including the same, and a storage medium storing a program for realizing the same
CN103475790B (en) * 2013-09-06 2016-03-30 中国科学院计算技术研究所 A kind of intelligent mobile terminal power consumption management
CN104239153B (en) * 2014-09-29 2018-09-11 三星电子(中国)研发中心 The method and apparatus of multi-core CPU load balancing
CN104794005A (en) * 2015-03-23 2015-07-22 北京畅游天下网络技术有限公司 Method and device for optimizing CPU running frequencies

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FreeBSD为powerd设置cpu最小工作频率;网页教学网;《网页教学网》;20090627;正文第1、2、6、7段 *

Also Published As

Publication number Publication date
CN106055070A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
US10775873B2 (en) Performing power management in a multicore processor
KR20190125426A (en) Method, apparatus and system for blockchain consensus
Ibrahim et al. Governing energy consumption in Hadoop through CPU frequency scaling: An analysis
Soyata et al. Cloud-vision: Real-time face recognition using a mobile-cloudlet-cloud acceleration architecture
EP2674863B1 (en) Multi-cluster processing system and method of operating the same
US8532706B2 (en) Techniques to manage a subscriber identity module for a mobile wireless device
WO2018194845A1 (en) Queue management for direct memory access
US5774704A (en) Apparatus and method for dynamic central processing unit clock adjustment
Yang et al. An approximation algorithm for energy-efficient scheduling on a chip multiprocessor
US9910481B2 (en) Performing power management in a multicore processor
US9378536B2 (en) CPU/GPU DCVS co-optimization for reducing power consumption in graphics frame processing
US20150058867A1 (en) Method, an electronic device, and a storage medium for auto-cleaning up applications in a background
CN104781756B (en) The power rating of management processor
CN103092316B (en) Server power consumption management system based on data mining
Zhou et al. Invasive weed optimization algorithm for optimization no-idle flow shop scheduling problem
US20180295034A1 (en) Techniques for analytics-driven hybrid concurrency control in clouds
CN104239153B (en) The method and apparatus of multi-core CPU load balancing
CN103019842B (en) Background program finishing method and system
TWI342498B (en) Multi-processor system and performance enhancement method thereof
CN102566739B (en) Multicore processor system and dynamic power management method and control device thereof
US10689794B2 (en) Automated selection of settings for an ironing device
JP2015043225A (en) Power supply management method and device for network access module
CN103092342B (en) The disposal route of mobile terminal and device
CN103365726B (en) A kind of method for managing resource towards GPU cluster and system
TWI425422B (en) Multi-cpu domain mobile electronic device and operation method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant