CN109739641A - A kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and storage medium - Google Patents
A kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN109739641A CN109739641A CN201811546240.6A CN201811546240A CN109739641A CN 109739641 A CN109739641 A CN 109739641A CN 201811546240 A CN201811546240 A CN 201811546240A CN 109739641 A CN109739641 A CN 109739641A
- Authority
- CN
- China
- Prior art keywords
- cpu frequency
- default
- handover information
- frequency modulation
- activity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The present invention discloses a kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and computer readable storage medium, is applied to mobile terminal.It include: when monitoring to switch using the interior interface Activity to act, to draw high CPU frequency according to the configuration of default CPU frequency modulation;After the completion of monitoring Activity changing interface, the handover information of this Activity changing interface movement is recorded;The handover information is compared with default changing interface longest handover information, determines the further chirping strategies of CPU frequency;Default CPU frequency modulation configuration is updated according to the handover information and the further chirping strategies of the CPU frequency.Through the embodiment of the present invention, CPU frequency modulation acceleration efficiency when can be promoted using interior Activity changing interface reaches changing interface fast and power consumption but also province not only, and the purpose of reasonable employment cpu resource, the user experience is improved.
Description
Technical field
The present invention relates to field of mobile terminals, in particular to a kind of adaptive CPU frequency modulation accelerating method and device, movement are eventually
End and computer readable storage medium.
Background technique
Currently, mobile terminal becomes increasingly popular, more and more using the user of mobile terminal, and user routine use is mobile eventually
End is also more and more frequent, so that mobile terminal has become one of essential mobile device of user.
In order to promote the switch speed between application interface Activity, meeting exists for mobile terminal Android manufacturer at present
It carries out burying a monitoring in android system frame, when the movement of Activity changing interface will be occurred by detecting, for example, with
The trial of some menu button is clicked when going to open a new page in family in the application, can dynamically draw high CPU (Central
Processing Unit, central processing unit) dominant frequency is to certain frequency and one section of set time of maintenance, to promote page switching
Loading velocity.
In above scheme presence, it is fixed that setting, which draws high the duration of CPU frequency, if drawing high CPU frequency duration mistake
Long, after the completion of interior Activity changing interface, CPU frequency stills remain in higher frequency for a period of time, thus can
Cause the loss of power consumption;Alternatively, it is too short if drawing high CPU frequency duration, it is not yet completed using interior Activity changing interface,
CPU frequency has declined, and will result in the problem of slowing using interior Activity changing interface, causes user experience not
It is good.
Summary of the invention
In view of this, a kind of adaptive CPU frequency modulation accelerating method and device provided in an embodiment of the present invention, mobile terminal and
Computer readable storage medium, CPU frequency modulation acceleration efficiency when can be promoted using interior Activity changing interface, reaches interface
Switch fast and power consumption but also province not only, the purpose of reasonable employment cpu resource, the user experience is improved.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of an embodiment of the present invention, a kind of adaptive CPU frequency modulation accelerated method provided is applied to movement
Terminal, which comprises
When monitoring that applying the interior interface Activity to switch acts, CPU master is drawn high according to the configuration of default CPU frequency modulation
Frequently;
After the completion of monitoring Activity changing interface, the handover information of this Activity changing interface movement is recorded;
The handover information is compared with default changing interface longest handover information, determines that CPU frequency is further adjusted
Frequency strategy;
Default CPU frequency modulation configuration is updated according to the handover information and the further chirping strategies of the CPU frequency.
In a possible design, it is described monitor using the interior interface Activity switch act when, according to
Before default CPU frequency modulation configuration draws high CPU frequency, the method also includes: the Activity changing interface in monitoring application is dynamic
Make.
In a possible design, it is described monitor using the interior interface Activity switch act when, according to pre-
If the configuration of CPU frequency modulation draws high CPU frequency, wherein the default CPU frequency modulation configuration includes presetting to draw high frequency f0 and maintain duration
Current CPU frequency is drawn high to preset and draws high frequency f0 by t0, is held time and is maintained duration t0 to be default.
In a possible design, after the completion of the monitoring Activity changing interface, this Activity circle is recorded
The handover information of face switching action, wherein the handover information includes the time-consuming duration that the movement of Activity changing interface is completed
t1。
It is described to compare the handover information and default changing interface longest handover information in a possible design
It is right, determine the further chirping strategies of CPU frequency, wherein the further chirping strategies of CPU frequency include:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency
Frequency f1 is drawn high to higher second;
If the handover information maintains CPU frequency in institute in the range of default changing interface longest handover information
State predeterminated frequency f0.
In a possible design, the handover information exceeds the range of default changing interface longest handover information, then
Continue to draw high CPU frequency and draw high frequency f1 to higher second, specifically include: current CPU frequency is drawn high into frequency f0 by default
It continues to lift up a consistent difference and draws high frequency f1 to second.
It is described according to the handover information and the further chirping strategies of the CPU frequency in a possible design
Update default CPU frequency modulation configuration;It include: that the default frequency f0 that draws high is updated to the frequency f1, when the default maintenance
Long t0 is updated to the duration t1, and updates to preset and draw high frequency f0, maintain duration t0 and be related to Activity circle of switching
Corresponding relationship between face.
Other side according to an embodiment of the present invention, a kind of adaptive CPU frequency modulation accelerator provided, comprising: match
Set module, monitoring modular, logging modle, comparison module, update module, in which:
The configuration module, for configuring default CPU frequency modulation configuration;
The monitoring modular, when being acted for monitoring to switch using the interior interface Activity, according to the configuration
Default CPU frequency modulation configuration in module draws high CPU frequency;
The logging modle records this Activity changing interface after the completion of monitoring Activity changing interface
The handover information of movement;
The comparison module, for the handover information to be compared with default changing interface longest handover information, really
Determine the further chirping strategies of CPU frequency;
The update module, for updating institute according to the handover information and the further chirping strategies of the CPU frequency
State the default CPU frequency modulation configuration of configuration module.
Other side according to an embodiment of the present invention, a kind of mobile terminal provided, comprising: memory, processor and
It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing
Device realizes a kind of the step of described adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention when executing.
Other side according to an embodiment of the present invention, a kind of computer readable storage medium provided, the computer
The program of adaptive CPU frequency modulation accelerated method, the journey of the adaptive CPU frequency modulation accelerated method are stored on readable storage medium storing program for executing
The step of described a kind of adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention is realized when sequence is executed by processor.
Compared with the relevant technologies, a kind of adaptive CPU frequency modulation accelerating method and device of proposition of the embodiment of the present invention, movement
Terminal and computer readable storage medium are applied to mobile terminal, are switched by monitoring using the interior interface Activity
When movement, CPU frequency is drawn high according to the configuration of default CPU frequency modulation;After the completion of monitoring Activity changing interface, record is this time
The handover information of Activity changing interface movement;The handover information and default changing interface longest handover information are compared
It is right, determine the further chirping strategies of CPU frequency;More according to the handover information and the further chirping strategies of the CPU frequency
Newly default CPU frequency modulation configuration.Above technological means through the invention, when can be promoted using interior Activity changing interface
CPU frequency modulation acceleration efficiency, reaches not only fast changing interface and power consumption but also province, the purpose of reasonable employment cpu resource improve user's body
It tests.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of adaptive CPU frequency modulation accelerator provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram of adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
It should be noted that description and claims of the invention are received and the term " first " in above-mentioned attached drawing, " the
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It include many Android components in Android (Android) operating system of mobile terminal, wherein
Activity be in Android component it is most basic be also most commonly seen four big components (Activity, Service service,
One of Content Provider content provider, BroadcastReceiver radio receiver).
Activity is an application component, provides a screen, it is a certain in order to complete that user can be used to interaction
Task.All operations are all closely related with user in Activity, are one and are responsible for the component interacted with user, can pass through
SetContentView (View) shows specified control.
In an Android application, an Activity is usually exactly an individual screen, can be shown above
Some controls can also be monitored and handle the event of user and respond.It is communicated between Activity by Intent.
The present invention is namely based on a kind of concrete application scheme that Activity component puts forward.
Please refer to Fig. 3.The embodiment of the invention provides a kind of adaptive CPU frequency modulation accelerated methods, are applied to mobile terminal,
The described method includes:
Step S1, it when monitoring that applying the interior interface Activity to switch acts, is drawn high according to the configuration of default CPU frequency modulation
CPU frequency;
Step S2, after the completion of monitoring Activity changing interface, the switching of this Activity changing interface movement is recorded
Information;
Step S3, the handover information is compared with default changing interface longest handover information, determine CPU frequency into
One step chirping strategies;
Step S4, default CPU frequency modulation is updated according to the handover information and the further chirping strategies of the CPU frequency to match
It sets.
Further, described to monitor to switch using the interior interface Activity when acting in the step S1, according to
Before default CPU frequency modulation configuration draws high CPU frequency, the method also includes: the Activity changing interface in monitoring application is dynamic
Make, whether monitoring application is interior has the interface Activity to switch over.
Further, in the step S1, the default CPU frequency modulation configuration includes when presetting to draw high frequency f0 and maintain
Current CPU frequency is drawn high to preset and draws high frequency f0 by long t0, is held time and is maintained duration t0 to be default.
Preferably, in step s 2, the handover information includes the time-consuming duration that the movement of Activity changing interface is completed.
Further, in step s3, the further chirping strategies of the CPU frequency include:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency
Frequency f1 is drawn high to higher second, is specifically included: current CPU frequency is drawn high frequency f0 and continued to lift up a fixation by default
Difference DELTA f (Δ f > 0) to second draws high frequency f1 (f1=f0+ Δ f);
If the handover information maintains CPU frequency in institute in the range of default changing interface longest handover information
State predeterminated frequency f0.
Further, in step s 4, described according to the handover information and the further chirping strategies of the CPU frequency
Update default CPU frequency modulation configuration;It include: that the default frequency f0 that draws high is updated to the frequency f1, when the default maintenance
Long t0 is updated to the duration t1, and updates to preset and draw high frequency f0, maintain duration t0 and be related to Activity circle of switching
Corresponding relationship between face.
A kind of adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention is applied to mobile terminal, by monitoring
It is switched when acting using the interior interface Activity, draws high CPU frequency according to the configuration of default CPU frequency modulation;Monitor Activity
After the completion of changing interface, the handover information of this Activity changing interface movement is recorded;By the handover information and default boundary
Face switching longest handover information is compared, and determines the further chirping strategies of CPU frequency;According to the handover information and described
The further chirping strategies of CPU frequency update default CPU frequency modulation configuration.Above technological means through the invention, can be promoted and be answered
CPU frequency modulation acceleration efficiency when with interior Activity changing interface reaches changing interface fast and power consumption but also province not only, reasonable employment
The purpose of cpu resource, the user experience is improved.
Please refer to Fig. 4.The embodiment of the invention provides a kind of adaptive CPU frequency modulation accelerators, are applied to mobile terminal,
The described method includes: configuration module 10, monitoring modular 20, logging modle 30, comparison module 40, update module 50, in which:
The configuration module 10, for configuring default CPU frequency modulation configuration;
The monitoring modular 20 is matched when acting for monitoring to switch using the interior interface Activity according to described
The default CPU frequency modulation configuration set in module draws high CPU frequency;
The logging modle 30 records this interface Activity and cuts after the completion of monitoring Activity changing interface
Move the handover information of work, and the handover information includes the time-consuming duration that the movement of Activity changing interface is completed;
The comparison module 40, for the handover information to be compared with default changing interface longest handover information,
Determine the further chirping strategies of CPU frequency;
The update module 50, for being updated according to the handover information and the further chirping strategies of the CPU frequency
The default CPU frequency modulation of the configuration module 10 configures.
Further, the monitoring modular 20 is also used to monitor the Activity changing interface movement in application, and monitoring is answered
Whether there is the interface Activity to switch over interior.
Further, the configuration module 10 is configured for configuring default CPU frequency modulation, including configuration is preset and draws high frequency
F0, for maintaining the default maintenance duration t0 for drawing high frequency and default drawing high frequency f0, maintain duration t0 and be related to cutting
Corresponding relationship between the interface Activity changed.
Further, the comparison module 40 is used for the handover information and default changing interface longest handover information
It is compared, determines the further chirping strategies of CPU frequency;Wherein, the further chirping strategies of the CPU frequency include:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency
Frequency f1 is drawn high to higher second, is specifically included: current CPU frequency is drawn high frequency f0 and continued to lift up a fixation by default
Difference DELTA f (Δ f > 0) to second draws high frequency f1 (f1=f0+ Δ f);
If the handover information maintains CPU frequency in institute in the range of default changing interface longest handover information
State predeterminated frequency f0.
Further, the update module 50, for according to the handover information and the further frequency modulation of the CPU frequency
Default CPU frequency modulation configuration in configuration module 10 described in policy update;Include: by it is described it is default draw high frequency f0 be updated to it is described
Frequency f1, the default maintenance duration t0 are updated to the duration t1, and update it is default draw high frequency f0, maintain duration t0 with
The corresponding relationship being related between the interface Activity of switching.
A kind of adaptive CPU frequency modulation accelerator provided in an embodiment of the present invention is applied to mobile terminal, by monitoring mould
When block monitors that applying the interior interface Activity to switch acts, CPU frequency is drawn high according to the configuration of default CPU frequency modulation;Record
After the completion of module monitors Activity changing interface, the handover information of this Activity changing interface movement is recorded;Compare mould
The handover information is compared block with default changing interface longest handover information, determines the further chirping strategies of CPU frequency;
Update module updates default CPU frequency modulation configuration according to the handover information and the further chirping strategies of the CPU frequency.Pass through
The technological means more than present invention, CPU frequency modulation acceleration efficiency when can be promoted using interior Activity changing interface, reaches boundary
Face switches fast and power consumption but also province not only, and the purpose of reasonable employment cpu resource, the user experience is improved.
It should be noted that above-mentioned apparatus embodiment and embodiment of the method belong to same design, specific implementation process is detailed
See embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in described device embodiment, it is no longer superfluous here
It states.
Technical solution of the present invention is described in further detail with reference to embodiments.
Please refer to Fig. 5.
In the present embodiment, the handover information is illustrated by taking time-consuming duration as an example.
A kind of adaptive CPU frequency modulation accelerated method is applied to mobile terminal, which comprises
Step S501, the Activity changing interface movement in monitoring application, whether monitoring application is interior has Activity circle
Face switches over.
Step S502, it when monitoring that applying the interior interface Activity to switch acts, draws high CPU frequency and is drawn high to default
Frequency f0, and described preset is maintained to draw high a length of default maintenance duration t0 when frequency f0.
Step S503, after the completion of monitoring Activity changing interface, the consumption of this Activity changing interface movement is recorded
Shi Shichang t1.
Step S504, the time-consuming duration t1 is compared with default changing interface longest time-consuming duration threshold value t2.
Step S505, t1>t2? if it is not, then t1<t2, is transferred to step S506, otherwise, t1>t2 is transferred to step S507.
Step S506, then maintain current CPU frequency in the predeterminated frequency f0.Frequency modulation process terminates.
Step S507, current CPU frequency is drawn high frequency f0 and is continued to lift up a consistent difference Δ f (Δ f > 0) by default
Frequency f1 (f1=f0+ Δ f), wherein the frequency f1 is answered when being the two subsequent Activity changing interfaces is drawn high to second
The CPU frequency value directly drawn high.
Step S508, it according to the time-consuming duration t1 and frequency f1, default draw high frequency f0 by described and is updated to
The frequency f1, the default maintenance duration t0 are updated to the duration t1, and update to preset and draw high frequency f0, maintain duration
Corresponding relationship between t0 and the interface Activity for being related to switching.
In addition, the embodiment of the present invention also provides a kind of mobile terminal, as shown in fig. 6, the mobile terminal 900 includes: to deposit
Reservoir 902, processor 901 and it is stored in one for can running in the memory 902 and on the processor 901 or more
A computer program, the memory 902 and the processor 901 are coupled by bus system 903, it is one or
To realize a kind of adaptive CPU tune provided in an embodiment of the present invention when the multiple computer programs of person are executed by the processor 901
The following steps of frequency accelerated method:
Step S1, it when monitoring that applying the interior interface Activity to switch acts, is drawn high according to the configuration of default CPU frequency modulation
CPU frequency;
Step S2, after the completion of monitoring Activity changing interface, the switching of this Activity changing interface movement is recorded
Information;
Step S3, the handover information is compared with default changing interface longest handover information, determine CPU frequency into
One step chirping strategies;
Step S4, default CPU frequency modulation is updated according to the handover information and the further chirping strategies of the CPU frequency to match
It sets.
Further, described to monitor to switch using the interior interface Activity when acting in the step S1, according to
Before default CPU frequency modulation configuration draws high CPU frequency, the method also includes: the Activity changing interface in monitoring application is dynamic
Make, whether monitoring application is interior has the interface Activity to switch over.
Further, in the step S1, the default CPU frequency modulation configuration includes when presetting to draw high frequency f0 and maintain
Current CPU frequency is drawn high to preset and draws high frequency f0 by long t0, is held time and is maintained duration t0 to be default.
Preferably, in step s 2, the handover information includes the time-consuming duration that the movement of Activity changing interface is completed.
Further, in step s3, the further chirping strategies of the CPU frequency include:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency
Frequency f1 is drawn high to higher second, is specifically included: current CPU frequency is drawn high frequency f0 and continued to lift up a fixation by default
Difference DELTA f (Δ f > 0) to second draws high frequency f1 (f1=f0+ Δ f);
If the handover information maintains CPU frequency in institute in the range of default changing interface longest handover information
State predeterminated frequency f0.
Further, in step s 4, described according to the handover information and the further chirping strategies of the CPU frequency
Update default CPU frequency modulation configuration;It include: that the default frequency f0 that draws high is updated to the frequency f1, when the default maintenance
Long t0 is updated to the duration t1, and updates to preset and draw high frequency f0, maintain duration t0 and be related to Activity circle of switching
Corresponding relationship between face.
The method that the embodiments of the present invention disclose can be applied in the processor 901, or by the processor
901 realize.The processor 901 may be a kind of IC chip, have signal handling capacity.During realization, on
Each step for stating method can be complete by the integrated logic circuit of the hardware in the processor 901 or the instruction of software form
At.The processor 901 can be general processor, DSP or other programmable logic device, discrete gate or transistor
Logical device, discrete hardware components etc..The processor 901 may be implemented or execute disclosed each in the embodiment of the present invention
Method, step and logic diagram.General processor can be microprocessor or any conventional processor etc..In conjunction with the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or be handled with decoding
Hardware and software module combination in device execute completion.Software module can be located in storage medium, which, which is located at, deposits
The step of reservoir 902, the processor 901 reads the information in memory 902, completes preceding method in conjunction with its hardware.
It is appreciated that the memory 902 of the embodiment of the present invention can be volatile memory or nonvolatile memory,
It also may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (ROM,
Read-Only Memory), it is programmable read only memory (PROM, Programmable Read-Only Memory), erasable
Programmable read only memory (EPROM, Erasable Read-Only Memory), electricallyerasable ROM (EEROM) (EEPROM,
Electrically Erasable Programmable Read-Only Memory), magnetic RAM (FRAM,
Ferromagnetic Random Access Memory), flash memory (Flash Memory) or other memory technologies, CD only
Read memory (CD-ROM, Compact Disk Read-Only Memory), digital versatile disc (DVD, Digital Video
) or other optical disc storages, magnetic holder, tape, disk storage or other magnetic memory apparatus Disk;Volatile memory can be at random
It accesses memory (RAM, Random Access Memory), by exemplary but be not restricted explanation, the RAM of many forms
It can use, such as static random access memory (SRAM, Static Random Access Memory), static random-access are deposited
Reservoir (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir is intended to include but is not limited to the memory of these and any other suitable type.
It should be noted that above-mentioned mobile terminal embodiment and embodiment of the method belong to same design, implemented
Journey is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in the mobile terminal embodiment, this
In repeat no more.
In addition, in the exemplary embodiment, the embodiment of the present invention also provides a kind of computer storage medium, specially calculate
Machine readable storage medium storing program for executing is stored with certainly for example including the memory 902 for storing computer program in the computer storage medium
Adapt to CPU frequency modulation accelerated method one or more program, the adaptive CPU frequency modulation accelerated method one or more
To realize a kind of the following of adaptive CPU frequency modulation accelerated method provided in an embodiment of the present invention when program is executed by processor 901
Step:
Step S1, it when monitoring that applying the interior interface Activity to switch acts, is drawn high according to the configuration of default CPU frequency modulation
CPU frequency;
Step S2, after the completion of monitoring Activity changing interface, the switching of this Activity changing interface movement is recorded
Information;
Step S3, the handover information is compared with default changing interface longest handover information, determine CPU frequency into
One step chirping strategies;
Step S4, default CPU frequency modulation is updated according to the handover information and the further chirping strategies of the CPU frequency to match
It sets.
Further, described to monitor to switch using the interior interface Activity when acting in the step S1, according to
Before default CPU frequency modulation configuration draws high CPU frequency, the method also includes: the Activity changing interface in monitoring application is dynamic
Make, whether monitoring application is interior has the interface Activity to switch over.
Further, in the step S1, the default CPU frequency modulation configuration includes when presetting to draw high frequency f0 and maintain
Current CPU frequency is drawn high to preset and draws high frequency f0 by long t0, is held time and is maintained duration t0 to be default.
Preferably, in step s 2, the handover information includes the time-consuming duration that the movement of Activity changing interface is completed.
Further, in step s3, the further chirping strategies of the CPU frequency include:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency
Frequency f1 is drawn high to higher second, is specifically included: current CPU frequency is drawn high frequency f0 and continued to lift up a fixation by default
Difference DELTA f (Δ f > 0) to second draws high frequency f1 (f1=f0+ Δ f);
If the handover information maintains CPU frequency in institute in the range of default changing interface longest handover information
State predeterminated frequency f0.
Further, in step s 4, described according to the handover information and the further chirping strategies of the CPU frequency
Update default CPU frequency modulation configuration;It include: that the default frequency f0 that draws high is updated to the frequency f1, when the default maintenance
Long t0 is updated to the duration t1, and updates to preset and draw high frequency f0, maintain duration t0 and be related to Activity circle of switching
Corresponding relationship between face.
It should be noted that the adaptive CPU frequency modulation accelerated method program on above-mentioned computer readable storage medium is implemented
Example belongs to same design with embodiment of the method, and specific implementation process is detailed in embodiment of the method, and the technology in embodiment of the method
Feature is corresponding in the embodiment of above-mentioned computer readable storage medium to be applicable in, and which is not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of adaptive CPU frequency modulation accelerated method is applied to mobile terminal, which is characterized in that the described method includes:
When monitoring that applying the interior interface Activity to switch acts, CPU frequency is drawn high according to the configuration of default CPU frequency modulation;
After the completion of monitoring Activity changing interface, the handover information of this Activity changing interface movement is recorded;
The handover information is compared with default changing interface longest handover information, determines the further frequency modulation plan of CPU frequency
Slightly;
Default CPU frequency modulation configuration is updated according to the handover information and the further chirping strategies of the CPU frequency.
2. the method according to claim 1, wherein monitoring to cut using the interior interface Activity described
Move when making, before drawing high CPU frequency according to the configuration of default CPU frequency modulation, the method also includes: in monitoring application
The movement of Activity changing interface.
3. the method according to claim 1, wherein described monitor to switch using the interior interface Activity
When movement, CPU frequency is drawn high according to the configuration of default CPU frequency modulation, wherein the default CPU frequency modulation configuration includes default draws high frequently
Rate f0 and maintenance duration t0, current CPU frequency is drawn high to preset and draws high frequency f0, is held time and is maintained duration t0 to be default.
4. according to the method described in claim 3, it is characterized in that, being recorded after the completion of the monitoring Activity changing interface
The handover information of this time Activity changing interface movement, wherein the handover information includes the movement of Activity changing interface
The time-consuming duration t1 of completion.
5. according to the method described in claim 4, it is characterized in that, described by the handover information and default changing interface longest
Handover information is compared, and determines the further chirping strategies of CPU frequency, wherein the further chirping strategies packet of CPU frequency
It includes:
If the handover information exceeds the range of default changing interface longest handover information, continue to draw high CPU frequency to more
High second draws high frequency f1;
If the handover information maintains CPU frequency described pre- in the range of default changing interface longest handover information
If frequency f0.
6. according to the method described in claim 5, it is characterized in that, the handover information exceeds default changing interface longest switching
The range of information then continues to draw high CPU frequency and draws high frequency f1 to higher second, specifically includes: by current CPU frequency by pre-
Frequency f1 is drawn high to second if drawing high frequency f0 and continuing to lift up a consistent difference.
7. according to the method described in claim 5, it is characterized in that, described according to the handover information and the CPU frequency
Further chirping strategies update default CPU frequency modulation configuration;Include: by it is described it is default draw high frequency f0 and be updated to the frequency f1,
The default maintenance duration t0 is updated to the duration t1, and updates to preset and draw high frequency f0, maintain duration t0 and be related to cutting
Corresponding relationship between the interface Activity changed.
8. a kind of adaptive CPU frequency modulation accelerator, applied to a kind of adaptive CPU as described in any one of claim 1 to 7
Frequency modulation accelerated method characterized by comprising configuration module, monitoring modular, logging modle, comparison module, update module,
In:
The configuration module, for configuring default CPU frequency modulation configuration;
The monitoring modular, when being acted for monitoring to switch using the interior interface Activity, according to the configuration module
In default CPU frequency modulation configuration draw high CPU frequency;
The logging modle records the movement of this Activity changing interface after the completion of monitoring Activity changing interface
Handover information;
The comparison module determines CPU for the handover information to be compared with default changing interface longest handover information
The further chirping strategies of dominant frequency;
The update module, for matching according to the handover information and the further chirping strategies update of the CPU frequency
Set the default CPU frequency modulation configuration of module.
9. a kind of mobile terminal characterized by comprising memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 7 is realized when the computer program is executed by the processor
Any one of described in a kind of adaptive CPU frequency modulation accelerated method step.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium adaptive
Such as right is realized when the program of the program of CPU frequency modulation accelerated method, the adaptive CPU frequency modulation accelerated method is executed by processor
It is required that described in any one of 1 to 7 the step of a kind of adaptive CPU frequency modulation accelerated method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811546240.6A CN109739641B (en) | 2018-12-18 | 2018-12-18 | Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811546240.6A CN109739641B (en) | 2018-12-18 | 2018-12-18 | Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109739641A true CN109739641A (en) | 2019-05-10 |
CN109739641B CN109739641B (en) | 2023-08-11 |
Family
ID=66360471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811546240.6A Active CN109739641B (en) | 2018-12-18 | 2018-12-18 | Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739641B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117149409A (en) * | 2023-05-16 | 2023-12-01 | 荣耀终端有限公司 | Method for adjusting CPU frequency and terminal equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424031A (en) * | 2013-08-23 | 2015-03-18 | 中兴通讯股份有限公司 | Working frequency control method and device for processor |
CN108900916A (en) * | 2018-08-15 | 2018-11-27 | 深圳Tcl新技术有限公司 | Television set and its information source configuration method, device, readable storage medium storing program for executing |
-
2018
- 2018-12-18 CN CN201811546240.6A patent/CN109739641B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424031A (en) * | 2013-08-23 | 2015-03-18 | 中兴通讯股份有限公司 | Working frequency control method and device for processor |
CN108900916A (en) * | 2018-08-15 | 2018-11-27 | 深圳Tcl新技术有限公司 | Television set and its information source configuration method, device, readable storage medium storing program for executing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117149409A (en) * | 2023-05-16 | 2023-12-01 | 荣耀终端有限公司 | Method for adjusting CPU frequency and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109739641B (en) | 2023-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107688607A (en) | The method and mobile terminal of a kind of database access, computer-readable recording medium | |
CN109960584A (en) | CPU frequency modulation control method, terminal and computer readable storage medium | |
CN107729133A (en) | A kind of method, terminal and computer-readable recording medium for running application program | |
CN107528369A (en) | Terminal and its wireless charging control method, computer-readable recording medium | |
CN109618052A (en) | A kind of call audio switching method and device, mobile terminal and readable storage medium storing program for executing | |
CN109743764A (en) | A kind of identification elevator scene method and device, mobile terminal device and storage medium | |
CN110177177A (en) | Message back method, mobile terminal and computer readable storage medium | |
CN109104219A (en) | Multiple antennas switching method, mobile terminal and computer storage medium | |
CN109618058A (en) | A kind of protection screen is from broken screen method and device, touch control device and storage medium | |
CN109327581A (en) | A kind of downloading switching device and mobile terminal | |
CN107888768A (en) | One kind solution lock control method, terminal and computer-readable recording medium | |
CN109660973A (en) | Bluetooth control method, mobile terminal and storage medium | |
CN109768811A (en) | The control method of radiation dispersion, communication terminal and computer readable storage medium between double antenna | |
CN108062241A (en) | A kind of switching method of display interface, terminal and storage medium | |
CN107844759A (en) | A kind of gesture identification method, terminal and storage medium | |
CN109725967A (en) | The method of adjustment and device, mobile terminal and storage medium of horizontal/vertical screen display mistake | |
CN110086925A (en) | A kind of application processing method and mobile terminal | |
CN109711830A (en) | The quick display methods and device, mobile terminal and storage medium of two dimensional code payment | |
CN109887448A (en) | A kind of flexible screen display methods, mobile terminal and computer readable storage medium | |
CN107911778A (en) | A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing | |
CN110166615A (en) | Automatically switch method, apparatus, terminal and the storage medium in call uplink signal source | |
CN106454953A (en) | Flow control method and apparatus, and terminal | |
CN109753483A (en) | file management application page display method and device, mobile terminal and storage medium | |
CN109739641A (en) | A kind of adaptive CPU frequency modulation accelerating method and device, mobile terminal and storage medium | |
CN109976644A (en) | Using the implementation method and device of prompt operation, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |