CN103226382B - Application operation method and electronic equipment - Google Patents
Application operation method and electronic equipment Download PDFInfo
- Publication number
- CN103226382B CN103226382B CN201210021360.0A CN201210021360A CN103226382B CN 103226382 B CN103226382 B CN 103226382B CN 201210021360 A CN201210021360 A CN 201210021360A CN 103226382 B CN103226382 B CN 103226382B
- Authority
- CN
- China
- Prior art keywords
- frequency
- preset frequency
- application
- processor
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a kind of application operation method, be applied to electronic equipment, described electronic equipment comprises processor and battery.Described method comprises: determine the first application; The first preset frequency is determined according to predetermined policy; And described processor with described first preset frequency for start frequency of operation, run first application; Wherein, described first preset frequency is lower than the maximum operation frequency of described processor.
Description
Technical field
The present invention relates to the field of electronic equipment, and be specifically related to a kind of electronic equipment and the application operation method being applied to this electronic equipment.
Background technology
In recent years, along with the development of electronic technology, the running frequency of the processor (such as central processing unit CPU) used in the electronic equipment of such as mobile phone and computing machine is more and more higher, thus provides the calculating and processing power that constantly strengthen.But along with the raising of the running frequency of processor, the power consumption of processor also increases thereupon, cause the battery life of the electronic equipment of such as mobile phone and computing machine to shorten, thus limit portability and the practicality of electronic equipment.
At present, in order to reduce the power consumption of processor, normally used method makes processor support frequency reducing use.Existing drop processor frequency method normally carrys out frequency reducing according to the type of application.Such as, for the processor of smart mobile phone, as when running talk application, processor starts application with lower frequency and runs, and when applying game application, processor starts application with upper frequency and runs.But such drop processor frequency method is not considered to apply actual load needs, such as, for 3D game and common 2D game, processor all starts application with high-frequency and runs, and in fact common 2D game does not need with high-frequency startup optimization.In addition, user also cannot as required active accommodation processor for the startup optimization frequency of application-specific.Therefore, desirable to provide a kind of application operation method being applied to electronic equipment, make it possible to the startup frequency of operation determining for application based on predetermined policy, to carry out the frequency of operation of dynamic conditioning processor according to the actual loading of user's request and application thus to reduce the power consumption of electronic equipment.
Summary of the invention
According to the embodiment of the present invention, provide a kind of application operation method, be applied to electronic equipment, described electronic equipment comprises processor and battery, and described method comprises: determine the first application; The first preset frequency is determined according to predetermined policy; And described processor with described first preset frequency for start frequency of operation, run first application; Wherein, described first preset frequency is lower than the maximum operation frequency of described processor.
In addition, according to the application operation method of the embodiment of the present invention, wherein determine that the first preset frequency comprises according to predetermined policy: determine described first preset frequency according to described first application.
In addition, according to the application operation method of the embodiment of the present invention, wherein determine that the first preset frequency comprises according to predetermined policy: the battery information gathering described battery; Obtain described battery information and frequency of operation corresponding relation; And determine described first preset frequency corresponding with described battery information according to described battery information and described corresponding relation.
In addition, according to the application operation method of the embodiment of the present invention, wherein said first application comprises leader and funtion part, and described foundation predetermined policy determines that the first preset frequency comprises: described leader determines the first preset frequency according to predetermined policy; Described processor for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processor for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
In addition, according to the application operation method of the embodiment of the present invention, wherein said leader determines that the first preset frequency comprises: described leader revises the first predetermined value of the first register by interface; Described processor reads described first predetermined value in described first register; And operating voltage is set to the predetermined voltage corresponding with described first predetermined value by described processor, wherein, described first preset frequency corresponds to described predetermined voltage.
In addition, according to the application operation method of the embodiment of the present invention, wherein said leader determines that the first preset frequency comprises: described leader revises the second predetermined value of the second register by interface; Described processor reads described second predetermined value in described second register; And frequency of operation and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described processor.
In addition, according to the application operation method of the embodiment of the present invention, wherein determine that the first preset frequency comprises according to predetermined policy: the instruction receiving user's input of described electronic equipment; And the frequency corresponding with described instruction is defined as described first preset frequency.
In addition, according to the application operation method of the embodiment of the present invention, wherein determine that the first preset frequency comprises according to predetermined policy: obtain and apply corresponding second frequency with described first; Obtain the 3rd frequency of current processor; More described second frequency and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
In addition, according to the application operation method of the embodiment of the present invention, also comprise: the status information gathering described electronic equipment; Judge whether described status information meets predetermined condition; When a predetermined condition is satisfied, the corresponding relation of the frequency of operation of described status information and described processor is obtained; And according to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.
According to another embodiment of the present invention, provide a kind of electronic equipment, comprising: application determining unit, for determining the first application; Frequency determinative elements, for determining the first preset frequency according to predetermined policy; And processing unit, for described first preset frequency for start frequency of operation, run first application; Wherein, described first preset frequency is lower than the maximum operation frequency of described processing unit.
In addition, according to the electronic equipment of the embodiment of the present invention, wherein said frequency determinative elements determines described first preset frequency according to described first application.
In addition, according to the electronic equipment of the embodiment of the present invention, also comprise: battery information collecting unit, for gathering the battery information of described electronic equipment; Corresponding relation determining unit, for obtaining described battery information and frequency of operation corresponding relation; Wherein, described frequency determinative elements determines described first preset frequency corresponding with described battery information according to described battery information and described corresponding relation.
In addition, according to the electronic equipment of the embodiment of the present invention, wherein said first application comprises leader and funtion part, wherein, according to predetermined policy, described frequency determinative elements determines that the first preset frequency comprises: described frequency determinative elements loads described leader, to determine the first preset frequency according to predetermined policy; And described processing unit for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processing unit for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
In addition, according to the electronic equipment of the embodiment of the present invention, also comprise the first register cell, wherein said frequency determinative elements loads described leader, to determine that the first preset frequency comprises according to predetermined policy: described leader revises the first predetermined value of described first register cell by interface; Described frequency determinative elements reads described first predetermined value in described first register cell; And the operating voltage of described processing unit is set to the predetermined voltage corresponding with described first predetermined value by described frequency determinative elements, wherein, described first preset frequency corresponds to described predetermined voltage.
In addition, according to the electronic equipment of the embodiment of the present invention, also comprise the second register cell, wherein said frequency determinative elements loads described leader, to determine that the first preset frequency comprises according to predetermined policy: described leader revises the first predetermined value of described first register cell by interface; Described frequency determinative elements reads described second predetermined value in described second register cell; And the frequency of operation of described processing unit and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described frequency determinative elements.
In addition, according to the electronic equipment of the embodiment of the present invention, also comprise input block, according to predetermined policy, wherein said frequency determinative elements determines that the first preset frequency comprises: the instruction being received user's input of described electronic equipment by described input block; And the frequency corresponding with described instruction is defined as described first preset frequency by described frequency determinative elements.
In addition, according to the electronic equipment of the embodiment of the present invention, according to described first application, wherein said frequency determinative elements determines that described first preset frequency comprises: described frequency determinative elements obtains and applies corresponding second frequency with described first; Described frequency determinative elements obtains the 3rd frequency of current described processing unit; The more described second frequency of described frequency determinative elements and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
In addition, according to the electronic equipment of the embodiment of the present invention, also comprise status information capture unit, for gathering the status information of described electronic equipment, wherein, described frequency determinative elements judges whether described status information meets predetermined condition; When a predetermined condition is satisfied, described frequency determinative elements obtains the corresponding relation of the frequency of operation of described status information and described processing unit; And described processing unit is according to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.
According to still another embodiment of the invention, provide a kind of electronic equipment, comprising: processor; And battery, wherein, the first application determined by described processor, determines the first preset frequency according to predetermined policy, and with described first preset frequency for starting frequency of operation, runs the first application; Wherein, described first preset frequency is lower than the maximum operation frequency of described processor.
In addition, according to the electronic equipment of the embodiment of the present invention, according to predetermined policy, wherein said processor determines that the first preset frequency comprises: described processor determines described first preset frequency according to described first application.
In addition, according to the electronic equipment of the embodiment of the present invention, according to predetermined policy, wherein said processor determines that the first preset frequency comprises: the battery information gathering described battery; Obtain described battery information and frequency of operation corresponding relation; And determine described first preset frequency corresponding with described battery information according to described battery information and described corresponding relation.
In addition, according to the electronic equipment of the embodiment of the present invention, wherein said first application comprises leader and funtion part, and according to predetermined policy, described processor determines that the first preset frequency comprises: load described leader, to determine the first preset frequency according to predetermined policy; Described processor for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processor for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
In addition, according to the electronic equipment of the embodiment of the present invention, described leader is wherein loaded, to determine that the first preset frequency comprises: described leader revises the first predetermined value of the first register by interface; Described processor reads described first predetermined value in described first register; And operating voltage is set to the predetermined voltage corresponding with described first predetermined value by described processor, wherein, described first preset frequency corresponds to described predetermined voltage.
In addition, according to the electronic equipment of the embodiment of the present invention, described leader is wherein loaded, to determine that the first preset frequency comprises: described leader revises the second predetermined value of the second register by interface; Described processor reads described second predetermined value in described second register; And frequency of operation and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described processor.
In addition, according to the electronic equipment of the embodiment of the present invention, according to predetermined policy, described processor determines that the first preset frequency comprises: described processor receives the instruction of user's input of described electronic equipment; And the frequency corresponding with described instruction is defined as described first preset frequency.
In addition, according to the electronic equipment of the embodiment of the present invention, according to predetermined policy, described processor determines that the first preset frequency comprises: described processor obtains and applies corresponding second frequency with described first, obtain the 3rd frequency of current processor, more described second frequency and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
In addition, according to the electronic equipment of the embodiment of the present invention, wherein, described processor gathers the status information of described electronic equipment; Judge whether described status information meets predetermined condition; When a predetermined condition is satisfied, the corresponding relation of the frequency of operation of described status information and described processor is obtained; And according to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.
According to application operation method and the electronic equipment of the embodiment of the present invention, achieve the startup frequency of operation determining for application based on predetermined policy, to carry out the frequency of operation of dynamic conditioning processor according to the actual loading of user's request and application thus to reduce the power consumption of electronic equipment.
It being understood that general description above and detailed description below both exemplary, and intention is to provide further illustrating of claimed technology.
Accompanying drawing explanation
Fig. 1 is the block diagram of diagram according to the main configuration of the electronic equipment of the embodiment of the present invention;
Fig. 2 is the process flow diagram of diagram according to the application operation method of the embodiment of the present invention;
Fig. 3 is diagram determines the process of the first preset frequency process flow diagram according to the application operation method of the embodiment of the present invention; And
Fig. 4 is diagram determines another process of the first preset frequency process flow diagram according to the application operation method of the embodiment of the present invention.
Embodiment
Below, the preferred embodiments of the present invention are described in detail with reference to accompanying drawing.
First, with reference to Fig. 1, the electronic equipment according to the embodiment of the present invention is described.Described electronic equipment is such as preferably smart mobile phone, personal digital assistant, palm PC etc.It should be noted that those of ordinary skill in the art is it is easily understood that Fig. 1 only illustrates the parts be closely related with technical solution of the present invention, and other parts not shown (such as, display unit, input block etc.), and its specific descriptions will be omitted at this.
As shown in Figure 1, processor unit 101, register cell 102 and power supply unit 103 is mainly comprised according to the electronic equipment 100 of the embodiment of the present invention.Particularly, described processor unit 101 runs the operating system of electronic equipment 100 (such as
deng) and various application.Described register cell 102 is for storing the relevant information needed for the frequency of operation arranging described processor unit 101.
In a preferred embodiment of the invention, described processor unit 101 is the processors under ARM system framework, and it more pursues the saving for power consumption than the processor of general X86 system.Certainly, the present invention is not limited thereto, but the processor under various system architecture can be applied to.Can by controlling to control its frequency of operation to the height of the supply voltage of described processor unit 101.Therefore, corresponding frequency of operation can be set by the supply voltage of the processor cores of configuration PMU (Power Management Unit, Fig. 1 is not shown).The technique of producing due to processor chips is different, and the voltage that can receive is different, and the frequency of correspondence is also different.The supply voltage of described register cell 102 for storage of processor and the corresponding relation of its frequency of operation.Such as, in a preferred embodiment of the invention, suppose the processor working frequency of the corresponding 1200MHz of 1.2V supply voltage, then supply voltage and the processor working frequency respective value table of about 12 grades can be set, and be stored in corresponding register cell 102.In the case, the storage content of described register cell 102 is as shown in table 1 below:
1.2V | 1200MHz | 1111 |
1.15V | 1100MHz | 1110 |
1.1V | 1000MHz | 1101 |
1.05V | 900MHz | 1100 |
1.0V | 800MHz | 1011 |
0.95V | 700MHz | 1010 |
0.9V | 600MHz | 1001 |
0.85V | 500MHz | 1000 |
0.8V | 400MHz | 0111 |
0.75V | 300MHz | 0110 |
0.7V | 200MHz | 0101 |
0.65V | 100MHz | 0100 |
Table 1
Because processor supply voltage can not be too low, otherwise processor can not steady operation, therefore under the prerequisite of processor steady operation, can determine its frequency of operation.By determining the frequency values that different voltage is corresponding, therefore when its operating load is determined in application, can directly set corresponding magnitude of voltage, making it to reach corresponding frequency of operation.In addition, in another preferred embodiment of the present invention, a force bit can also be increased in register cell 102, when this force bit is effective, even if when restriction operating load reduces, as long as this application is also in operation, just keep stable frequency of operation.If it is invalid that this force bit is set to, so dynamic conditioning can be carried out according to the actual loading of application within the scope of upper operational frequency limit.Such as obtain different voltage by arranging register cell 102 (such as, the OUTPWR register of PMU), register cell 102 can be 5 bits, and wherein a high position is force bit, and latter four is different output voltage values.As forced to be set to 1000MHz, then this register can be set to 11101.
In another preferred embodiment of the invention, by arranging PLL (phaselocked loop) with the ratio of the frequency of operation and external crystal-controlled oscillation frequency that control described processor unit 101, the frequency of operation of described processor unit 101 can be set.In the preferred embodiment, described register cell 102 is the register cells for arranging PLL.Described register cell 102 can comprise lower column register: PLLCON, PLLCFG, PLLSTAT and PLLFEED.Wherein, whether PLLCON register comprises the position of enable connection PLL, namely connect for control PLL.This connects needs just to come into force when sending correct information (feed sequence) to PLLFEED, even if otherwise by enable bit set, PLL also can not be connected in circuit.Therefore, PLLCON just must set before PLL starts to connect, otherwise can cause the unpredictable mistake of system.PLLCFG register is used for arranging Clock Multiplier Factor M and divide ratio N.These two values determine the frequency of frequency multiplication and frequency division.Can placement processor unit 101 to the Clock Multiplier Factor M of outside crystal oscillator frequency, if external crystal-controlled oscillation frequency is 30MHZ, so can arrange Clock Multiplier Factor M is 10,20,30,40 etc., makes the frequency of processor unit 101 reach 300MHZ, 600MHZ, 900MHZ, 1200MHZ respectively.PLLSTAT register for storing and read the value of PLLCON, PLLCFG, but must be sent out in the feed sequence of PLLFEED, just can read correct value after PLLCON, PLLCFG come into force.PLLFEED register is used for writing feed sequence with the continuous print VPB bus cycles to it.After correct sequence is written into PLLFEED, PLLCON, PLLCFG just come into force, thus PLL circuit could correct being connected in circuit.
The value the foregoing described by revising described register cell 102 carrys out two kinds of embodiments of given processor task frequency.In a preferred embodiment of the invention, the developer of application pre-sets a leader in the application in the performance history of described application, described leader is used for revising described register cell 102, so that the frequency of operation of given processor unit 101 by the API (application programming interfaces) of standard.
Described power supply unit 103 is for powering for described electronic equipment 100.In a preferred embodiment of the invention, described power supply 102 can be battery.
In another preferred embodiment of the invention, described electronic equipment 100 also comprises state acquisition unit, for gathering the status information of described electronic equipment 100 (such as, system load state and battery status information etc.), to dynamically arrange the frequency of operation of described processor unit 101 after application runs according to the status information of described electronic equipment 100.
Next, with reference to Fig. 2, the application operation method for electronic equipment 100 according to the embodiment of the present invention is described.
Fig. 2 is the process flow diagram of diagram according to the application operation method of the embodiment of the present invention.
Application operation method according to the embodiment of the present invention comprises:
In step s 201, the processing unit 101 of described electronic equipment 100 the first application of determining to run.Such as, in a preferred embodiment of the invention, when the user of described electronic equipment 100 provides by input block (not shown in figure 1) the instruction running application, described electronic equipment 100 determines that corresponding with described user instruction first applies.In addition, in another preferred embodiment of the invention, the processing unit 101 of described electronic equipment 100 detects whether meet applications trigger condition, if described processing unit 101 judges to meet a certain applications trigger condition (such as, the trigger condition meeting alarm clock application is judged whether according to system time), then described processing unit 101 determines that the application corresponding with met applications trigger condition is applied as described first.
In step S202, determine the first preset frequency according to predetermined policy.
Particularly, in a preferred embodiment of the invention, determine that the first preset frequency comprises according to determined first application in step s 201 according to predetermined policy, determine its corresponding described first preset frequency.But, the present invention is not limited thereto embodiment.
In another preferred embodiment of the invention, determine that the first preset frequency comprises the battery information being gathered described power supply unit 103 (such as battery) by described state acquisition unit according to predetermined policy, to obtain the corresponding relation of the frequency of operation of described battery information and processor unit 101, thus determine described first preset frequency corresponding with described battery information according to described battery information and described corresponding relation.
In addition, in another preferred embodiment of the present invention, described first preset frequency can also be specified by user.That is, described electronic equipment 100, after determining described first application, receives the instruction of user's input, and the frequency corresponding with described instruction is defined as described first preset frequency.Particularly, described first application determined in step s 201 can provide a processing unit frequency of operation to arrange interface for user, and user can arrange the frequency of operation of interface placement processor unit 101 easily by operating described frequency of operation.In addition, user can also carry out the instruction of input service set of frequency by different triggering modes.Such as, if the icon of the first application that user click will start, the frequency of operation of the processor unit 101 then operation first applied is set to low frequency, on the contrary, if user double-clicks the icon of first application that will start, then the frequency of operation of the processor unit 101 operation first applied is set to high-frequency.Similarly, difference in functionality key can be set on described electronic equipment 100, when user presses the first function key to start the first application, the frequency of operation of the processor unit 101 operation first applied is set to low frequency, when user presses the second function key to start the first application, the frequency of operation of the processor unit 101 operation second applied is set to high-frequency.
In step S203, described processor unit 101, using described first preset frequency determined in step S202 as startup frequency of operation, runs described first application.It should be noted that described first preset frequency is equal to or less than the maximum operation frequency of described processor unit 101.That is, achieve the startup frequency of operation determining for application based on predetermined policy, so that under the prerequisite of the actual needs run in satisfied application, start application with the low startup frequency of operation optimized thus reduce the power consumption of electronic equipment.
Below, specifically describe further in the application operation method of the embodiment of the present invention with reference to Fig. 3 and Fig. 4, determine the detailed process of the first preset frequency according to predetermined policy.Fig. 3 is diagram determines the process of the first preset frequency process flow diagram according to the application operation method of the embodiment of the present invention; And Fig. 4 is diagram determines another process of the first preset frequency process flow diagram according to the application operation method of the embodiment of the present invention.
Particularly, in a preferred embodiment of the invention, described first application is actual comprises two parts, i.e. leader and funtion part.When determining the first preset frequency according to predetermined policy, first, the present operating frequency with processor unit 101) load described leader, described guide portion assigns to determine the first preset frequency according to predetermined policy.Described processor unit 101 with described first preset frequency for start frequency of operation to run the first application, in fact, described processor unit 101 for starting frequency of operation, operates in the funtion part of the first application loaded after determining the first preset frequency with described first preset frequency.
Below, the processing procedure of described leader is specifically described.
In a preferred embodiment of the invention, as shown in Figure 3, in step S301, the leader of the first application loaded is according to the first predetermined value of the predetermined set amendment register cell 102 of the first application.As previously described with reference to FIG. 1, the supply voltage of described register cell 102 for storage of processor and the corresponding relation of its frequency of operation.In the case, the first predetermined value in register cell 102 is set to the value corresponding with frequency of operation needed for it by the leader of the first application.In step s 302, processor unit 101 reads in the first predetermined value arranged in step S301.In step S303, its operating voltage is set to first predetermined voltage corresponding with the first predetermined value read by processor unit 101.Because the frequency of operation of processor unit 101 and its operating voltage have the corresponding relation determined, thus when loading the funtion part of the first application subsequently, with first preset frequency corresponding with the first predetermined voltage determined in step S303 for starting frequency of operation.
In another preferred embodiment of the invention, as shown in Figure 4, in step S401, the leader of the first application loaded is according to the second predetermined value of the predetermined set amendment register cell 102 of the first application.As previously described with reference to FIG. 1, described register cell 102 is the register cells for arranging PLL.In the case, the second predetermined value in register cell 102 is set to the value corresponding with frequency of operation needed for it by the leader of the first application.In step S402, processor unit 101 reads in the second predetermined value arranged in step S401.In step S403, frequency of operation and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with the second predetermined value read in step S402 by processor unit 101.Thus when loading the funtion part of the first application subsequently, with first preset frequency corresponding with the second predetermined value determined in step S403 for starting frequency of operation.
In addition, in a preferred embodiment of the invention, before operation first is applied, other application being in running status may in electronic equipment 100, be there is.Therefore, need to consider to meet to be in the needs of the application of running status, and do not cause only according to first apply the processor working frequency determined adjust caused by the problem of processing power deficiency of processor.In the case, determine that the first preset frequency specifically also comprises according to predetermined policy: first obtain and apply corresponding second frequency with described first, obtain the 3rd frequency of current processor unit 101 (namely afterwards, current operation frequency), after this more described second frequency and described 3rd frequency, and the larger frequency in both is defined as described first preset frequency.Particularly, described for acquisition second frequency and described 3rd frequency compare by the leader of the first application loaded.When described second frequency is higher than described 3rd frequency, described leader is with the above-mentioned flow process described with reference to Fig. 3 or Fig. 4, by revising the value of described register cell 102, described second frequency is set to the startup frequency of operation of the first application, and loads the funtion part of the first application subsequently.On the contrary, when described second frequency is equal to or less than described 3rd frequency, then keep current running frequency, and load the funtion part of the first application subsequently.Certainly, the present invention is not limited thereto, by more multiple frequency needs running application, best frequency of operation can be determined, realize the deficiency or the waste that do not cause processor processing power, save power consumption to greatest extent simultaneously.
Above, assign to determine the flow process of the startup frequency of operation of the first application by referring to Fig. 3 and 4 guide portion described by loading described first application.But, the present invention is not limited thereto.In a preferred embodiment of the invention, after determining described first application, the operating system of described electronic equipment 100 can from the question blank of relation between its corresponding startup optimization frequency of each application of its storage unit reading pre-stored, and find in described question blank and apply corresponding startup optimization frequency with described first, thus start described first application with this startup optimization frequency.
In addition, in a preferred embodiment of the invention, after operation first is applied, described state acquisition unit keep for the status information of described electronic equipment 100 collection (such as, system load state and battery status information etc.), for judging whether described status information meets predetermined condition.When a predetermined condition is satisfied, obtain the corresponding relation of the frequency of operation of described status information and described processor unit 101, thus according to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.Such as, the predetermined condition that can arrange described status information is that battery electric quantity is less than 50%, then when the described status information indicating battery electric quantity gathered is less than 50%, obtain the frequency of operation of the described processor unit 101 corresponding with the condition of battery electric quantity lower than 50%, thus with the frequency of operation newly obtained to run described application.
Describe according to the electronic equipment of the embodiment of the present invention and application operation method above with reference to Fig. 1 to Fig. 4, described operation method achieves the startup frequency of operation determining for application based on predetermined policy, to carry out the frequency of operation of dynamic conditioning processor according to the actual loading of user's request and application thus to reduce the power consumption of electronic equipment.
It should be noted that, in this manual, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Finally, also it should be noted that, above-mentioned a series of process not only comprises with the order described here temporally process that performs of sequence, and comprises process that is parallel or that perform respectively instead of in chronological order.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, and can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above to invention has been detailed introduction, applying specific case herein and setting forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (21)
1. apply an operation method, be applied to electronic equipment, described electronic equipment comprises processor and battery, and described method comprises:
Determine the first application;
The first preset frequency is determined according to predetermined policy; And
Described processor for starting frequency of operation, runs the first application with described first preset frequency;
Wherein, described first preset frequency lower than the maximum operation frequency of described processor,
Wherein, determine that the first preset frequency comprises according to predetermined policy and determine described first preset frequency according to described first application, it comprises
Obtain and apply corresponding second frequency with described first;
Obtain the 3rd frequency of current processor;
More described second frequency and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
2. apply operation method as claimed in claim 1, wherein determine that the first preset frequency comprises according to predetermined policy:
Gather the battery information of described battery;
Obtain described battery information and frequency of operation corresponding relation; And
Described first preset frequency corresponding with described battery information is determined according to described battery information and described corresponding relation.
3. apply operation method as claimed in claim 1, wherein said first application comprises leader and funtion part,
Described foundation predetermined policy determines that the first preset frequency comprises: described leader determines the first preset frequency according to predetermined policy;
Described processor for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processor for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
4. apply operation method as claimed in claim 3, wherein said leader determines that the first preset frequency comprises:
Described leader revises the first predetermined value of the first register by interface;
Described processor reads described first predetermined value in described first register; And
Operating voltage is set to the predetermined voltage corresponding with described first predetermined value by described processor,
Wherein, described first preset frequency corresponds to described predetermined voltage.
5. apply operation method as claimed in claim 3, wherein said leader determines that the first preset frequency comprises:
Described leader revises the second predetermined value of the second register by interface;
Described processor reads described second predetermined value in described second register; And
Frequency of operation and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described processor.
6. apply operation method as claimed in claim 1, wherein determine that the first preset frequency comprises according to predetermined policy:
Receive the instruction of user's input of described electronic equipment; And
The frequency corresponding with described instruction is defined as described first preset frequency.
7. apply operation method as claimed in claim 1, also comprise:
Gather the status information of described electronic equipment;
Judge whether described status information meets predetermined condition;
When a predetermined condition is satisfied, the corresponding relation of the frequency of operation of described status information and described processor is obtained; And
According to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.
8. an electronic equipment, comprising:
Application determining unit, for determining the first application;
Frequency determinative elements, for determining the first preset frequency according to predetermined policy; And
Processing unit, for described first preset frequency for start frequency of operation, run first application;
Wherein, described first preset frequency lower than the maximum operation frequency of described processing unit,
Wherein, described frequency determinative elements determines described first preset frequency according to described first application,
Described frequency determinative elements obtains and applies corresponding second frequency with described first;
Described frequency determinative elements obtains the 3rd frequency of current described processing unit;
The more described second frequency of described frequency determinative elements and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
9. electronic equipment as claimed in claim 8, also comprises:
Battery information collecting unit, for gathering the battery information of described electronic equipment;
Corresponding relation determining unit, for obtaining described battery information and frequency of operation corresponding relation;
Wherein, described frequency determinative elements determines described first preset frequency corresponding with described battery information according to described battery information and described corresponding relation.
10. electronic equipment as claimed in claim 9, wherein said first application comprises leader and funtion part,
Wherein, according to predetermined policy, described frequency determinative elements determines that the first preset frequency comprises: described frequency determinative elements loads described leader, to determine the first preset frequency according to predetermined policy; And
Described processing unit for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processing unit for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
11. electronic equipments as claimed in claim 10, also comprise the first register cell,
Wherein said frequency determinative elements loads described leader, to determine that the first preset frequency comprises according to predetermined policy:
Described leader revises the first predetermined value of described first register cell by interface;
Described frequency determinative elements reads described first predetermined value in described first register cell; And
The operating voltage of described processing unit is set to the predetermined voltage corresponding with described first predetermined value by described frequency determinative elements,
Wherein, described first preset frequency corresponds to described predetermined voltage.
12. electronic equipments as claimed in claim 10, also comprise the second register cell,
Wherein said frequency determinative elements loads described leader, to determine that the first preset frequency comprises according to predetermined policy:
Described leader revises the second predetermined value of described second register cell by interface;
Described frequency determinative elements reads described second predetermined value in described second register cell; And
The frequency of operation of described processing unit and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described frequency determinative elements.
13. electronic equipments as claimed in claim 8, also comprise input block,
According to predetermined policy, wherein said frequency determinative elements determines that the first preset frequency comprises:
The instruction of user's input of described electronic equipment is received by described input block; And
The frequency corresponding with described instruction is defined as described first preset frequency by described frequency determinative elements.
14. electronic equipments as claimed in claim 8, also comprise status information capture unit, for gathering the status information of described electronic equipment,
Wherein, described frequency determinative elements judges whether described status information meets predetermined condition;
When a predetermined condition is satisfied, described frequency determinative elements obtains the corresponding relation of the frequency of operation of described status information and described processing unit; And
Described processing unit, according to described corresponding relation, runs described first application with the 4th frequency being different from described first preset frequency.
15. 1 kinds of electronic equipments, comprising:
Processor; And
Battery,
Wherein, the first application determined by described processor, determines the first preset frequency according to predetermined policy, and with described first preset frequency for starting frequency of operation, runs the first application;
Wherein, described first preset frequency lower than the maximum operation frequency of described processor,
Wherein, described processor determines described first preset frequency according to described first application,
Described processor obtains and applies corresponding second frequency with described first, obtains the 3rd frequency of current processor, more described second frequency and the 3rd frequency, and the larger frequency in both is defined as described first preset frequency.
16. electronic equipments as claimed in claim 15, according to predetermined policy, wherein said processor determines that the first preset frequency comprises:
Gather the battery information of described battery;
Obtain described battery information and frequency of operation corresponding relation; And
Described first preset frequency corresponding with described battery information is determined according to described battery information and described corresponding relation.
17. electronic equipments as claimed in claim 15, wherein said first application comprises leader and funtion part,
According to predetermined policy, described processor determines that the first preset frequency comprises: load described leader, to determine the first preset frequency according to predetermined policy;
Described processor for starting frequency of operation with described first preset frequency, runs the first application and comprises: described processor for starting frequency of operation, runs the funtion part of described first application with described first preset frequency.
18. electronic equipments as claimed in claim 17, wherein load described leader, to determine that the first preset frequency comprises:
Described leader revises the first predetermined value of the first register by interface;
Described processor reads described first predetermined value in described first register; And
Operating voltage is set to the predetermined voltage corresponding with described first predetermined value by described processor,
Wherein, described first preset frequency corresponds to described predetermined voltage.
19. electronic equipments as claimed in claim 17, wherein load described leader, to determine that the first preset frequency comprises:
Described leader revises the second predetermined value of the second register by interface;
Described processor reads described second predetermined value in described second register; And
Frequency of operation and the ratio of external crystal-controlled oscillation frequency are set to the value corresponding with described second predetermined value by described processor.
20. electronic equipments as claimed in claim 15, according to predetermined policy, described processor determines that the first preset frequency comprises:
Described processor receives the instruction of user's input of described electronic equipment; And
The frequency corresponding with described instruction is defined as described first preset frequency.
21. electronic equipments as claimed in claim 15,
Wherein, described processor gathers the status information of described electronic equipment; Judge whether described status information meets predetermined condition; When a predetermined condition is satisfied, the corresponding relation of the frequency of operation of described status information and described processor is obtained; And according to described corresponding relation, run described first application with the 4th frequency being different from described first preset frequency.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610105700.6A CN105700667B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
CN201210021360.0A CN103226382B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210021360.0A CN103226382B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610105700.6A Division CN105700667B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103226382A CN103226382A (en) | 2013-07-31 |
CN103226382B true CN103226382B (en) | 2016-03-30 |
Family
ID=48836865
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210021360.0A Active CN103226382B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
CN201610105700.6A Active CN105700667B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610105700.6A Active CN105700667B (en) | 2012-01-31 | 2012-01-31 | Application operation method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN103226382B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750519B (en) * | 2015-03-12 | 2018-01-23 | 广东欧珀移动通信有限公司 | The startup method and mobile terminal of a kind of mobile terminal |
CN105740020A (en) * | 2016-01-29 | 2016-07-06 | 宇龙计算机通信科技(深圳)有限公司 | Application starting method and starting apparatus, and terminal |
CN107315635A (en) * | 2016-04-26 | 2017-11-03 | 华为技术有限公司 | The method of adjustment of the stock number of handheld device and the handheld device |
CN106681772A (en) * | 2016-12-30 | 2017-05-17 | 深圳天珑无线科技有限公司 | Acceleration method, device and terminal for starting application |
CN107831887B (en) * | 2017-12-21 | 2021-03-23 | 青岛海信移动通信技术股份有限公司 | Application starting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604012A (en) * | 2003-10-05 | 2005-04-06 | 宏碁股份有限公司 | Method of url-based power management and associated web browsing device |
CN1622081A (en) * | 2003-11-24 | 2005-06-01 | 顺德市顺达电脑厂有限公司 | Method for reducing cell power consumption of portable digital products |
US7155617B2 (en) * | 2002-08-01 | 2006-12-26 | Texas Instruments Incorporated | Methods and systems for performing dynamic power management via frequency and voltage scaling |
CN101150698A (en) * | 2007-09-04 | 2008-03-26 | 浙江大学 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
CN102104656A (en) * | 2009-12-21 | 2011-06-22 | 康佳集团股份有限公司 | Method and electronic device for processing task at variable frequency |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FI115562B (en) * | 2002-03-27 | 2005-05-31 | Nokia Corp | Method and system for determining power consumption in connection with electronic device and electronic device |
JP2010219591A (en) * | 2009-03-13 | 2010-09-30 | Panasonic Corp | Electronic device |
-
2012
- 2012-01-31 CN CN201210021360.0A patent/CN103226382B/en active Active
- 2012-01-31 CN CN201610105700.6A patent/CN105700667B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7155617B2 (en) * | 2002-08-01 | 2006-12-26 | Texas Instruments Incorporated | Methods and systems for performing dynamic power management via frequency and voltage scaling |
CN1604012A (en) * | 2003-10-05 | 2005-04-06 | 宏碁股份有限公司 | Method of url-based power management and associated web browsing device |
CN1622081A (en) * | 2003-11-24 | 2005-06-01 | 顺德市顺达电脑厂有限公司 | Method for reducing cell power consumption of portable digital products |
CN101150698A (en) * | 2007-09-04 | 2008-03-26 | 浙江大学 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
CN102104656A (en) * | 2009-12-21 | 2011-06-22 | 康佳集团股份有限公司 | Method and electronic device for processing task at variable frequency |
Also Published As
Publication number | Publication date |
---|---|
CN105700667B (en) | 2018-11-09 |
CN103226382A (en) | 2013-07-31 |
CN105700667A (en) | 2016-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103226382B (en) | Application operation method and electronic equipment | |
CN102789304B (en) | Power management method and related device | |
NL2011348B1 (en) | Dynamic voltage frequency scaling method and apparatus. | |
CN104798004B (en) | Controlled and biased according to power-balance, balanced across the dynamic power of multiple domain processors | |
US9158359B2 (en) | Adaptive voltage scaling using a serial interface | |
CN102156498B (en) | Power management system and method | |
CN103890693A (en) | Report updated threshold level based on parameter | |
WO2008121625A1 (en) | Dynamic power reduction | |
CN111625080B (en) | Server energy saving method and device, electronic equipment and storage medium | |
CN103218027A (en) | Control device, control method, computer program product, and electronic device | |
CN104820618B (en) | A kind of method for scheduling task, task scheduling apparatus and multiple nucleus system | |
CN101477398A (en) | Terminal power consumption control method and apparatus | |
CN103677210A (en) | Method of performing dynamic voltage and frequency, application processor and mobile device | |
CN102147652A (en) | Shut-down energy-saving system and shut-down energy-saving method | |
CN104808767A (en) | Terminal control method | |
CN104756042A (en) | Apparatus and method for controlling operation mode in a wireless terminal | |
CN111142644A (en) | Hard disk operation control method and device and related components | |
CN114144746A (en) | Digitally coordinated dynamically adaptable clock and voltage supply apparatus and method | |
CN114665457A (en) | Apparatus and method for programming power supply sources to facilitate dynamic performance tuning | |
CN104808766A (en) | Terminal | |
CN107924217A (en) | Low Ripple Mode Change Mechanism in Switched Capacitor Voltage Regulators | |
CN104204988A (en) | Active display processor sleep state | |
CN102929380A (en) | Method and device for reducing power consumption of mobile terminal, and terminal | |
CN112098713B (en) | Electric energy meter operation control method | |
CN104699224A (en) | Power-saving control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |