CN110442226A - A kind of the particular task terminal handler frequency modulation method and device of task based access control type - Google Patents
A kind of the particular task terminal handler frequency modulation method and device of task based access control type Download PDFInfo
- Publication number
- CN110442226A CN110442226A CN201910734758.0A CN201910734758A CN110442226A CN 110442226 A CN110442226 A CN 110442226A CN 201910734758 A CN201910734758 A CN 201910734758A CN 110442226 A CN110442226 A CN 110442226A
- Authority
- CN
- China
- Prior art keywords
- cpu
- task
- frequency
- type
- working
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3243—Power saving in microcontroller unit
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
Abstract
The present invention relates to a kind of terminal CPU frequency modulation method of task based access control type and devices, terminal applied to Android system, this method comprises: S1: determining the task type of current task according to task type mapping table, if current task is not belonging to any task type, CPU working frequency is adjusted using interactive working strategies, it is no to then follow the steps S2;S2: tables of data is mapped according to the task type enquiry frequency of current task, obtains the CPU lowest operating frequency value that can make to execute the normal operation of terminal of current task;S3: the frequency values of CPU are revised as the lowest operating frequency value based on userspace working strategies.Compared with prior art, the present invention has many advantages, such as that energy conservation, adaptability are good.
Description
Technical field
The present invention relates to processor control technology fields, more particularly, to a kind of particular task terminal of task based access control type
Processor frequency modulation method and device.
Background technique
With the development of internet and smart phone technology, the mobile terminals such as smart phone are more more and more universal, but mobile whole
End cannot charge at any time, and how the backward areas especially having a power failure in infrastructure, often are realized more under limited battery capacity
Long cruising ability is the research emphasis of manufacturer, wherein CPU operation is the pith of electric quantity consumption, and CPU consumes energy and it
Working frequency is proportional, and the working frequency by adjusting CPU come the power consumption for reducing terminal is current main means.CPU at present
Interactive mode in operating mode is the main way that mobile terminal carries out dynamic regulation to cpu frequency, main thought
It is the frequency by monitoring the size dynamic regulation processor of actual loading: the periodically load of acquisition CPU, and according to a week
Load in phase determines the load of next cycle.But there are some deficiencies for the mode method: the meeting when opening a task
So that the frequency of processor is directly risen to highest, then handled again by multiple lifting frequency, maintains the frequency of processor to one
Stationary value;It will appear the minor fluctuations of stable frequency value in the execution stage of task simultaneously.
The prior art also proposed some solutions, and Chinese patent CN104407690B proposes a kind of adjusting CPU work
The method, device and mobile terminal of working frequency, this method comprises: determining being in front stage operation of the task;Utilize prestoring for task
With the mapping relations of task type, the affiliated task type of task for being in front stage operation is determined;Using the task type that prestores and
The mapping relations of CPU working frequency determine CPU working frequency corresponding with the task type;Using corresponding with the task type
CPU working frequency configuration CPU working frequency.The patent configures CPU work frequency according to currently interacting with user for task
Rate reduces influence of the task of running background to CPU working frequency, but the patent is not for inquiring corresponding task type
Task is only designated as unknown task, does not carry out subsequent processing, and method is incomplete, and in new task open stage, system load
It is likely to be breached peak value, if directly setting predeterminated frequency for CPU working frequency, terminal system is likely to occur slow in reacting etc. ask
Topic.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of task based access control types
Particular task terminal handler frequency modulation method and device.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of terminal CPU frequency modulation method of task based access control type, the terminal applied to Android system, comprising:
S1: determining the task type of current task according to task type mapping table, if current task is not belonging to any task
Type adjusts CPU working frequency using interactive working strategies, no to then follow the steps S2;
S2: tables of data is mapped according to the task type enquiry frequency of current task, obtains the end that can make to execute current task
Hold the CPU lowest operating frequency value operated normally;
S3: the frequency values of CPU are revised as the lowest operating frequency value based on userspace working strategies.
Further, the CPU working frequency is ascending is divided into several grades, the corresponding CPU work of each grade
Frequency values.
Further, the task type mainly includes task continual and steady in main a period of time, typical mission class
Type includes playing video (including video recording etc., can be divided into the clear video of height) and playing music (or recording).
Further, the task class of current task is obtained according to the personal characteristics query task Type mapping table of current task
Type, it is described play video and play music personal characteristics include video file format parsing, call player, open audio,
It accesses data network and calls GPS hardware device.
Further, the frequency values of CPU are revised as the process of lowest operating frequency value by step S3 specifically:
S301: judging whether system load reaches peak value, and if so then execute step S302, otherwise directly CPU works frequently
Rate is set as lowest operating frequency value;
S302: work frequency than more higher leveled grade where lowest operating frequency value is first set by the operating frequency value of CPU
The frequency values of CPU are set as lowest operating frequency value again when the system load for reaching peak value declines by rate value.
Further, the task type mapping table, frequency mapping tables of data are pre-stored data, the high-priority task
To preset.
A kind of terminal CPU frequency modulation device of task based access control type, the terminal applied to Android system, comprising:
Storage unit maps tables of data for store tasks Type mapping table and frequency;
Task type monitoring unit, for monitoring current task and determining appointing for current task according to task type mapping table
Service type;
Working frequency query unit, for mapping tables of data according to task type enquiry frequency, acquisition can make to execute current
The CPU lowest operating frequency value of the normal operation of terminal of task;
CPU operating mode control unit, for setting the operating mode of CPU, which includes userspace work
Strategy and interactive working strategies;
Working frequency adjusts unit, and the operating mode for the CPU using the setting of CPU operating mode control unit is by CPU
Frequency be adjusted to CPU lowest operating frequency value.
Further, appoint belonging to current task when working frequency query unit fails to inquire in task type mapping table
Service type, then working frequency adjusts unit and the operating mode of CPU is set as interactive working strategies, is otherwise set as
Userspace working strategies.
Further, the task type monitoring unit is true according to the personal characteristics and task type mapping table of current task
Determine the task type of current task.
Further, the CPU working frequency is ascending is divided into several grades, the corresponding CPU work of each grade
Frequency values, the working frequency adjust the process that CPU working frequency is adjusted to CPU lowest operating frequency value by unit specifically:
Judge whether system load reaches peak value, if then first setting the operating frequency value of CPU to than minimum work frequency
The frequency values of CPU are set as by the higher leveled operating frequency value of grade where rate value again when the system load for reaching peak value declines
Otherwise CPU working frequency is directly set as lowest operating frequency value by lowest operating frequency value.
Compared with prior art, the present invention have with following the utility model has the advantages that
(1) task type of the invention by judging current execution task according to preset task type mapping table, then really
Fixed CPU working frequency corresponding with the task type sets CPU working frequency according to determining CPU working frequency, for not having
The corresponding task of preset task type then still uses interactive working strategies, avoids repeatedly calculating and frequency fluctuation tune
Section, reduces CPU operating power consumption, and implementation process is simple;
(2) present invention first determines whether that system load is during the frequency values of CPU are set as lowest operating frequency value
It is no to reach peak value, if then first setting frequency than more higher leveled grade where lowest operating frequency value for the operating frequency value of CPU
The frequency values of CPU are set as lowest operating frequency value again when the system load for reaching peak value is begun to decline, thus are avoided that by rate value
There is situation slow in reacting in terminal system;
(3) present invention can appoint according to the flexible preset task Type mapping table of application scenarios of terminal for executing specialization
The effect of the reduction energy consumption of the terminal of business is higher, flexibility and practical.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention
Premised on implemented, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to
Following embodiments.
Embodiment one
The present embodiment terminal selects the Android phone of the valiant imperial platform of high pass, which uses eight cores and Android8.1
The root authority of system, chip type msm8937, mobile phone is opened.
Task type included by the present embodiment task type mapping table be playing duration be 5 minutes high definition 1080p,
Low clear 320p and normal music files, these three types of task types are successively designated as T (1), T (2) and T (3), the task type of use
Property feature be average current size, during this task execution using power consumption tester survey on mobile terminals acquire one section when
The average data of interior fluctuation battery value or the current value variation range to tend towards stability.
Measure the average current and real-time stabilization frequency values when execution task T (1), T (2) and (3) T, the stable frequency
Value is followed successively by F (1), F (2) and F (3), task type mapping table is established according to average current size and task type, according to task
Type and corresponding stable frequency value establish frequency mapping tables of data.
A kind of terminal CPU frequency modulation method of task based access control type, such as Fig. 1, comprising:
S1: determining the task type of current task according to task type mapping table, if current task is not belonging to any task
Type adjusts CPU working frequency using interactive working strategies, no to then follow the steps S2;
S2: tables of data is mapped according to the task type enquiry frequency of current task, obtains the end that can make to execute current task
Hold the CPU lowest operating frequency value operated normally;
S3: the frequency values of CPU are revised as the lowest operating frequency value based on userspace working strategies;
Further, the frequency values of CPU are revised as the process of lowest operating frequency value by step S3 specifically:
S301: judging whether system load reaches peak value, and if so then execute step S302, otherwise directly CPU works frequently
Rate is set as lowest operating frequency value;
S302: work frequency than more higher leveled grade where lowest operating frequency value is first set by the operating frequency value of CPU
The frequency values of CPU are set as lowest operating frequency value again when the system load for reaching peak value declines by rate value.
Embodiment two
A kind of terminal CPU frequency modulation device of task based access control type corresponding with embodiment one, the end applied to Android system
End, including storage unit, task type monitoring unit, CPU operating mode control unit and working frequency adjust unit;
Wherein, the storage unit maps tables of data for store tasks Type mapping table and frequency;The task class
Type monitoring unit is used to monitor current task and determines the task type of current task according to task type mapping table;The work
Frequency queries unit is used to map tables of data according to task type enquiry frequency, and it is normal to obtain the terminal that can make to execute current task
The CPU lowest operating frequency value of operation;The CPU operating mode control unit is used to set the operating mode of CPU, the Working mould
Formula includes userspace working strategies and interactive working strategies;The working frequency adjusts unit and is used to use CPU
The frequency of CPU is adjusted to CPU lowest operating frequency value by the operating mode of the CPU of operating mode control unit setting.
When working frequency query unit fails to inquire task type belonging to current task in task type mapping table, then
Working frequency adjusts unit and the operating mode of CPU is set as interactive working strategies, is otherwise set as userspace work
Strategy, the task type monitoring unit determine current task according to the personal characteristics and task type mapping table of current task
Task type;
Wherein, CPU working frequency is ascending is divided into several grades, the corresponding CPU operating frequency value of each grade, institute
It states working frequency and adjusts the process that CPU working frequency is adjusted to CPU lowest operating frequency value by unit specifically: judge system load
Whether peak value is reached, if then first setting than more higher leveled grade where lowest operating frequency value for the operating frequency value of CPU
The frequency values of CPU are set as lowest operating frequency value again when the system load for reaching peak value declines, otherwise directly by operating frequency value
It connects and CPU working frequency is set as lowest operating frequency value.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that those skilled in the art without
It needs creative work according to the present invention can conceive and makes many modifications and variations.Therefore, all technologies in the art
Personnel are available by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea
Technical solution, all should be within the scope of protection determined by the claims.
Claims (9)
1. a kind of terminal CPU frequency modulation method of task based access control type will be it is characterized in that, should applied to the terminal of Android system
Method includes:
S1: determining the task type of current task according to task type mapping table, if current task is not belonging to any task type,
CPU working frequency is adjusted using interactive working strategies, it is no to then follow the steps S2;
S2: tables of data is mapped according to the task type enquiry frequency of current task, is obtaining the terminal that can make to execute current task just
The CPU lowest operating frequency value often run;
S3: the frequency values of CPU are revised as the lowest operating frequency value based on userspace working strategies.
2. a kind of terminal CPU frequency modulation method of task based access control type according to claim 1, which is characterized in that the CPU
Working frequency is ascending to be divided into several grades, the corresponding CPU operating frequency value of each grade.
3. a kind of terminal CPU frequency modulation method of task based access control type according to claim 2, which is characterized in that step S3
The frequency values of CPU are revised as to the process of lowest operating frequency value specifically:
S301: judging whether system load reaches peak value, if so then execute step S302, otherwise directly sets CPU working frequency
For lowest operating frequency value;
S302: first setting operating frequency value than more higher leveled grade where lowest operating frequency value for the operating frequency value of CPU,
The frequency values of CPU are set as lowest operating frequency value again when the system load for reaching peak value declines.
4. a kind of terminal CPU frequency modulation method of task based access control type according to claim 1, which is characterized in that according to working as
The personal characteristics query task Type mapping table of preceding task obtains the task type of current task.
5. a kind of terminal CPU frequency modulation method of task based access control type according to claim 1, which is characterized in that described
Service type mapping table, frequency mapping tables of data are pre-stored data, and the high-priority task is to preset.
6. a kind of terminal CPU frequency modulation device of task based access control type, the terminal applied to Android system characterized by comprising
Storage unit maps tables of data for store tasks Type mapping table and frequency;
Task type monitoring unit, for monitoring current task and determining the task class of current task according to task type mapping table
Type;
Working frequency query unit, for mapping tables of data according to task type enquiry frequency, acquisition can make to execute current task
Normal operation of terminal CPU lowest operating frequency value;
CPU operating mode control unit, for setting the operating mode of CPU, which includes userspace working strategies
With interactive working strategies;
Working frequency adjusts unit, and the operating mode for the CPU using the setting of CPU operating mode control unit works CPU
Frequency is adjusted to CPU lowest operating frequency value.
7. a kind of terminal CPU frequency modulation device of task based access control type according to claim 6, which is characterized in that work as work
Frequency queries unit fails to inquire task type belonging to current task in task type mapping table, then working frequency adjusts single
The operating mode of CPU is set as interactive working strategies by member, is otherwise set as userspace working strategies.
8. a kind of terminal CPU frequency modulation device of task based access control type according to claim 6, which is characterized in that described
Service type monitoring unit inquires the determining current task of the task according to the personal characteristics of current task in task type mapping table
Type.
9. a kind of terminal CPU frequency modulation device of task based access control type according to claim 6, which is characterized in that the CPU
Working frequency is ascending to be divided into several grades, and the corresponding CPU operating frequency value of each grade, the working frequency adjusts single
CPU working frequency is adjusted to the process of CPU lowest operating frequency value by member specifically:
Judge whether system load reaches peak value, if then first setting the operating frequency value of CPU to than lowest operating frequency value
The frequency values of CPU are set as minimum again when the system load for reaching peak value declines by the higher leveled operating frequency value of place grade
Otherwise CPU working frequency is directly set as lowest operating frequency value by operating frequency value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910734758.0A CN110442226B (en) | 2019-08-09 | 2019-08-09 | Task type-based frequency modulation method and device for specific task terminal processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910734758.0A CN110442226B (en) | 2019-08-09 | 2019-08-09 | Task type-based frequency modulation method and device for specific task terminal processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110442226A true CN110442226A (en) | 2019-11-12 |
CN110442226B CN110442226B (en) | 2023-05-30 |
Family
ID=68434267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910734758.0A Active CN110442226B (en) | 2019-08-09 | 2019-08-09 | Task type-based frequency modulation method and device for specific task terminal processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110442226B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104407690A (en) * | 2014-12-19 | 2015-03-11 | 中科创达软件股份有限公司 | Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) |
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN105045369A (en) * | 2015-06-19 | 2015-11-11 | 北京大学深圳研究生院 | Dynamic CPU frequency adjustment method based on historical user-interaction information |
CN105892615A (en) * | 2015-12-22 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | CPU load collecting method and device |
CN106569574A (en) * | 2015-10-10 | 2017-04-19 | 中兴通讯股份有限公司 | Frequency management method and device for multicore CPU (Central Processing Unit) |
-
2019
- 2019-08-09 CN CN201910734758.0A patent/CN110442226B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104407690A (en) * | 2014-12-19 | 2015-03-11 | 中科创达软件股份有限公司 | Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) |
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN105045369A (en) * | 2015-06-19 | 2015-11-11 | 北京大学深圳研究生院 | Dynamic CPU frequency adjustment method based on historical user-interaction information |
CN106569574A (en) * | 2015-10-10 | 2017-04-19 | 中兴通讯股份有限公司 | Frequency management method and device for multicore CPU (Central Processing Unit) |
CN105892615A (en) * | 2015-12-22 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | CPU load collecting method and device |
Non-Patent Citations (1)
Title |
---|
姜仲秋: "Linux系统运行态的动态变频低功耗策略", 《微电子学》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110442226B (en) | 2023-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102369647B (en) | Power supply managment method and device of mobile terminal | |
US9026814B2 (en) | Power and load management based on contextual information | |
JP5281145B2 (en) | Recurrent schedule integration method and system for resource consumption optimization | |
CN103151019B (en) | Control method and control device of display refresh rate of mobile terminal | |
CN102403767B (en) | Battery discharge control method and device | |
US20170026869A9 (en) | Portable Communication Device with Multi-Tiered Power Save Operation | |
WO2021043300A1 (en) | Operation frequency adjustment method for switched power supply, and device | |
CN110994638B (en) | Reactive compensation method, system and computer readable storage medium | |
CN111901385B (en) | Cloud hard disk speed limiting method, system, device and computer readable storage medium | |
CN107202400B (en) | Air conditioner control method and system and air conditioner | |
CN110425703A (en) | A kind of starting method, storage medium and the air-conditioning of compressor of air conditioner | |
CN115289638A (en) | Air conditioner frequency control method, device, equipment and storage medium | |
US20130274944A1 (en) | Electricity management apparatus and electricity management method | |
CN110442226A (en) | A kind of the particular task terminal handler frequency modulation method and device of task based access control type | |
CN114443284A (en) | Cluster resource load balancing method and device, electronic equipment and medium | |
CN113595109A (en) | Flywheel energy storage capacity configuration method and device | |
CN115347650A (en) | Power supply method, device, equipment and medium based on voltage adjustment of detection equipment | |
KR20130112617A (en) | Scheduling method, system, and computer-readable recording medium for reducing power consumption of smart device | |
CN110647437B (en) | Method, device, terminal and medium for adjusting CPU utilization rate based on PID controller | |
CN109765986A (en) | Power-saving control method, terminal device and computer readable storage medium | |
CN105676998A (en) | Graded electricity saving method for intelligent terminal device | |
CN116257360B (en) | Method and system for planning container group resources based on historical usage data | |
CN116914894B (en) | Cut-off voltage adjusting method, electronic device and readable storage medium | |
CN104503974A (en) | Automatic optimization method of relational database on the basis of cloud platform | |
CN110167121A (en) | A kind of mobile terminal power consumption optimization method and device based on user behavior analysis |
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 |