CN104731304A - Adjusting method and device for CPU frequency adjustment mode in terminal - Google Patents

Adjusting method and device for CPU frequency adjustment mode in terminal Download PDF

Info

Publication number
CN104731304A
CN104731304A CN201510124883.1A CN201510124883A CN104731304A CN 104731304 A CN104731304 A CN 104731304A CN 201510124883 A CN201510124883 A CN 201510124883A CN 104731304 A CN104731304 A CN 104731304A
Authority
CN
China
Prior art keywords
hopping pattern
scene
cpu
bag
name information
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
CN201510124883.1A
Other languages
Chinese (zh)
Other versions
CN104731304B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510124883.1A priority Critical patent/CN104731304B/en
Publication of CN104731304A publication Critical patent/CN104731304A/en
Application granted granted Critical
Publication of CN104731304B publication Critical patent/CN104731304B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an adjusting method and device for a CPU frequency adjustment mode in a terminal. The method comprises the steps that when a scene triggered by a start-up operation of an application program is detected to enter an event, and a current scene course package corresponding to the scene entering the event is obtained; the CPU frequency adjustment mode in the terminal is adjusted according to the obtained current scene course package and a prestored frequency adjustment mode list. By obtaining the course package and the prestored frequency adjustment mode list, the adjustment of the CPU frequency adjustment mode in the terminal is achieved, the adjustment technology of an existing frequency adjustment mode is optimized, the power dissipation of the moving terminal is lowered, and the performance of the moving terminal is improved.

Description

The method of adjustment of CPU hopping pattern and device in a kind of terminal
Technical field
The present invention relates to computer technology, particularly relate to method of adjustment and the device of CPU hopping pattern in a kind of terminal.
Background technology
Along with the fast development of mobile terminal technology (such as, smart mobile phone and panel computer etc.), the performance of mobile terminal processor is also improving thereupon, and accordingly, the power consumption of mobile terminal also increases thereupon.
CPU (the central processing unit of mobile terminal, Central Processing Unit) not operate in a frequency always, but frequency modulation can be carried out according to the demand of reality, make CPU operate in different frequencies, thus reach the object of power consumption and best performance.At present, the hopping pattern of CPU mainly contains most battery saving mode (powersave), arranges pattern (ondemand) and peak performance pattern (perform) etc. as required.
In prior art, in mobile terminal, CPU generally uses single ondemand pattern to carry out frequency modulation, but ondemand pattern frequency modulation speed is slow, needs the adjustment of one-level one-level, limits the performance of mobile terminal, also increase power consumption.Such as, when user uses mobile terminal to play games, CPU needs to process mass data, but slowly rises due to cpu frequency, thus the data processing of needs that cause playing occurs that card pauses or deadlock phenomenon not in time; Again such as, mobile terminal is when idle pulley (idle), only need lowest performance in theory, but under ondemand pattern, if backstage also has process to run, load can change, and this just causes still constantly to carry out frequency modulation at CPU, which adds power consumption, affect the optimization of performance.
Summary of the invention
In view of this, the embodiment of the present invention provides method of adjustment and the device of CPU hopping pattern in a kind of terminal, to optimize the adjustment technology of existing hopping pattern, reduces mobile terminal power consumption, improves mobile terminal performance.
First aspect, embodiments provides the method for adjustment of CPU hopping pattern in a kind of terminal, comprising:
Detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
According to the described current scene process bag obtained and the hopping pattern list prestored, the hopping pattern of CPU in adjustment terminal.
Second aspect, the embodiment of the present invention additionally provides the adjusting gear of CPU hopping pattern in a kind of terminal, comprising:
Scene process bag acquiring unit, for detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
Hopping pattern adjustment unit, for according to the described current scene process bag obtained and the hopping pattern list prestored, adjusts the hopping pattern of CPU in terminal.
The method of adjustment of CPU hopping pattern and device in a kind of terminal that the embodiment of the present invention provides, by the process bag obtained and the hopping pattern list prestored, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
The method of adjustment process flow diagram of CPU adjustment modes in a kind of terminal that Fig. 1 provides for the embodiment of the present invention one;
The method of adjustment process flow diagram of CPU adjustment modes in a kind of terminal that Fig. 2 provides for the embodiment of the present invention two;
The method of adjustment process flow diagram of CPU hopping pattern in a kind of terminal that Fig. 3 provides for the embodiment of the present invention three;
The method of adjustment process flow diagram of CPU hopping pattern in a kind of terminal that Fig. 4 provides for the embodiment of the present invention four;
The method of adjustment process flow diagram of CPU hopping pattern in a kind of terminal that Fig. 5 provides for the embodiment of the present invention five;
The structured flowchart of the adjusting gear of CPU hopping pattern in a kind of terminal that Fig. 6 provides for the embodiment of the present invention six;
The structured flowchart of the adjusting gear of CPU hopping pattern in a kind of terminal that Fig. 7 provides for the embodiment of the present invention seven.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Embodiment one
The method of adjustment process flow diagram of CPU adjustment modes in a kind of terminal that Fig. 1 provides for the embodiment of the present invention one; The method can be performed by the adjusting gear of CPU adjustment modes in terminal, wherein this device is realized by software and/or hardware, and the part that generally can be used as terminal is integrated in terminal, described terminal can comprise: the intelligent electronic device such as smart mobile phone, panel computer, does not limit this.The method comprises:
Step 101: detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene.
In the present embodiment, application program foreground initiation operation can comprise: user opens the operation of a new application program, or the operation that an application program that backstage has been opened is opened on foreground by user again.
Wherein, when user performs above-mentioned application program foreground initiation operation, the scene producing correspondence can be triggered and enter event, when terminal detects that above-mentioned scene enters event, can obtain corresponding current scene process bag, this current scene process bag is corresponding with the application program of foreground initiation.
In general, a terminal comprises multiple application program and operates for user, be considered to when opening certain application program enter certain scene, such as, when " the micro-letter " during user opens a terminal is applied, at this moment system to enter in the scene of " instant chat " (" micro-letter " apply main application be " instant chat "), and the scene producing correspondence enters event, terminal enters event according to this scene detected, can obtain the process bag that this " instant chat " is applied.Preferably, by the process manager of system, described current scene process bag can be obtained.
In the present embodiment, terminal is after acquisition current scene process bag, and can obtain the parameters such as internal memory shared by the bag name information of this process bag, process opening time and process, the present embodiment does not limit this simultaneously.
Described scene comprises " page browsing ", " instant chat ", " robbing ticket online " etc., there is one or more process bag corresponded in described each scene, when user to open on foreground " browser " apply time, namely system enters the scene of page browsing, enter event according to " page browsing " this scene, will obtain and enter the corresponding process bag of event with " page browsing " scene.
Step 102: according to the described current scene process bag obtained and the hopping pattern list prestored, the hopping pattern of CPU in adjustment terminal.
In the present embodiment, can comprise in the described hopping pattern list prestored: the bag name information of each scene process bag and the hopping pattern corresponding with bag name information; Also can comprise: the bag name information of scene process bag, the scene corresponding with bag name information and the hopping pattern corresponding with scene, the present embodiment does not limit this.
Described hopping pattern can comprise: most battery saving mode, arrange pattern and peak performance pattern as required.Wherein, most battery saving mode, at least corresponding concrete scene process bag of any one hopping pattern in pattern and peak performance pattern or a concrete scene are set as required.
Wherein, described most battery saving mode specifically refers to that CPU is according to the underrun of setting minimum frequency, but power saving system response time is slow; The pattern that arranges as required specifically refers to the overclocking pattern of system default, and namely CPU automatically adjusts between minimax frequency; Peak performance pattern specifically refers to that CPU runs according to the optimal frequency in setting range, and machine runs the most smooth, and power consumption is also maximum.It will be understood by those skilled in the art that, described hopping pattern is except can comprising above-mentioned Three models, other forms of hopping pattern can also be comprised, such as: AC cycles pattern (interactive), conservative mode (conservative) or user isolation pattern (userspace) etc., the present embodiment does not limit this.
Described according to the current scene process bag obtained and the hopping pattern list prestored, in adjustment terminal, the hopping pattern of CPU specifically can comprise: according to the bag name information of the current scene process bag obtained, search the hopping pattern list prestored, obtain corresponding hopping pattern, according to the described hopping pattern obtained, the hopping pattern of CPU in adjustment terminal.
For example, when user to open on foreground " browser " apply time, can obtain apply corresponding process bag with " browser " bag name information (such as, com.example.test), according to the bag name information of this process bag, inquire about the hopping pattern list prestored, obtain the hopping pattern corresponding with com.example.test (such as, most battery saving mode), and the CPU hopping pattern in present terminal is adjusted to most battery saving mode.
The method of adjustment of CPU hopping pattern in a kind of terminal that the present embodiment provides, by the process bag obtained and the hopping pattern list prestored, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment two
The method of adjustment process flow diagram of CPU adjustment modes in a kind of terminal that Fig. 2 provides for the embodiment of the present invention two.The present embodiment is optimized based on above-described embodiment, in the present embodiment, preferably by according to the described current scene process bag obtained and the hopping pattern list prestored, in adjustment terminal, the hopping pattern of CPU is optimized for: according to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtain the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene; According to the hopping pattern of CPU in the described target hopping pattern adjustment terminal obtained; Wherein, described hopping pattern list comprises the bag name information of scene process bag, the scene corresponding with bag name information and the hopping pattern corresponding with scene.
Accordingly, the method for the present embodiment comprises:
Step 201: detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene.
Step 202: according to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene.
The bag name that described scene carries out wrapping can independently be arranged by user or is fixedly installed by system, and the bag name information of each scene process bag is different, can use Chinese character, and letter and/or numeral are named, and the bag name of each scene process bag are distinguished.
Described hopping pattern list comprises the bag name information of scene process bag, the scene corresponding with bag name information, and the hopping pattern corresponding with scene.
In the present embodiment, corresponding with bag name information scene can comprise: a CPU takies scene, the 2nd CPU takies scene and the 3rd CPU takies scene.
The hopping pattern corresponding with scene can comprise: take most battery saving mode corresponding to scene with a CPU, take the pattern that arranges as required corresponding to scene and take peak performance pattern corresponding to scene with the 3rd CPU with the 2nd CPU.Wherein, a CPU takies scene and comprises following at least one item: page browsing, music and e-book reading; 2nd CPU takies scene and comprises following at least one item: the low load game of instant chat, online shopping, video playback and default CPU; 3rd CPU takies scene and comprises following at least one item: rob ticket, default CPU high capacity game, Web bank and on-line payment online.
Wherein, table 1 gives a kind of content signal table of hopping pattern list.
Table 1
According to the bag name information of current scene process bag, inquire about described hopping pattern list, the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene can be obtained.
For example, in hopping pattern list as shown in table 1, if the bag name information of the current scene process bag obtained is a1, then inquire about hopping pattern list, the target scene corresponding with the bag name a1 of scene process bag is " page browsing " that a CPU takies in scene, namely current scene is " page browsing ", and according to the scene information of " page browsing ", obtaining corresponding hopping pattern is most battery saving mode.
Step 203: according to the hopping pattern of CPU in described target hopping pattern adjustment terminal.
In the present embodiment, the hopping pattern adjusting CPU in terminal is carried out according to target hopping pattern, for example, when user opens a certain application program, terminal can detect that operating triggered scene by application program foreground initiation enters event, event is entered according to this scene, the process bag that current scene is corresponding can be obtained, if the bag of the current scene process bag obtained is called c1, in CPU hopping pattern list then shown in table 1, inquire about the target scene corresponding with the bag name c1 of current scene process bag, the target scene inquired is " robbing ticket online " that the 3rd CPU takies in scene, obtain " robbing ticket online " this target scene, according to " robbing ticket online " this target scene obtained, inquiring about and obtaining the target hopping pattern corresponding with " robbing ticket online " this target scene is peak performance pattern, according to target hopping pattern, by the hopping pattern of CPU in present terminal adjustment peak performance pattern.
Embodiments provide the method for adjustment of CPU hopping pattern in a kind of terminal, according to bag name information and the default hopping pattern list of the scene process bag obtained, obtain the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment three
The schematic flow sheet of the method for adjustment of CPU hopping pattern in a kind of terminal that Fig. 3 provides for the embodiment of the present invention three, the present embodiment adds in hopping pattern list treatment step when not comprising the target scene corresponding with the bag name information of current scene process bag on the basis of embodiment two, and the method comprises:
Step 301: detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene.
Step 302: judge whether comprise the target scene corresponding with the bag name information of current scene process bag in hopping pattern list: if so, perform step 303; Otherwise, perform step 305.
Consider Develop Application System and renewal speed, relevant information (the bag name information of current scene process bag of current scene is not probably comprised in the content stored in described hopping pattern list, the target scene corresponding with the bag name of current scene process bag and the hopping pattern corresponding with described target scene), so when often appearing at inquiry hopping pattern list, the target scene of the bag name correspondence of current scene process bag can not be obtained, and then the situation of hopping pattern of CPU corresponding to this target scene can not be obtained.
Step 303: according to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene, performs step 304.
Step 304: according to the hopping pattern of CPU in described target hopping pattern adjustment terminal.
Step 305: create set scene corresponding with described bag name information, and the CPU recording described current scene process bag takies situation, performs step 306.
If do not comprise the target scene corresponding with the bag name information of described current scene process bag in described hopping pattern list, create set scene, make the scene of setting corresponding with process package informatin, and the CPU recording current scene process bag takies situation.
Step 306: take situation according to described CPU, determines the hopping pattern corresponding with described bag name information.
Generally speaking, it is different that the CPU of different scene process bags takies situation, takies situation according to CPU, can determine hopping pattern corresponding with it.
In one preferred embodiment, different CPU takies situation, corresponding different hopping pattern.Such as, when CPU takies 0 ~ 20%, the most battery saving mode of correspondence, when CPU takies 21 ~ 80%, correspondence arranges pattern as required, when CPU takies 81 ~ 100%, corresponding peak performance pattern.
For example, if the bag name information of the current scene process bag obtained is c5, after the list of inquiry hopping pattern, do not find the target scene corresponding with the bag name information c5 of process bag, now, the scene " three-dimensional picture " creating a setting is corresponding with the bag name information c5 of process bag, and records the situation that takies (100%) of the CPU of current scene process bag, take the situation of 100% according to CPU, determine that the hopping pattern corresponding with the bag name information of process bag is peak performance pattern.
Step 307: by the bag name information of described current scene process bag, the corresponding relation between the set scene of establishment and the hopping pattern corresponding with described bag name information, writes in described hopping pattern list.
Described hopping pattern list can upgrade dynamically, the example continued in the present embodiment in step 306, writes the bag name information c5 of current scene process bag, corresponding with the bag name information c5 of process bag " three-dimensional draws " scene and the highest hopping pattern corresponding with " three-dimensional is drawn " scene in hopping pattern list.When the bag name information obtaining process bag is again c5, hopping pattern list can be inquired about, be conducive to obtaining " three-dimensional draw " scene corresponding with bag name information c5 and the highest hopping pattern corresponding with bag name information c5.
The embodiment of the present invention three provides the method for adjustment of CPU hopping pattern in a kind of terminal, the basis of embodiment two adds the step not comprising the target scene corresponding with the bag name information of current scene process bag in hopping pattern list, situation is taken according to CPU, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment four
The method of adjustment process flow diagram of CPU hopping pattern in a kind of terminal that Fig. 4 provides for the embodiment of the present invention four, the method carries out further refinement to step 203 on the basis of embodiment two, and the method comprises:
Step 401: detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene.
Step 402: according to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene.
Step 403: in current terminal CPU hopping pattern and described target hopping pattern inconsistent time, CPU hopping pattern in current terminal is adjusted to described target hopping pattern.
If target hopping pattern is with when in terminal, the hopping pattern of CPU is consistent, in terminal, the hopping pattern of CPU is constant; If in current terminal CPU hopping pattern and described target hopping pattern inconsistent time, CPU hopping pattern in current terminal is adjusted to described target hopping pattern.
For example, if user is when application program foreground opens certain application program, system enters certain scene, the process bag of current scene can be obtained, as shown in table 1, if the bag name information of the process bag of the current scene obtained is b1, the target scene corresponding with the bag name information b1 of process bag is second " instant chat " scene taking in scene, and the hopping pattern corresponding with " instant chat " scene arranges pattern as required.If CPU hopping pattern is for arrange pattern as required in present terminal, then in terminal, the hopping pattern of CPU remains unchanged; Otherwise, CPU hopping pattern in terminal is adjusted to pattern is set as required.
The embodiment of the present invention four provides the method for adjustment of CPU hopping pattern in a kind of terminal, further refinement has been carried out to step 203 in the basis of embodiment two, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment five
The method of adjustment of CPU hopping pattern in a kind of terminal that Fig. 5 provides for the present embodiment five, on the basis of embodiment two, add the step judging whether to comprise process bag corresponding to the hopping pattern higher than described target hopping pattern rank in system, the method comprises:
Step 501: detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene.
Step 502: according to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene.
Step 503: judge whether comprise process bag corresponding to the hopping pattern higher than described target hopping pattern rank in system: if so, perform step 504; Otherwise, perform step 505.
Often there is the situation that multiple application software runs in terminal, so system comprises multiple process bag, the hopping pattern that multiple process bag is corresponding also also exists difference.
Step 504: use the hopping pattern higher than described target hopping pattern rank to replace described target hopping pattern, performs step 505.
Wherein, being superior to of peak performance pattern arranges pattern as required, and what arrange pattern as required is superior to most battery saving mode.
For example, application program front stage operation " browser " application program, during running background " micro-letter " application program, the current scene be so equivalent in terminal is " page browsing ", " instant chat " scene is at running background, obtain the process bag corresponding respectively with " browser " and " micro-letter ", according to the bag name information a1 of the process bag corresponding with " browser ", the list of inquiry hopping pattern, as shown in table 1, obtain current scene when being " page browsing ", the hopping pattern of CPU is most battery saving mode.But the bag according to process bag corresponding to " the micro-letter " with running background is called b1, by hopping pattern list, obtains the hopping pattern of the CPU corresponding with " instant chat " scene for arrange pattern as required.Although the application program of application program front stage operation " page browsing " scene, because arrange the rank being superior to most battery saving mode of pattern as required, so, the hopping pattern of CPU is adjusted to corresponding with " micro-letter " application program of running background and pattern is set as required.
Step 505: according to the hopping pattern of CPU in the described target hopping pattern adjustment terminal obtained.
The present embodiment five provides the method for adjustment of CPU hopping pattern in a kind of terminal, the present embodiment adds the step judging whether to comprise process bag corresponding to the hopping pattern higher than described target hopping pattern rank in system on the basis of embodiment two, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment six
The structured flowchart of the adjusting gear of CPU hopping pattern in a kind of terminal that Fig. 6 provides for the embodiment of the present invention six, this device is located in terminal, and the method for the application embodiment of the present invention realizes the adjustment of CPU hopping pattern in terminal, and this device comprises:
Scene process bag acquiring unit 601, for detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
Hopping pattern adjustment unit 602, for according to the described current scene process bag obtained and the hopping pattern list prestored, adjusts the hopping pattern of CPU in terminal.
The present embodiment six provides the adjusting gear of CPU hopping pattern in a kind of terminal, by scene process bag acquiring unit and scene process bag acquiring unit, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Embodiment seven
The structured flowchart of the adjusting gear of CPU hopping pattern in a kind of terminal that Fig. 7 provides for the embodiment of the present invention seven, this device is located in terminal, and the method for the application embodiment of the present invention realizes the adjustment of CPU hopping pattern in terminal, and this device comprises:
Scene process bag acquiring unit 701, for detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
Hopping pattern adjustment unit 702, for according to the described current scene process bag obtained and the hopping pattern list prestored, adjusts the hopping pattern of CPU in terminal.
Concrete, described hopping pattern adjustment unit 702 comprises the first hopping pattern adjustment subelement 703 and the second hopping pattern adjustment subelement 704;
Described first hopping pattern adjustment subelement 703, for the bag name information according to described current scene process bag, inquires about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene.
Described second hopping pattern adjustment subelement 704, for the hopping pattern according to CPU in the target hopping pattern adjustment terminal of described acquisition.
Further, described second hopping pattern adjustment subelement 704, specifically for: in current terminal CPU hopping pattern and described target hopping pattern inconsistent time, CPU hopping pattern in current terminal is adjusted to described target hopping pattern.
Described hopping pattern list comprises the bag name information of scene process bag, the scene corresponding with bag name information and the hopping pattern corresponding with scene.
Concrete, the scene corresponding with bag name information comprises: a CPU takies scene, the 2nd CPU takies scene and the 3rd CPU takies scene.
Wherein, a CPU takies scene and comprises following at least one item: page browsing, music and e-book reading; 2nd CPU takies scene and comprises following at least one item: the low load game of instant chat, online shopping, video playback and default CPU; 3rd CPU takies scene and comprises following at least one item: rob ticket, default CPU high capacity game, Web bank and on-line payment online.
The hopping pattern corresponding with scene comprises: take most battery saving mode corresponding to scene with a CPU, take the pattern that arranges as required corresponding to scene and take peak performance pattern corresponding to scene with the 3rd CPU with the 2nd CPU.
Described device also comprises hopping pattern list update unit 705 and hopping pattern replacement unit 706, described hopping pattern list update unit 705, for:
If do not comprise the target scene corresponding with the bag name information of described current scene process bag in described hopping pattern list, then create set scene corresponding with described bag name information, and the CPU recording described current scene process bag takies situation;
Take situation according to described CPU, determine the hopping pattern corresponding with described bag name information;
By the bag name information of described current scene process bag, the corresponding relation between the set scene of establishment and the hopping pattern corresponding with described bag name information, writes in described hopping pattern list.
Described hopping pattern replacement unit 706, before adjusting the hopping pattern of CPU in terminal according to the described target hopping pattern obtained, if system process comprises process bag corresponding to the hopping pattern higher than described target hopping pattern rank, then the hopping pattern higher than described target hopping pattern rank is used to replace described target hopping pattern.
Wherein, being superior to of peak performance pattern arranges pattern as required, and what arrange pattern as required is superior to most battery saving mode.
The present embodiment seven provides the adjusting gear of CPU hopping pattern in a kind of terminal, the present embodiment adds more functional unit on the basis of embodiment six, realize the adjustment of CPU hopping pattern in terminal, optimize the adjustment technology of existing hopping pattern, reduce mobile terminal power consumption, improve mobile terminal performance.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (14)

