CN104407690A - Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) - Google Patents

Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) Download PDF

Info

Publication number
CN104407690A
CN104407690A CN201410803357.3A CN201410803357A CN104407690A CN 104407690 A CN104407690 A CN 104407690A CN 201410803357 A CN201410803357 A CN 201410803357A CN 104407690 A CN104407690 A CN 104407690A
Authority
CN
China
Prior art keywords
task
type
eigenwert
cpu
feature table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410803357.3A
Other languages
Chinese (zh)
Other versions
CN104407690B (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.)
ThunderSoft Co Ltd
Original Assignee
ThunderSoft 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 ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN201410803357.3A priority Critical patent/CN104407690B/en
Publication of CN104407690A publication Critical patent/CN104407690A/en
Application granted granted Critical
Publication of CN104407690B publication Critical patent/CN104407690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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 a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for regulating operating frequency of a CPU (Central Processing Unit). The method comprises the following steps: determining tasks in a foreground running mode; determining a task type of tasks in the foreground running mode by utilizing a mapping relation between the prestored tasks and task type; determining the operating frequency of the CPU which corresponds to the task type by utilizing a mapping relation between the prestored task type and the operating frequency of the CPU; and configuring the operating frequency of the CPU by utilizing the operating frequency of the CPU which corresponds to the task type. According to the method for regulating operating frequency of the CPU, disclosed by the invention, the operating frequency of the CPU is configured according to the current task interacting with a user. Therefore, the influence of a background running task on the operating frequency of the CPU can be reduced, so that the operating frequency of the CPU is further reduced, the power consumption of the CPU is reduced, and the operating speed of the task interacting with the user is not influenced. Therefore, the user experience can still be guaranteed. The invention also discloses a device and a mobile terminal for regulating the operating frequency of the CPU.

Description

Regulate the method for CPU frequency of operation, device and mobile terminal
Technical field
The invention belongs to CPU (central processing unit) control technology field, particularly relate to the method, device and the mobile terminal that regulate CPU frequency of operation.
Background technology
There is increasing mobile terminal, as mobile phone and Intelligent worn device at present.Due to the finite capacity of the battery for mobile terminal configuration, therefore how to reduce the power consumption of mobile terminal, extend the cruising time of mobile terminal, the problem that Shi Ge manufacturer very pays close attention to.
In the terminal, CPU can consume a large amount of electric energy, and the power of CPU and its frequency of operation proportional, the power consumption therefore by regulating the frequency of operation of CPU to reduce mobile terminal, becomes the processing mode of current main flow.The mode arranging CPU frequency of operation is at present: based on a timer, periodically detects the load of CPU, according to the frequency of operation of CPU in the load determination next cycle of CPU in one-period.
But applicant finds, arrange the frequency of operation of CPU based on current mode, the power consumption of CPU is still larger.How under the prerequisite ensureing Consumer's Experience, reducing the power consumption of CPU further, is those skilled in the art's problem demanding prompt solutions.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method, device and the mobile terminal that regulate CPU frequency of operation, to reduce the power consumption of CPU further, extend the cruising time of mobile terminal.
For achieving the above object, the invention provides following technical scheme:
The present invention discloses a kind of method regulating CPU frequency of operation, and be applied to the mobile terminal running Android system, described method comprises:
Determine the task of being in front stage operation;
Utilize the mapping relations of task and the task type prestored, determine the task type of described task;
Utilize the mapping relations of task type and the CPU frequency of operation prestored, determine the CPU frequency of operation corresponding with described task type;
The CPU frequency of operation corresponding with described task type is utilized to configure the frequency of operation of described CPU.
Preferably, said method, also comprises: the task type of identification mission; The task type of corresponding stored task and described task, to set up the mapping relations of task and task type.
Preferably, in said method, the task type of described identification mission, comprising:
The eigenwert that described task uses is searched in the first file;
Utilize the N number of type feature table prestored, and the eigenwert of described task use determines the task type of described task, wherein, each task type configures a type feature table, described type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert, the eigenwert found in the type feature table for the configuration of described task type weight and value, be not less than the decision threshold in described type feature table; Wherein, N be greater than 1 integer.
Preferably, in said method, N number of type feature table that described utilization prestores, and the eigenwert of described task use determines the task type of described task, comprising:
A type feature table is chosen as target type mark sheet in the N number of type feature table prestored;
Determine the weight of eigenwert in current target type mark sheet found, calculate weight and value;
The relatively more described decision threshold with being worth and in described target type mark sheet;
If described and value is not less than the decision threshold in described target type mark sheet, then the task type determining in described target type mark sheet is the task type of described task;
If described and value is less than the decision threshold in described target type mark sheet, in remaining type feature table, then choose a type feature table as target type mark sheet, perform and determine the weight of eigenwert in current target type mark sheet that find, that calculate weight with step that is value and subsequent step.
Preferably, in said method, described first file comprises: file classes.dex file being carried out to decompiling formation, or file odex file being carried out to decompiling formation.
Preferably, in said method, described task comprises: preset the movable component defined in the Android application register-file of application and serviced component in described mobile terminal.
The present invention also discloses a kind of device regulating CPU frequency of operation, and be applied to the mobile terminal running Android system, described device comprises:
Task determining unit, for determining the task of being in front stage operation;
Task type determining unit, for utilizing the mapping relations of task and the task type prestored, determines the task type of described task;
Frequency of operation determining unit, for utilizing the mapping relations of task type and the CPU frequency of operation prestored, determines the CPU frequency of operation corresponding with described task type;
Dispensing unit, for the frequency of operation utilizing the CPU frequency of operation corresponding with described task type to configure described CPU.
Preferably, said apparatus also comprises: task type recognition unit, for the task type of identification mission; Processing unit, for the task type of corresponding stored task and described task, to set up the mapping relations of task and task type.
Preferably, in said apparatus, described task type recognition unit comprises:
Eigenwert searches module, for searching the eigenwert that described task uses in the first file;
Task type identification module, for utilizing the N number of type feature table prestored, and the eigenwert of described task use determines the task type of described task, wherein, each task type configures a type feature table, described type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert, the eigenwert found in the type feature table for the configuration of described task type weight and value, be not less than the decision threshold in described type feature table; N be greater than 1 integer.
Preferably, in said apparatus, described task type identification module specifically for:
A type feature table is chosen as target type mark sheet in the N number of type feature table prestored;
Determine the weight of eigenwert in current target type mark sheet found, calculate weight and value;
The relatively more described decision threshold with being worth and in described target type mark sheet;
If described and value is not less than the decision threshold in described target type mark sheet, then the task type determining in described target type mark sheet is the task type of described task;
If described and value is less than the decision threshold in described target type mark sheet, in remaining type feature table, then choose a type feature table as target type mark sheet, perform and determine the weight of eigenwert in current target type mark sheet that find, that calculate weight with step that is value and subsequent step.
Preferably, in said apparatus, described eigenwert searches the eigenwert that module task of searching in file classes.dex file being carried out to decompiling formation uses, or the eigenwert that task of searching in file odex file being carried out to decompiling formation uses.
The present invention also discloses a kind of mobile terminal, described running of mobile terminal Android system, and described mobile terminal also comprises the device of above-mentioned any one adjustment CPU frequency of operation.
As can be seen here, beneficial effect of the present invention is: the method for adjustment CPU frequency of operation disclosed by the invention, first task that is current and user interactions is determined, determine the task type of this task afterwards, determine the CPU frequency of operation corresponding with this task type afterwards, utilize the CPU frequency of operation determined to configure the frequency of operation of CPU.In the method for adjustment CPU frequency of operation disclosed by the invention, CPU frequency of operation is configured with the task of user interactions according to current, therefore, the task of running background can be reduced on the impact of CPU frequency of operation, thus reduce the frequency of operation of CPU, the power consumption of reduction CPU further, and then extend cruising time of mobile terminal, and can not affect with the travelling speed of the task of user interactions, therefore still can ensure Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is a kind of process flow diagram regulating the method for CPU frequency of operation disclosed by the invention;
Fig. 2 is the process flow diagram of the method for the task type of identification mission disclosed by the invention;
Fig. 3 is the process flow diagram of the method for the task type of use pattern mark sheet disclosed by the invention and eigenwert determination task;
Fig. 4 is the process flow diagram of the specific embodiment of the task type of identification mission disclosed by the invention;
Fig. 5 is a kind of structural representation regulating the device of CPU frequency of operation disclosed by the invention;
Fig. 6 is the structural representation that another kind disclosed by the invention regulates the device of CPU frequency of operation;
Fig. 7 is the structural representation of a kind of task type recognition unit disclosed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The present invention discloses a kind of method regulating CPU frequency of operation, and the method is applied to the mobile terminal running Android system.Based on method disclosed by the invention, the power consumption of CPU in mobile terminal can be reduced further, extend the cruising time of mobile terminal.
Mobile terminal can run multiple task simultaneously, and wherein partial task is in running background, only has minority task to be in front stage operation, that is, in running of mobile terminal process, only has minority task carrying out alternately with user.For user, whether the operation that user only pays close attention to current mutual task is smooth, and is in the task of background operation state, and user does not pay close attention to.Therefore, can according to the current frequency of operation regulating CPU with the task of user interactions, reduce the task of running background to the impact of CPU frequency of operation, both ensure that Consumer's Experience like this, also reduce further the frequency of operation of CPU, thus reduce the power consumption of CPU, extend the cruising time of mobile terminal.
Be a kind of process flow diagram regulating the method for CPU frequency of operation disclosed by the invention see Fig. 1, Fig. 1.The method is applied to the mobile terminal running Android system, and the method comprises:
Step S11: determine currently to be in front stage operation task.
In running of mobile terminal process, the task of running of mobile terminal has multiple, determine the task of being in front stage operation in multiple task, namely determines the current task with user interactions in multiple task.
Step S12: the mapping relations utilizing task and the task type prestored, determines the task type of task.
Mobile terminal prestores the mapping relations of task and task type, after determining the current task with user interactions, just can determine task type that the is current and task of user interactions according to these mapping relations.In enforcement, task type can include but not limited to that audio frequency plays type, video playback type, e-book type and social application type.
Step S13: the mapping relations utilizing task type and the CPU frequency of operation prestored, determines the CPU frequency of operation corresponding with task type.
Mobile terminal also prestores the mapping relations of task type and CPU frequency of operation, and in these mapping relations, each task type all has corresponding CPU frequency of operation.It should be noted that, the CPU frequency of operation corresponding with task type, can ensure that the task of this task type can smoothly be run, and the electric energy that CPU consumes is minimum.That is, the CPU frequency of operation corresponding with task type is the minimum CPU frequency of operation that can ensure that the task smoothness of this task type is run.
In enforcement, the mapping relations of task type and CPU frequency of operation, can be determined by the mode of verification experimental verification in process of production by equipment vendors, also in use can be obtained by self study by mobile terminal.
Step S14: the frequency of operation utilizing the CPU frequency of operation configuration CPU corresponding with task type.
Determine with the task type of the task of user interactions after, determine the CPU frequency of operation that this task type is corresponding, utilize afterwards determine CPU frequency of operation configuration CPU frequency of operation.
The method of adjustment CPU frequency of operation disclosed by the invention, first task that is current and user interactions is determined, determine the task type of this task afterwards, determine the CPU frequency of operation corresponding with this task type afterwards, utilize the CPU frequency of operation determined to configure the frequency of operation of CPU.In the method for adjustment CPU frequency of operation disclosed by the invention, CPU frequency of operation is configured with the task of user interactions according to current, therefore, the task of running background can be reduced on the impact of CPU frequency of operation, thus reduce the frequency of operation of CPU, the power consumption of reduction CPU further, and then extend cruising time of mobile terminal, and can not affect with the travelling speed of the task of user interactions, therefore still can ensure Consumer's Experience.
Also comprise the step of the mapping relations setting up task and task type in advance in the above-mentioned methods, concrete: the first task type of identification mission, the afterwards task type of corresponding stored task and this task, to set up the mapping relations of task and task type.
In enforcement, the operation of the task type of identification mission, can be as shown in Figure 2.Comprise:
Step S21: search the eigenwert that task uses in the first file.
In enforcement, the first file for carrying out the file of decompiling formation to the classes.dex file in system file, or can carry out the file of decompiling formation to the odex file in system file.That is, first decompiling is carried out to classes.dex file or odex file, the eigenwert that task of searching in the file of decompiling formation afterwards uses.Wherein, classes.dex file and odex file are the byte code files that Android system virtual machine performs, and can be described as byte code files.Odex file is file classes.dex file being optimized to rear formation.Classes.dex file and odex file are all supported by Android system itself.
Step S22: utilize the N number of type feature table prestored, and the task type of the eigenwert determination task of task use.Wherein, N be greater than 1 integer, each task type configures a type feature table, and type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert.
This task use eigenwert to configure at the task type finally determined type feature table in weight and value, be not less than the decision threshold in the type mark sheet.That is, when the weight of the eigenwert found in step S21 in a certain type feature table and value, when being more than or equal to the decision threshold in the type mark sheet, the task type in the type mark sheet is the task type of this task.
Mobile terminal is configured with a type feature table for each task type, and a type feature table comprises: the weight of task type, decision threshold, multiple eigenwert and each eigenwert.It should be noted that, the eigenwert in each type feature table may be repetition, and the weight of same eigenwert in dissimilar mark sheet may be identical, also may be different.Table 1 is the type feature table of video playback type.
Table 1
Task type Video playback type
Decision threshold 80
Eigenwert Weight
android.widget.VideoView 100
android.media.MediaPlayer.setDisplay() 100
Org.apache.http.client.HttpClient 40
Android.media.MediaPlayer 30
Shown in table 1 is the type feature table of video playback type.The type mark sheet comprises the weight of 4 eigenwerts and each eigenwert, also comprises decision threshold.
In enforcement, step S22 utilizes the N number of type feature table prestored, and the task type of the eigenwert determination task of task use, can adopt the mode shown in Fig. 3, comprise:
Step S31: choose a type feature table as target type mark sheet in the N number of type feature table prestored.
Step S32: determine the weight of eigenwert in current target type mark sheet found, calculate weight and value.
Step S33: compare and be worth and decision threshold in target type mark sheet.
Step S34: when this and value are not less than the decision threshold in target type mark sheet, determine that the task type in target type mark sheet is the task type of task.
The eigenwert used when task in target type mark sheet weight and value, when being more than or equal to the decision threshold in this target type mark sheet, just show that this task belongs to this task type corresponding to target type mark sheet.
Step S35: when this and value are less than the decision threshold in target type mark sheet, choose a type feature table as target type mark sheet in remaining type feature table, perform step S32 and subsequent step.
The eigenwert used when task in target type mark sheet weight and value, when being less than the decision threshold in this target type mark sheet, show that this task does not belong to this task type corresponding to target type mark sheet, therefore to judge whether this task belongs to other task types further, namely using in remaining type feature table as target type mark sheet, re-execute step S32 and subsequent step.
It should be noted that, when a certain task does not belong to any one preset task type, be unknown task by this task flagging.
In addition, the task of will carry out task type identification in the present invention comprises: movable component and the serviced component of presetting definition in the Android application register-file (AndroidManifest.xml file) of application in mobile terminal.AndroidManifest.xml file is used for applying to system registry the assembly comprised, and needs the authority etc. of use.
Be described below in conjunction with the process of more detailed embodiment to the task type of identification mission.Refer to Fig. 4, comprising:
Step S41: the application obtaining Water demand.
Here it should be noted that, the application of Water demand can be the application that mobile terminal is newly installed.
Step S42: decompiling is carried out to AndroidManifest.xml file.
Step S43: search task in file AndroidManifest.xml file being carried out to decompiling formation.Wherein, task comprises activity (Activity) assembly and service (Service) assembly.
Step S44: decompiling is carried out to classes.dex file or odex file.
Step S45: the eigenwert of searching task in the file of decompiling formation is being carried out to classes.dex file or odex file.
Step S46: according to eigenwert and the characteristic type table prestored of task, determine the task type of task.
It should be noted that, the method shown in Fig. 4, can only perform after mobile terminal newly installs application, also can perform under user triggers, can certainly periodically perform.
The method of the present invention's above disclosed adjustment CPU frequency of operation, the present invention is the open corresponding device regulating CPU frequency of operation also, and this application of installation is in the mobile terminal running Android system.
Be a kind of structural representation regulating the device of CPU frequency of operation disclosed by the invention see Fig. 5, Fig. 5.This device comprises task determining unit 10, task type determining unit 20, frequency of operation determining unit 30 and dispensing unit 40.
Wherein:
Task determining unit 10, for determining the task of being in front stage operation.In running of mobile terminal process, the task of running of mobile terminal has multiple, determine the task of being in front stage operation in multiple task, namely determines the current task with user interactions in multiple task.
Task type determining unit 20, for utilizing the mapping relations of task and the task type prestored, determines the task type of the task of being in front stage operation.Mobile terminal prestores the mapping relations of task and task type, after determining the current task with user interactions, just can determine task type that the is current and task of user interactions according to these mapping relations.In enforcement, task type can include but not limited to that audio frequency plays type, video playback type, e-book type and social application type.
Frequency of operation determining unit 30, for utilizing the mapping relations of task type and the CPU frequency of operation prestored, determines the CPU frequency of operation corresponding with the task type that task type determining unit 20 is determined.Mobile terminal also prestores the mapping relations of task type and CPU frequency of operation, and in these mapping relations, each task type all has corresponding CPU frequency of operation.It should be noted that, the CPU frequency of operation corresponding with task type, can ensure that the task of this task type can smoothly be run, and the electric energy that CPU consumes is minimum.That is, the CPU frequency of operation corresponding with task type is the minimum CPU frequency of operation that can ensure that the task smoothness of this task type is run.
Dispensing unit 40, for the frequency of operation utilizing the CPU frequency of operation determined with frequency of operation determining unit 30 to configure CPU.
The device of adjustment CPU frequency of operation disclosed by the invention, first task that is current and user interactions is determined, determine the task type of this task afterwards, determine the CPU frequency of operation corresponding with this task type afterwards, utilize the CPU frequency of operation determined to configure the frequency of operation of CPU.The device of adjustment CPU frequency of operation disclosed by the invention, CPU frequency of operation is configured with the task of user interactions according to current, therefore, the task of running background can be reduced on the impact of CPU frequency of operation, thus reduce the frequency of operation of CPU, the power consumption of reduction CPU further, and then extend cruising time of mobile terminal, and can not affect with the travelling speed of the task of user interactions, therefore still can ensure Consumer's Experience.
In enforcement, task and other mapping relations of task class can be set up in advance, afterwards these mapping relations are stored in the storage medium of mobile terminal.
In enforcement, also can set up task and other mapping relations of task class by mobile terminal self, when after the application that user installation is new, mobile terminal can real-time update task and other mapping relations of task class.
Preferably, on Fig. 5 shown device basis, task type recognition unit 50 and processing unit 60 can be set further, as shown in Figure 6.Wherein: task type recognition unit 50, for the task type of identification mission; Processing unit 60, for the task type of corresponding stored task and described task, to set up the mapping relations of task and task type.
A kind of structure of task type recognition unit 50 is shown see Fig. 7, Fig. 7.Task type recognition unit 50 comprises eigenwert and searches module 501 and task type identification module 502.
Wherein:
Eigenwert searches module 501, for searching the eigenwert that task uses in the first file.
In enforcement, the first file for carrying out the file of decompiling formation to the classes.dex file in system file, or can carry out the file of decompiling formation to the odex file in system file.That is, eigenwert searches the eigenwert that module 501 task of searching in file classes.dex file being carried out to decompiling formation uses, or the eigenwert that task of searching in file odex file being carried out to decompiling formation uses.
Task type identification module 502, for utilizing the N number of type feature table prestored, and the task type of the eigenwert determination task of task use, wherein, N be greater than 1 integer, each task type configures a type feature table, and each type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert.This task use eigenwert to configure at the task type finally determined type feature table in weight and value, be not less than the decision threshold in the type mark sheet.That is, when eigenwert search the weight of eigenwert in a certain type feature table that module 501 finds and value, when being more than or equal to the decision threshold in the type mark sheet, the task type in the type mark sheet is the task type of this task.
In enforcement, task type identification module 502 specifically for:
A type feature table is chosen as target type mark sheet in the N number of type feature table prestored;
Determine the weight of eigenwert in current target type mark sheet found, calculate weight and value;
Compare this and be worth and the decision threshold in this target type mark sheet;
If this and value are not less than the decision threshold in this target type mark sheet, then determine that the task type in this target type mark sheet is the task type of task;
If this and value are less than the decision threshold in this target type mark sheet, in remaining type feature table, then choose a type feature table as target type mark sheet, perform and determine the weight of eigenwert in current target type mark sheet that find, that calculate weight with step that is value and subsequent step.
The present invention also discloses a kind of mobile terminal, this running of mobile terminal Android system, and comprises the device of above-mentioned any one adjustment CPU frequency of operation.
Mobile terminal disclosed by the invention configures CPU frequency of operation according to current with the task of user interactions, therefore, the task of running background can be reduced on the impact of CPU frequency of operation, thus reduce the frequency of operation of CPU, the power consumption of reduction CPU further, and can not affect with the travelling speed of the task of user interactions, therefore still can ensure Consumer's Experience.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, 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.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (12)

1. regulate a method for CPU frequency of operation, be applied to the mobile terminal running Android system, it is characterized in that, described method comprises:
Determine the task of being in front stage operation;
Utilize the mapping relations of task and the task type prestored, determine the task type of described task;
Utilize the mapping relations of task type and the CPU frequency of operation prestored, determine the CPU frequency of operation corresponding with described task type;
The CPU frequency of operation corresponding with described task type is utilized to configure the frequency of operation of described CPU.
2. method according to claim 1, is characterized in that, also comprises:
The task type of identification mission;
The task type of corresponding stored task and described task, to set up the mapping relations of task and task type.
3. method according to claim 2, is characterized in that, the task type of described identification mission, comprising:
The eigenwert that described task uses is searched in the first file;
Utilize the N number of type feature table prestored, and the eigenwert of described task use determines the task type of described task, wherein, each task type configures a type feature table, described type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert, the eigenwert found in the type feature table for the configuration of described task type weight and value, be not less than the decision threshold in described type feature table;
Wherein, N be greater than 1 integer.
4. method according to claim 3, is characterized in that, N number of type feature table that described utilization prestores, and the eigenwert of described task use determines the task type of described task, comprising:
A type feature table is chosen as target type mark sheet in the N number of type feature table prestored;
Determine the weight of eigenwert in current target type mark sheet found, calculate weight and value;
The relatively more described decision threshold with being worth and in described target type mark sheet;
If described and value is not less than the decision threshold in described target type mark sheet, then the task type determining in described target type mark sheet is the task type of described task;
If described and value is less than the decision threshold in described target type mark sheet, in remaining type feature table, then choose a type feature table as target type mark sheet, perform and determine the weight of eigenwert in current target type mark sheet that find, that calculate weight with step that is value and subsequent step.
5. the method according to claim 3 or 4, is characterized in that, described first file comprises: file classes.dex file being carried out to decompiling formation, or file odex file being carried out to decompiling formation.
6. the method according to claim 3 or 4, is characterized in that, described task comprises: preset the movable component defined in the Android application register-file of application and serviced component in described mobile terminal.
7. regulate a device for CPU frequency of operation, be applied to the mobile terminal running Android system, it is characterized in that, described device comprises:
Task determining unit, for determining the task of being in front stage operation;
Task type determining unit, for utilizing the mapping relations of task and the task type prestored, determines the task type of described task;
Frequency of operation determining unit, for utilizing the mapping relations of task type and the CPU frequency of operation prestored, determines the CPU frequency of operation corresponding with described task type;
Dispensing unit, for the frequency of operation utilizing the CPU frequency of operation corresponding with described task type to configure described CPU.
8. device according to claim 7, is characterized in that, also comprises:
Task type recognition unit, for the task type of identification mission;
Processing unit, for the task type of corresponding stored task and described task, to set up the mapping relations of task and task type.
9. device according to claim 8, is characterized in that, described task type recognition unit comprises:
Eigenwert searches module, for searching the eigenwert that described task uses in the first file;
Task type identification module, for utilizing the N number of type feature table prestored, and the eigenwert of described task use determines the task type of described task, wherein, each task type configures a type feature table, described type feature table comprises the weight of task type, decision threshold, multiple eigenwert and each eigenwert, the eigenwert found in the type feature table for the configuration of described task type weight and value, be not less than the decision threshold in described type feature table; N be greater than 1 integer.
10. device according to claim 9, is characterized in that, described task type identification module specifically for:
A type feature table is chosen as target type mark sheet in the N number of type feature table prestored;
Determine the weight of eigenwert in current target type mark sheet found, calculate weight and value;
The relatively more described decision threshold with being worth and in described target type mark sheet;
If described and value is not less than the decision threshold in described target type mark sheet, then the task type determining in described target type mark sheet is the task type of described task;
If described and value is less than the decision threshold in described target type mark sheet, in remaining type feature table, then choose a type feature table as target type mark sheet, perform and determine the weight of eigenwert in current target type mark sheet that find, that calculate weight with step that is value and subsequent step.
11. devices according to claim 9 or 10, it is characterized in that, described eigenwert searches the eigenwert that module task of searching in file classes.dex file being carried out to decompiling formation uses, or the eigenwert that task of searching in file odex file being carried out to decompiling formation uses.
12. 1 kinds of mobile terminals, described running of mobile terminal Android system, is characterized in that, described mobile terminal also comprises the device of the adjustment CPU frequency of operation according to any one of claim 7 to 11.
CN201410803357.3A 2014-12-19 2014-12-19 Adjust the method, device and mobile terminal of CPU working frequencies Active CN104407690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410803357.3A CN104407690B (en) 2014-12-19 2014-12-19 Adjust the method, device and mobile terminal of CPU working frequencies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410803357.3A CN104407690B (en) 2014-12-19 2014-12-19 Adjust the method, device and mobile terminal of CPU working frequencies

Publications (2)

Publication Number Publication Date
CN104407690A true CN104407690A (en) 2015-03-11
CN104407690B CN104407690B (en) 2018-03-06

Family

ID=52645327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410803357.3A Active CN104407690B (en) 2014-12-19 2014-12-19 Adjust the method, device and mobile terminal of CPU working frequencies

Country Status (1)

Country Link
CN (1) CN104407690B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045369A (en) * 2015-06-19 2015-11-11 北京大学深圳研究生院 Dynamic CPU frequency adjustment method based on historical user-interaction information
CN105653934A (en) * 2015-12-25 2016-06-08 惠州Tcl移动通信有限公司 Mobile terminal and application protection method thereof
CN106066769A (en) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 The processing method of a kind of mobile terminal and mobile terminal
CN106155733A (en) * 2015-04-23 2016-11-23 腾讯科技(深圳)有限公司 A kind of method and apparatus running application program
CN107193660A (en) * 2017-05-25 2017-09-22 深信服科技股份有限公司 The method of adjustment and its device of cpu frequency under a kind of NUMA architecture
CN108334405A (en) * 2017-01-20 2018-07-27 阿里巴巴集团控股有限公司 Frequency isomery CPU, frequency isomery implementation method, device and method for scheduling task
CN108614697A (en) * 2016-12-13 2018-10-02 杭州华为数字技术有限公司 Backstage Dex compiles the method and device of management and control
CN109889896A (en) * 2019-03-27 2019-06-14 努比亚技术有限公司 Method, mobile terminal and the storage medium of dynamic regulation CPU running frequency
CN109947231A (en) * 2019-05-22 2019-06-28 芯翼信息科技(上海)有限公司 A kind of low-power consumption mode switching method based on system on chip
CN110442226A (en) * 2019-08-09 2019-11-12 上海工程技术大学 A kind of the particular task terminal handler frequency modulation method and device of task based access control type
WO2021103618A1 (en) * 2019-11-29 2021-06-03 上海商汤智能科技有限公司 Configuration of operating frequency of chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104690A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and device for saving electric energy as well as mobile terminal
US20140075224A1 (en) * 2012-09-10 2014-03-13 Jae-gon Lee Method of performing dynamic voltage and frequency scaling operation, application processor performing method, and mobile device comprising application processor
CN103885839A (en) * 2014-04-06 2014-06-25 孙凌宇 Cloud computing task scheduling method based on multilevel division method and empowerment directed hypergraphs
CN103941871A (en) * 2014-04-24 2014-07-23 可牛网络技术(北京)有限公司 Method and equipment for controlling hardware operating state of intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104690A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and device for saving electric energy as well as mobile terminal
US20140075224A1 (en) * 2012-09-10 2014-03-13 Jae-gon Lee Method of performing dynamic voltage and frequency scaling operation, application processor performing method, and mobile device comprising application processor
CN103885839A (en) * 2014-04-06 2014-06-25 孙凌宇 Cloud computing task scheduling method based on multilevel division method and empowerment directed hypergraphs
CN103941871A (en) * 2014-04-24 2014-07-23 可牛网络技术(北京)有限公司 Method and equipment for controlling hardware operating state of intelligent terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155733B (en) * 2015-04-23 2020-07-17 腾讯科技(深圳)有限公司 Method and device for running application program
CN106155733A (en) * 2015-04-23 2016-11-23 腾讯科技(深圳)有限公司 A kind of method and apparatus running application program
CN105045369A (en) * 2015-06-19 2015-11-11 北京大学深圳研究生院 Dynamic CPU frequency adjustment method based on historical user-interaction information
CN105045369B (en) * 2015-06-19 2018-11-27 北京大学深圳研究生院 A kind of CPU dynamic frequency method based on user interaction history information
CN105653934A (en) * 2015-12-25 2016-06-08 惠州Tcl移动通信有限公司 Mobile terminal and application protection method thereof
CN106066769A (en) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 The processing method of a kind of mobile terminal and mobile terminal
CN108614697A (en) * 2016-12-13 2018-10-02 杭州华为数字技术有限公司 Backstage Dex compiles the method and device of management and control
CN108334405A (en) * 2017-01-20 2018-07-27 阿里巴巴集团控股有限公司 Frequency isomery CPU, frequency isomery implementation method, device and method for scheduling task
CN107193660A (en) * 2017-05-25 2017-09-22 深信服科技股份有限公司 The method of adjustment and its device of cpu frequency under a kind of NUMA architecture
CN109889896A (en) * 2019-03-27 2019-06-14 努比亚技术有限公司 Method, mobile terminal and the storage medium of dynamic regulation CPU running frequency
CN109889896B (en) * 2019-03-27 2022-05-27 努比亚技术有限公司 Method for dynamically adjusting CPU operation frequency, mobile terminal and storage medium
CN109947231A (en) * 2019-05-22 2019-06-28 芯翼信息科技(上海)有限公司 A kind of low-power consumption mode switching method based on system on chip
CN109947231B (en) * 2019-05-22 2019-08-02 芯翼信息科技(上海)有限公司 A kind of low-power consumption mode switching method based on system on chip
CN110442226A (en) * 2019-08-09 2019-11-12 上海工程技术大学 A kind of the particular task terminal handler frequency modulation method and device of task based access control type
CN110442226B (en) * 2019-08-09 2023-05-30 上海工程技术大学 Task type-based frequency modulation method and device for specific task terminal processor
WO2021103618A1 (en) * 2019-11-29 2021-06-03 上海商汤智能科技有限公司 Configuration of operating frequency of chip