1. the method for adjustment of central processor CPU hopping pattern in terminal, is characterized in that, comprising:
Detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
According to the described current scene process bag obtained and the hopping pattern list prestored, the hopping pattern of CPU in adjustment terminal.
2. method according to claim 1, is characterized in that, according to the described current scene process bag obtained and the hopping pattern list prestored, in adjustment terminal, the hopping pattern of CPU comprises:
According to the bag name information of described current scene process bag, inquire about described hopping pattern list, obtain the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene;
According to the hopping pattern of CPU in the described target hopping pattern adjustment terminal obtained;
Wherein, described hopping pattern list comprises the bag name information of scene process bag, the scene corresponding with bag name information and the hopping pattern corresponding with scene.
3. method according to claim 2, is characterized in that, the scene corresponding with bag name information comprises: a CPU takies scene, the 2nd CPU takies scene and the 3rd CPU takies scene;
The hopping pattern corresponding with scene comprises: take most battery saving mode corresponding to scene with a CPU, take the pattern that arranges as required corresponding to scene and take peak performance pattern corresponding to scene with the 3rd CPU with the 2nd CPU.
4. method according to claim 3, is characterized in that, a CPU takies scene and comprises following at least one item: page browsing, music and e-book reading;
2nd CPU takies scene and comprises following at least one item: the low load game of instant chat, online shopping, video playback and default CPU;
3rd CPU takies scene and comprises following at least one item: rob ticket, default CPU high capacity game, Web bank and on-line payment online.
5. according to the method in claim 2 or 3, it is characterized in that, also comprise:
If do not comprise the target scene corresponding with the bag name information of described current scene process bag in described hopping pattern list, then create set scene corresponding with described bag name information, and the CPU recording described current scene process bag takies situation;
Take situation according to described CPU, determine the hopping pattern corresponding with described bag name information;
By the bag name information of described current scene process bag, the corresponding relation between the set scene of establishment and the hopping pattern corresponding with described bag name information, writes in described hopping pattern list.
6. according to the method in claim 2 or 3, it is characterized in that, comprise according to the hopping pattern of CPU in the described target hopping pattern adjustment terminal obtained:
In current terminal CPU hopping pattern and described target hopping pattern inconsistent time, CPU hopping pattern in current terminal is adjusted to described target hopping pattern.
7. method according to claim 6, is characterized in that, before the hopping pattern according to CPU in the described target hopping pattern adjustment terminal obtained, also comprises:
If system process comprises process bag corresponding to the hopping pattern higher than described target hopping pattern rank, then the hopping pattern higher than described target hopping pattern rank is used to replace described target hopping pattern;
Wherein, being superior to of peak performance pattern arranges pattern as required, and what arrange pattern as required is superior to most battery saving mode.
8. the adjusting gear of CPU hopping pattern in terminal, is characterized in that, comprising:
Scene process bag acquiring unit, for detect by application program foreground initiation operate triggered scene enter event time, obtain enter current scene process bag corresponding to event with described scene;
Hopping pattern adjustment unit, for according to the described current scene process bag obtained and the hopping pattern list prestored, adjusts the hopping pattern of CPU in terminal.
9. device according to claim 8, is characterized in that, described hopping pattern adjustment unit comprises: the first hopping pattern adjustment subelement and the second hopping pattern adjustment subelement;
Described first hopping pattern adjustment subelement, for the bag name information according to described current scene process bag, inquires about described hopping pattern list, obtains the target scene corresponding with described bag name information and the target hopping pattern corresponding with described target scene;
Described second hopping pattern adjustment subelement, for the hopping pattern according to CPU in the target hopping pattern adjustment terminal of described acquisition;
Wherein, described hopping pattern list comprises the bag name information of scene process bag, the scene corresponding with bag name information and the hopping pattern corresponding with scene.
10. device according to claim 9, is characterized in that, the scene corresponding with bag name information comprises: a CPU takies scene, the 2nd CPU takies scene and the 3rd CPU takies scene;
The hopping pattern corresponding with scene comprises: take most battery saving mode corresponding to scene with a CPU, take the pattern that arranges as required corresponding to scene and take peak performance pattern corresponding to scene with the 3rd CPU with the 2nd CPU.
11. devices according to claim 10, is characterized in that, a CPU takies scene and comprises following at least one item: page browsing, music and e-book reading;
2nd CPU takies scene and comprises following at least one item: the low load game of instant chat, online shopping, video playback and default CPU;
3rd CPU takies scene and comprises following at least one item: rob ticket, default CPU high capacity game, Web bank and on-line payment online.
12. devices according to claim 8 or claim 9, is characterized in that, also comprise hopping pattern list update unit, for:
If do not comprise the target scene corresponding with the bag name information of described current scene process bag in described hopping pattern list, then create set scene corresponding with described bag name information, and the CPU recording described current scene process bag takies situation;
Take situation according to described CPU, determine the hopping pattern corresponding with described bag name information;
By the bag name information of described current scene process bag, the corresponding relation between the set scene of establishment and the hopping pattern corresponding with described bag name information, writes in described hopping pattern list.
13. devices according to claim 9 or 10, it is characterized in that, described second hopping pattern adjustment subelement, specifically for: in current terminal CPU hopping pattern and described target hopping pattern inconsistent time, CPU hopping pattern in current terminal is adjusted to described target hopping pattern.
14. devices according to claim 13, is characterized in that, also comprise:
Hopping pattern replacement unit, before adjusting the hopping pattern of CPU in terminal according to the described target hopping pattern obtained, if system process comprises process bag corresponding to the hopping pattern higher than described target hopping pattern rank, then the hopping pattern higher than described target hopping pattern rank is used to replace described target hopping pattern;
Wherein, being superior to of peak performance pattern arranges pattern as required, and what arrange pattern as required is superior to most battery saving mode.
CN201510124883.1A 2015-03-20 2015-03-20 The method of adjustment and device of CPU hopping patterns in a kind of terminal Expired - Fee Related CN104731304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510124883.1A CN104731304B (en) 2015-03-20 2015-03-20 The method of adjustment and device of CPU hopping patterns in a kind of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510124883.1A CN104731304B (en) 2015-03-20 2015-03-20 The method of adjustment and device of CPU hopping patterns in a kind of terminal

Publications (2)

Publication Number Publication Date
CN104731304A true CN104731304A (en) 2015-06-24
CN104731304B CN104731304B (en) 2018-01-19

Family

ID=53455279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510124883.1A Expired - Fee Related CN104731304B (en) 2015-03-20 2015-03-20 The method of adjustment and device of CPU hopping patterns in a kind of terminal

Country Status (1)

Country Link
CN (1) CN104731304B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260236A (en) * 2015-09-22 2016-01-20 惠州Tcl移动通信有限公司 Mobile terminal and performance adjustment method of processor of mobile terminal
CN105302280A (en) * 2015-11-24 2016-02-03 上海斐讯数据通信技术有限公司 Power consumption optimization system and method
CN105376401A (en) * 2015-10-10 2016-03-02 联想(北京)有限公司 Information processing method and device and electronic device
CN105404381A (en) * 2015-11-06 2016-03-16 珠海全志科技股份有限公司 Terminal device operation frequency control method and system
CN105824377A (en) * 2015-08-31 2016-08-03 维沃移动通信有限公司 System temperature control method and mobile terminal
CN106066769A (en) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 The processing method of a kind of mobile terminal and mobile terminal
CN106249842A (en) * 2016-07-20 2016-12-21 乐视控股(北京)有限公司 Terminal unit control method and device
CN106339065A (en) * 2016-09-23 2017-01-18 乐视控股(北京)有限公司 Multi-core processor control method and device as well as mobile terminal
CN107357654A (en) * 2017-06-21 2017-11-17 联想(北京)有限公司 A kind of CPU overclockings working state control method and device
CN107517306A (en) * 2017-07-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107547745A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107547746A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107613107A (en) * 2017-08-31 2018-01-19 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107807852A (en) * 2017-10-11 2018-03-16 广东欧珀移动通信有限公司 Application program capacity control method and equipment
CN107995357A (en) * 2017-11-15 2018-05-04 广东欧珀移动通信有限公司 Resource allocation method and device
CN108983942A (en) * 2017-05-31 2018-12-11 深圳市中兴微电子技术有限公司 A kind of method and device of dynamic frequency
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium
CN109564458A (en) * 2016-08-01 2019-04-02 华为技术有限公司 Application program is specific, performance aware it is energy-optimised
CN109739635A (en) * 2019-01-28 2019-05-10 Oppo广东移动通信有限公司 Optimization method, device, terminal and the storage medium of system performance
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
CN110647401A (en) * 2019-09-30 2020-01-03 Oppo(重庆)智能科技有限公司 Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN110806940A (en) * 2019-10-30 2020-02-18 深圳Tcl数字技术有限公司 CPU operation mode dynamic switching method, device, equipment and storage medium
WO2020063916A1 (en) * 2018-09-30 2020-04-02 联想(北京)有限公司 Information processing method and electronic device
CN111427316A (en) * 2020-03-19 2020-07-17 海尔优家智能科技(北京)有限公司 Scene triggering method and device, storage medium and electronic device
US10824470B2 (en) 2017-10-31 2020-11-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US10936371B2 (en) 2017-11-09 2021-03-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and related products
US11016812B2 (en) 2017-07-31 2021-05-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US11099901B2 (en) 2017-10-31 2021-08-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US11698815B2 (en) 2017-12-06 2023-07-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and related products

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699368A (en) * 2009-11-02 2010-04-28 中兴通讯股份有限公司 Method and device for adaptive dynamic frequency or voltage adjustment of CPU
CN102073504A (en) * 2011-01-21 2011-05-25 深圳创维数字技术股份有限公司 Multi-scene operating method, multi-scene operating system and intelligent device
CN103324270A (en) * 2013-06-25 2013-09-25 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting CPU (Central Processing Unit) frequency thereof
EP2759907A1 (en) * 2013-01-29 2014-07-30 BlackBerry Limited Methods for monitoring and adjusting performance of a mobile computing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699368A (en) * 2009-11-02 2010-04-28 中兴通讯股份有限公司 Method and device for adaptive dynamic frequency or voltage adjustment of CPU
CN102073504A (en) * 2011-01-21 2011-05-25 深圳创维数字技术股份有限公司 Multi-scene operating method, multi-scene operating system and intelligent device
EP2759907A1 (en) * 2013-01-29 2014-07-30 BlackBerry Limited Methods for monitoring and adjusting performance of a mobile computing device
CN103324270A (en) * 2013-06-25 2013-09-25 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting CPU (Central Processing Unit) frequency thereof

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824377A (en) * 2015-08-31 2016-08-03 维沃移动通信有限公司 System temperature control method and mobile terminal
CN105260236A (en) * 2015-09-22 2016-01-20 惠州Tcl移动通信有限公司 Mobile terminal and performance adjustment method of processor of mobile terminal
CN105376401A (en) * 2015-10-10 2016-03-02 联想(北京)有限公司 Information processing method and device and electronic device
CN105404381A (en) * 2015-11-06 2016-03-16 珠海全志科技股份有限公司 Terminal device operation frequency control method and system
CN105302280A (en) * 2015-11-24 2016-02-03 上海斐讯数据通信技术有限公司 Power consumption optimization system and method
CN106066769A (en) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 The processing method of a kind of mobile terminal and mobile terminal
CN106249842A (en) * 2016-07-20 2016-12-21 乐视控股(北京)有限公司 Terminal unit control method and device
CN109564458A (en) * 2016-08-01 2019-04-02 华为技术有限公司 Application program is specific, performance aware it is energy-optimised
CN106339065A (en) * 2016-09-23 2017-01-18 乐视控股(北京)有限公司 Multi-core processor control method and device as well as mobile terminal
CN108983942A (en) * 2017-05-31 2018-12-11 深圳市中兴微电子技术有限公司 A kind of method and device of dynamic frequency
CN107357654A (en) * 2017-06-21 2017-11-17 联想(北京)有限公司 A kind of CPU overclockings working state control method and device
CN107357654B (en) * 2017-06-21 2020-07-24 联想(北京)有限公司 Method and device for controlling over-frequency working state of CPU
CN107517306A (en) * 2017-07-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107517306B (en) * 2017-07-31 2020-07-10 Oppo广东移动通信有限公司 Resource allocation method and related product
US11016812B2 (en) 2017-07-31 2021-05-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
CN107613107A (en) * 2017-08-31 2018-01-19 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107547746B (en) * 2017-08-31 2020-09-04 Oppo广东移动通信有限公司 Resource allocation method and related product
CN107547746A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107547745A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107547745B (en) * 2017-08-31 2020-07-17 Oppo广东移动通信有限公司 Resource allocation method and related product
CN107807852B (en) * 2017-10-11 2020-07-07 Oppo广东移动通信有限公司 Application program performance control method, device and computer readable storage medium
CN107807852A (en) * 2017-10-11 2018-03-16 广东欧珀移动通信有限公司 Application program capacity control method and equipment
US10824470B2 (en) 2017-10-31 2020-11-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US11099901B2 (en) 2017-10-31 2021-08-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US10936371B2 (en) 2017-11-09 2021-03-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and related products
CN107995357A (en) * 2017-11-15 2018-05-04 广东欧珀移动通信有限公司 Resource allocation method and device
US11698815B2 (en) 2017-12-06 2023-07-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and related products
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium
WO2020063916A1 (en) * 2018-09-30 2020-04-02 联想(北京)有限公司 Information processing method and electronic device
CN109739635A (en) * 2019-01-28 2019-05-10 Oppo广东移动通信有限公司 Optimization method, device, terminal and the storage medium of system performance
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
CN110647401B (en) * 2019-09-30 2022-07-08 Oppo(重庆)智能科技有限公司 Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN110647401A (en) * 2019-09-30 2020-01-03 Oppo(重庆)智能科技有限公司 Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN110806940A (en) * 2019-10-30 2020-02-18 深圳Tcl数字技术有限公司 CPU operation mode dynamic switching method, device, equipment and storage medium
CN111427316A (en) * 2020-03-19 2020-07-17 海尔优家智能科技(北京)有限公司 Scene triggering method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN104731304B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN104731304A (en) Adjusting method and device for CPU frequency adjustment mode in terminal
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
CN102915375B (en) A kind of webpage loading method based on layout subregion
KR20150036684A (en) Method and device for controlling terminal and terminal thereof
CN105512251B (en) A kind of page cache method and device
CN110110262A (en) Browser EMS memory management process, device and equipment
CN104902101B (en) A kind of internet access method and device of double-card mobile phone
CN104239139A (en) Method, device and terminal for processing boot-strap self-starting project
US20230125288A1 (en) Font adjustment method and apparatus, storage medium, and electronic device
CN107402713B (en) Accelerate method, apparatus, storage medium and the mobile terminal of the processing of blank screen gesture
CN108648259A (en) image drawing method, device, storage medium and intelligent terminal
CN109388317A (en) A kind of picture loading method, terminal device and storage medium
CN110808872A (en) Method and device for realizing flow experiment and electronic equipment
CN107277581B (en) A kind of video broadcasting method and its device, mobile terminal
CN107864384A (en) Redirect the method and device that internet video plays on cloud desktop
WO2013089706A1 (en) Techniques for multiple pass rendering
CN105549857B (en) A kind of control method and electric terminal of electric terminal
CN112925572B (en) Control method and device and electronic equipment
CN108966005A (en) A kind of adjusting method of video resolution, device, storage medium and terminal
WO2021207923A1 (en) Cluster expansion method and apparatus, storage medium, and electronic device
CN110187818B (en) Method and device for improving performance of assembly, terminal and storage medium
CN107045864A (en) The adjusting method and device of a kind of screen intensity
CN105893048A (en) Browser theme changing method and device and electronic equipment
US20140157022A1 (en) Electronic device and method for reducing cpu power consumption
CN105320532A (en) Interactive interface display method and device as well as terminal

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119

CF01 Termination of patent right due to non-payment of annual fee