Also Published As

Publication number Publication date
CN104407690B (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN104407690A (en) Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit)
US9160171B2 (en) Pre-processing of data for automatic generation control
US20160116954A1 (en) Dynamic adjustment of cpu operating frequency
US20170195969A1 (en) Mobile terminal managing method and system, mobile terminal
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
WO2015172034A3 (en) Automation operating and management system
JP2017505092A5 (en)
CN102779062A (en) Method and device for controlling number of threads accessing system resources
CN104239153A (en) Method and device for balancing multi-core CPU load
CN106528290A (en) Resource scheduling method for mobile terminal and mobile terminal
CN104794005A (en) Method and device for optimizing CPU running frequencies
WO2020024464A1 (en) Maximum power point tracking method and device for photovoltaic cell and storage medium
CN103902357A (en) Application program management system and method
CN104953814B (en) A kind of method and apparatus for controlling pfc circuit
US20190086981A1 (en) Obtaining smoother power profile and improved peak-time throughput in datacenters
CN105677445A (en) Application installation managing method, device and intelligent terminal
CN105262890A (en) Information update control system and method for applications on portable electronic device
CN107272873A (en) A kind of application control method and apparatus of smart machine
CN105528203A (en) CPU use control system and method
CN105094979A (en) PaaS flexible resource management mechanism based on application features
CN103645935A (en) Device and method for adjusting JVM (java virtual machine) parameters in domestic environment
CN105786152A (en) Control method and electronic device
CN104699224A (en) Power-saving control method
CN103095833B (en) Cloud service system update method and device
CN104184612A (en) Power supply fault processing method and device

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 101-105, floor 1, Chuangda building, No. 9, Qinghua East Road, Haidian District, Beijing 100083 (Dongsheng District)

Patentee after: Thunder Software Technology Co., Ltd.

Address before: 100191 Beijing Haidian District Lung Cheung Road No. 1 Tai Xiang business building 4 layer 401-409

Patentee before: Thunder Software Technology Co., Ltd.