CN107357654A - A kind of CPU overclockings working state control method and device - Google Patents
A kind of CPU overclockings working state control method and device Download PDFInfo
- Publication number
- CN107357654A CN107357654A CN201710474676.8A CN201710474676A CN107357654A CN 107357654 A CN107357654 A CN 107357654A CN 201710474676 A CN201710474676 A CN 201710474676A CN 107357654 A CN107357654 A CN 107357654A
- Authority
- CN
- China
- Prior art keywords
- notification event
- working frequency
- cpu
- working
- judge
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- 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/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/08—Clock generators with changeable or programmable clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Abstract
The embodiment of the invention discloses a kind of CPU overclockings working state control method and device, wherein, the CPU overclocking working state control methods applied to the first equipment include:Obtain the first notification event;Wherein, first notification event receives the first operation for characterizing first equipment;Judge whether first notification event meets trigger condition;When first notification event meets trigger condition, control CPU is improved to the second working frequency from the first working frequency, and the CPU is kept the second working frequency in preset time.Using technical scheme described in the embodiment of the present invention, the overclocking performance of CPU under transient state usage scenario can be improved, lifts the usage experience of user.
Description
Technical field
The present invention relates to computer processing technology field, and in particular to a kind of CPU overclockings working state control method and dress
Put.
Background technology
At present, central processing unit (CPU, Central Processing Unit) overclocking is by radiating subassembly heat-sinking capability
And the limitation of electronic equipment watchcase permissive temperature, therefore, the overclocking duration can not be very long.
And in fact, user use electronic equipment during, the demand to CPU is not sustained, is more
To the high demand of the instantaneous disposal abilities of CPU.Such as document is being opened, configuration processor, switch interface, page turning, slide the behaviour such as webpage
The moment of work, user it is expected that CPU is quickly responded.Therefore, the performance of CPU overclockings under transient state usage scenario how is lifted, into
For technical problem urgently to be resolved hurrily.
The content of the invention
In view of this, present invention contemplates that providing a kind of CPU overclockings working state control method and device, improve transient state and use
CPU overclocking performance under scene, lift the usage experience of user.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiments of the invention provide a kind of CPU overclockings working state control method, set applied to first
Standby, methods described includes:
Obtain the first notification event;Wherein, first notification event receives first for characterizing first equipment
Operation;
Judge whether first notification event meets trigger condition;
When first notification event meets trigger condition, control CPU is improved to the second work from the first working frequency
Frequency, and the CPU is kept the second working frequency in preset time.
In such scheme, the control CPU is improved to the second working frequency from the first working frequency, and the CPU is existed
After keeping the second working frequency in preset time, methods described also includes;
Control CPU is reduced to first working frequency from second working frequency.
In such scheme, the first notification event of the acquisition includes:
Received by basic input output system (BIOS, Basic Input Output System) by embedded controller
The first notification event that (EC, Embed Controller) is sent;Wherein, the embedded controller detects that the first kind inputs
When equipment receives an operation, the first notification event is sent to the BIOS;And/or
Drive that (EM driver, Energy Management driver) send by power management the is received by BIOS
One notification event;Wherein, when the power management driving detects that the second class input equipment receives an operation, to the BIOS
Send the first notification event.
In such scheme, the control CPU is improved to before the second working frequency from the first working frequency, and methods described is also
Including:
Determine the event type of first notification event;
Mapping table is preset according to the event type search of first notification event;
According to the default mapping table, it is determined that the second working frequency corresponding with the event type and it is default when
Between.
It is described to judge whether first notification event meets trigger condition in such scheme, including:
When receiving first notification event, judge whether the CPU is in the first working frequency;
If the CPU is in the first working frequency, judge that first notification event meets trigger condition;
If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for trigger condition.
In such scheme, if the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for touching
After clockwork spring part, methods described also includes:
Start timing, and continue to monitor whether the CPU is changed into the first work frequency from being not in the first working condition
Rate, until the CPU is in the first working frequency;
If the CPU is changed into being in the first working frequency from being not in the first working condition, judge whether timing duration surpasses
Go out very first time threshold value, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, terminate
Processing to first notification event, wherein, the very first time threshold value be matched with first notification event it is default
Duration;If without departing from very first time threshold value, judge that first notification event meets trigger condition, and according to described
Very first time threshold value determines preset time corresponding to first notification event;Wherein, the preset time is equal to described default
Duration subtracts the timing duration.
Second aspect, the embodiments of the invention provide a kind of CPU overclockings working state control device, set applied to first
Standby, described device includes:
Communicator, for obtaining the first notification event;Wherein, first notification event is used to characterize first equipment
Receive the first operation;
Controller, for judging whether first notification event meets trigger condition;Expire in first notification event
During sufficient trigger condition, control CPU is improved to the second working frequency from the first working frequency, and makes the CPU in preset time
Keep the second working frequency.
In such scheme, the controller, it is additionally operable to:
Improved in the control CPU from the first working frequency to the second working frequency, and make the CPU in preset time
After keeping the second working frequency, control CPU is reduced to first working frequency from second working frequency.
In such scheme, the communicator, it is specifically used for:
The first notification event sent by embedded controller is received by BIOS;Wherein, the embedded controller inspection
When measuring first kind input equipment and receiving an operation, the first notification event is sent to the BIOS;
Received by BIOS and the first notification event sent is driven by power management;Wherein, the power management driving detection
When receiving an operation to the second class input equipment, the first notification event is sent to the BIOS.
In such scheme, described device also includes:
Memory, for storing default mapping table;
The controller, is additionally operable to:Improved in control CPU from the first working frequency to before the second working frequency, it is determined that
The event type of first notification event;Mapping table is preset according to the event type search of first notification event;
According to the default mapping table, it is determined that the second working frequency corresponding with the event type and preset time.
In such scheme, the controller, it is specifically used for:
If receive first notification event, judge whether the CPU is in the first working frequency;If the CPU
In the first working frequency, then judge that first notification event meets trigger condition;If the CPU is not in the first work frequency
Rate, then judge that first notification event is unsatisfactory for trigger condition.
In such scheme, the controller, also particularly useful for:
Start timing, and continue to monitor whether the CPU is changed into the first work frequency from being not in the first working condition
Rate, until the CPU is in the first working frequency;
If the CPU is changed into being in the first working frequency from being not in the first working condition, judge whether timing duration surpasses
Go out very first time threshold value, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, terminate
Processing to first notification event, wherein, the very first time threshold value be matched with first notification event it is default
Duration;If without departing from very first time threshold value, judge that first notification event meets trigger condition, according to described
One time threshold determines preset time corresponding to first notification event;Wherein, the preset time is equal to described preset and held
The continuous time subtracts the timing duration.
The third aspect, the embodiment of the present invention additionally provide a kind of computer-readable storage medium, in the computer-readable storage medium
Computer executable instructions are stored with, the computer executable instructions are used to perform the CPU overclockings described in the embodiment of the present invention
Working state control method.
In the embodiment of the present invention, the first notification event is obtained;Wherein, first notification event is used to characterize described first
Equipment receives the first operation;Judge whether first notification event meets trigger condition;Expire in first notification event
During sufficient trigger condition, control CPU is improved to the second working frequency from the first working frequency, and makes the CPU in preset time
Keep the second working frequency;In this way, the overclocking performance of CPU under transient state usage scenario can be improved, the usage experience of user is lifted.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of CPU overclockings working state control method provided in an embodiment of the present invention;
Fig. 2 is CPU working frequency change schematic diagrams under the first application scenarios provided in an embodiment of the present invention;
Fig. 3 is CPU working frequency change schematic diagrams under second of application scenarios provided in an embodiment of the present invention;
Fig. 4 is the configuration diagram provided in an embodiment of the present invention for realizing CPU overclocking working state controls;
Fig. 5 is a kind of structural representation of CPU overclockings working state control device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another CPU overclockings working state control device provided in an embodiment of the present invention.
Embodiment
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention
Now it is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one:
The embodiment of the present invention provides a kind of CPU overclockings working state control method, and methods described is applied to the first equipment, such as
Described in Fig. 1, methods described includes:
Step 101, obtain the first notification event;Wherein, first notification event connects for characterizing first equipment
Receive the first operation.
As a kind of embodiment, the first notification event of the acquisition includes:
The first notification event sent by embedded controller (EC) is received by basic input output system (BIOS);Its
In, when the embedded controller detects that first kind input equipment receives an operation, the first notice is sent to the BIOS
Event.
Here, the first kind input equipment, include but is not limited to:Keyboard.
In an embodiment, when embedded controller detects that first kind input equipment receives an operation, to
The BIOS sends the first notification event, including:
When embedded controller detects the operation to the programmable button on keyboard, judge that the keyboard receives the first behaviour
Make;
Wherein, the programmable button includes carriage return (Enter) key and directionkeys.
As a kind of embodiment, the first notification event of the acquisition includes:
The first notification event for driving (EM driver) to send by power management is received by BIOS;Wherein, the EM
When driver detects that the second class input equipment receives an operation, the first notification event is sent to the BIOS.
Here, the second class input equipment, include but is not limited to:Mouse, touch-screen, Trackpad.
In an embodiment, when the EM driver detect that the second class input equipment receives an operation, to
The BIOS sends the first notification event, including:
When detecting the predetermined registration operation to mouse/touch-screen, judge that the mouse/touch-screen receives the first operation;Its
In, the predetermined registration operation includes single-click operation, double click operation;
When detecting the predetermined registration operation to Trackpad, judge that the Trackpad receives the first operation;Wherein, it is described default
Operation includes single-click operation, double click operation, slide.
Wherein, the first kind input equipment, the second class input equipment match with first equipment
Input equipment.
Step 102, judge whether first notification event meets trigger condition.
It is described to judge whether first notification event meets trigger condition as a kind of embodiment, including:
When receiving first notification event, judge whether the CPU is in the first working frequency;
If the CPU is in the first working frequency, judge that first notification event meets trigger condition;
If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for trigger condition.
Alternatively, if the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for triggering bar
After part, methods described also includes:
Start timing, and continue to monitor whether the CPU is changed into the first work frequency from being not in the first working condition
Rate, until the CPU is in the first working frequency;
If the CPU is changed into being in the first working frequency from being not in the first working condition, judge whether timing duration surpasses
Go out very first time threshold value, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, terminate
Processing to first notification event, wherein, the very first time threshold value be matched with first notification event it is default
Duration;If without departing from very first time threshold value, judge that first notification event meets trigger condition, and according to described
Very first time threshold value determines preset time corresponding to first notification event;Wherein, the preset time is equal to described default
Duration subtracts the timing duration.
For example, the 0th second the first notification event received on keyboard, preset durations 3 seconds;Receive within 1st second
To the first notification event on touch-screen, preset durations 4 seconds;The timing since the 1st second, when a length of 2 seconds during timing, close
Terminate in the overclocking response of keyboard;After overclocking response on keyboard terminates, i.e., drop to the first work frequency from the second working frequency
After rate, then the overclocking of touch-screen is responded again, the response time is the 4-2=2 seconds.
Fig. 2 shows a kind of CPU working frequencies change schematic diagram, as shown in Fig. 2 within the period of the 0th~6 second, altogether
Receive two the first notification events;0th second the first notification event received on keyboard, CPU working frequencies are by the first work
Working frequency (PL1) was improved to the second working frequency (PL2), 3 seconds duration;Receive within 1st second logical on the first of touch-screen
County magistrate's part, preset durations corresponding with the first notification event of the touch-screen 4 seconds;The timing since the 1st second, timing duration
For 2 seconds when, i.e., at the 3rd second, on keyboard overclocking response terminates, CPU working frequencies by the second working frequency (PL2) recover
To the first working frequency (PL1);After overclocking response on keyboard terminates, i.e., drop to the first working frequency from the second working frequency
Afterwards, also the overclocking of touch-screen is responded, the response time is the 4-2=2 seconds, that is, continues to carry from the first working frequency (PL1)
Up to the second working frequency (PL2), 2 seconds duration, after the overclocking response on touch-screen terminates, dropped from the second working frequency
To the first working frequency, i.e., from the 5th second to the 6th second, CPU working frequency is the first working frequency (PL1) always.
Again for example, the 0th second the first notification event received on touch-screen, preset durations 4 seconds;1st second
Receive the first notification event on keyboard, preset durations 3 seconds;The timing since the 1st second, when a length of 3 seconds during timing,
Overclocking response on touch-screen terminates;After overclocking response on touch-screen terminates, timing duration is without departing from very first time threshold
Value 3 seconds, i.e. preset time subtract the timing duration for 3 seconds equal to the preset durations and are equal to 0 in 3 seconds, then without to keyboard
Overclocking is responded.
Fig. 3 shows another CPU working frequencies change schematic diagram, as shown in figure 3, within the period of the 0th~6 second,
Two the first notification events are received altogether;0th second the first notification event received on touch-screen, CPU working frequencies are by
One working frequency (PL1) was improved to the second working frequency (PL2), 4 seconds duration;First received on keyboard for 1st second
Notification event, preset durations corresponding with the first notification event of the keyboard 3 seconds;The timing since the 1st second, timing duration
For 3 seconds when, i.e., at the 4th second, on touch-screen overclocking response terminates, CPU working frequencies are extensive by the second working frequency (PL2)
Again to the first working frequency (PL1);After overclocking response on touch-screen terminates, i.e., drop to the first work from the second working frequency
After frequency, without being responded to the overclocking of keyboard, i.e., from the 4th second to the 6th second, CPU working frequency is always the first work
Frequency (PL1).
That is, within a period of time in the case of CPU is in the second working frequency, within this time, either
It is no also to receive the first notification event, former first notification event is only responded, and after the response to former first notification event terminates,
CPU working frequencies are recovered to the first working frequency by the second working frequency.
Step 103, when first notification event meets trigger condition, control CPU from the first working frequency improve to
Second working frequency, and the CPU is kept the second working frequency in preset time.
It so, it is possible to meet CPU process performance of the user to transient state usage scenario.Such as open document, configuration processor,
Switch the moment of the operations such as interface, page turning, slip webpage, it is possible to increase the instantaneous disposal abilities of CPU.
As a kind of embodiment, the control CPU is improved to before the second working frequency from the first working frequency, described
Method also includes:
Determine the event type of first notification event;
Mapping table is preset according to the event type search of first notification event;
According to the default mapping table, it is determined that the second working frequency corresponding with the event type and it is default when
Between.
Wherein, the default mapping table is stored with the first notification event of different event type, corresponding second work
Working frequency and preset time.
That is, the first operation of the different event that different type input equipment receives, corresponding second work frequency
Rate may be different, and corresponding overclocking duration may also be different.
Certainly, different types of first operation that the first notice time of same type receives, corresponding second work
Frequency may be different, and corresponding overclocking duration may also be different.
Further, the control CPU is improved to the second working frequency from the first working frequency, and makes the CPU pre-
If after keeping the second working frequency in the time, methods described also includes;
Control CPU is reduced to first working frequency from second working frequency.
In this way, CPU will not be constantly in the second higher working frequency, but the second work frequency is kept in preset time
First working frequency is reduced to from second working frequency after rate, CPU can either be lifted under transient state usage scenario
Moment disposal ability, meet usage experience of the user in transient state usage scenario, because CPU will not be constantly in higher second
Working frequency, i.e., the duration in the second working frequency is not grown every time, therefore, radiating is influenceed smaller.
In the present embodiment, first equipment is setting for the input equipment that matches with CPU and with first equipment
Standby, such as described first equipment can be desktop computer, notebook computer, mobile phone, TV equipment.
In the embodiment of the present invention, BIOS, which is obtained, characterizes the first notification event that the first equipment receives the first operation;Judge
Whether first notification event meets trigger condition;When first notification event meets trigger condition, control CPU is from the
One working frequency is improved to the second working frequency, and the CPU is kept the second working frequency in preset time;In this way, can
To improve the overclocking performance of CPU under transient state usage scenario, the usage experience of user is lifted.
Embodiment two
Fig. 4 is the configuration diagram provided in an embodiment of the present invention for realizing CPU overclocking working state controls, as shown in figure 4,
Realizing the framework of CPU overclocking working state controls mainly includes:
First kind input equipment, for receiving an operation;
Second class input equipment, for receiving an operation;
Embedded controller (EC), it is defeated to inputting substantially during for detecting that first kind input equipment receives an operation
Go out system (BIOS) and send the first notification event;Wherein, first kind input equipment is connected with EC, and EC is connected with BIOS;
Power management drives (EM driver), during for detecting that the second class input equipment receives an operation, to BIOS
Send the first notification event;Second class input equipment is connected with EM driver;EC is connected with BIOS;
Basic input output system (BIOS), for controlling CPU from the first working frequency according to default mapping table
(PL1) improve to the second working frequency (PL2), and the CPU is kept the second working frequency (PL2) in preset time.
Here, the default mapping table is the dynamic platform and heat-dissipating frame (DPTF, Dynamic pre-set
Platform and Thermal Framework) table, the DPTF tables are for controlling touch screen and temperature control to use, Ke Yi
Under different patterns, such as notebook or flat board, different temperature control adjustment can be carried out.
Here, the first working frequency (PL1) represents CPU not overclockings, the power reached after continual and steady.
Here, after the second working frequency (PL2) represents moment overclocking, the accessible power of CPU.
For example, EC detects that the programmable button (such as "enter" key" or directionkeys) on keyboard receives the first operation, Zhi Houtong
Know BIOS;After BIOS receives this kind of first notification event, the DPTF tables pre-set are called, it is determined that leading to described first
The second working frequency (PL2) of event matches is known, by CPU frequency by the first working frequency (PL1) overclocking to the second work frequency
Rate (PL2), continue the preset durations matched with first notification event.
For example, mouse single hit and dblclick, touch-screen (touchpad) single hit and dblclick are detected by the EM driver of system level and touched
Plate (touch panel) operation is controlled, notifies BIOS afterwards;After BIOS receives this kind of first notification event, calling is set in advance
The DPTF tables put, it is determined that the second working frequency (PL2) matched with first notification event, by CPU frequency by first
Working frequency (PL1) overclocking to the second working frequency (PL2), continue to match with first notification event it is default persistently when
Between.
For example, first working frequency (PL1) can be 15W, and second working frequency (PL2) can be
44W。
Wherein, the first kind input equipment, the second class input equipment are and the first equipment phase where CPU
The input equipment matched somebody with somebody.
It can be seen that when BIOS acquisition the first equipment of sign receives the first notification event of the first operation, described first is judged
Whether notification event meets trigger condition;When first notification event meets trigger condition, control CPU works frequently from first
Rate is improved to the second working frequency, and the CPU is kept the second working frequency in preset time;In this way, it can improve wink
CPU overclocking performance under state usage scenario, lift the usage experience of user.
Embodiment three
The embodiments of the invention provide a kind of CPU overclocking working state control devices for being applied to the first equipment, Fig. 5 is this
The composition structural representation for the CPU overclocking working state control devices that inventive embodiments provide, as shown in figure 5, the CPU overclockings
Working state control device includes:Communicator 51, controller 52;Wherein,
The communicator 51, for obtaining the first notification event;Wherein, first notification event is used to characterize described the
One equipment receives the first operation;
The controller 52, for judging whether first notification event meets trigger condition;In the described first notice
When event meets trigger condition, control CPU is improved to the second working frequency from the first working frequency, and makes the CPU default
The second working frequency is kept in time.
As a kind of optional embodiment, the controller 52, it is additionally operable to:
Improved in the control CPU from the first working frequency to the second working frequency, and make the CPU in preset time
After keeping the second working frequency, control CPU is reduced to first working frequency from second working frequency.
As a kind of optional embodiment, the communicator 51, it is specifically used for:
The first notification event sent by embedded controller is received by BIOS;Wherein, the embedded controller inspection
When measuring first kind input equipment and receiving an operation, the first notification event is sent to the BIOS;
Received by BIOS and the first notification event sent is driven by power management;Wherein, the power management driving detection
When receiving an operation to the second class input equipment, the first notification event is sent to the BIOS.
Further, described device also includes:
Memory 53 (is not shown) in Figure 5, for storing default mapping table;
The controller 52, is additionally operable to:Improved in control CPU from the first working frequency to before the second working frequency, really
The event type of fixed first notification event;Corresponding relation is preset according to the event type search of first notification event
Table;According to the default mapping table, it is determined that the second working frequency corresponding with the event type and preset time.
As a kind of optional embodiment, the controller 52, it is specifically used for:
If receive first notification event, judge whether the CPU is in the first working frequency;If the CPU
In the first working frequency, then judge that first notification event meets trigger condition;If the CPU is not in the first work frequency
Rate, then judge that first notification event is unsatisfactory for trigger condition.
As a kind of optional embodiment, the controller 52, also particularly useful for:
Start timing, and continue to monitor whether the CPU is changed into the first work frequency from being not in the first working condition
Rate, until the CPU is in the first working frequency;
If the CPU is changed into being in the first working frequency from being not in the first working condition, judge whether timing duration surpasses
Go out very first time threshold value, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, terminate
Processing to first notification event, wherein, the very first time threshold value be matched with first notification event it is default
Duration;If without departing from very first time threshold value, judge that first notification event meets trigger condition, according to described
One time threshold determines preset time corresponding to first notification event;Wherein, the preset time is equal to described preset and held
The continuous time subtracts the timing duration.
It will be appreciated by those skilled in the art that in the CPU overclocking working state control devices of the present embodiment each module work(
Can, it can refer to the associated description of foregoing CPU overclockings working state control method and understand.
CPU overclockings working state control device described in the present embodiment, obtain the first equipment of sign and receive the first operation
During the first notification event, judge whether first notification event meets trigger condition;Meet to touch in first notification event
During clockwork spring part, control CPU is improved to the second working frequency from the first working frequency, and the CPU is kept in preset time
Second working frequency;In this way, the overclocking performance of CPU under transient state usage scenario can be improved, the usage experience of user is lifted.
Example IV
The embodiments of the invention provide a kind of CPU overclocking working state control devices for being applied to the first equipment, Fig. 6 is this
The composition structural representation for the CPU overclocking working state control devices that inventive embodiments provide, as shown in fig. 6, the CPU overclockings
Working state control device includes:Acquiring unit 61, judging unit 62, control unit 63;Wherein,
The acquiring unit 61, for obtaining the first notification event;Wherein, first notification event is described for characterizing
First equipment receives the first operation;
The judging unit 62, for judging whether first notification event meets trigger condition;
Described control unit 63, for when first notification event meets trigger condition, control CPU to work from first
Frequency is improved to the second working frequency, and the CPU is kept the second working frequency in preset time.
As a kind of optional embodiment, described control unit 63, it is additionally operable to:Carried in control CPU from the first working frequency
Up to the second working frequency, and making after the CPU keeps the second working frequency in preset time, control CPU is from described the
Two working frequencies are reduced to first working frequency.
As a kind of optional embodiment, the acquiring unit 61, it is specifically used for:
The first notification event sent by embedded controller (EC) is received by basic input output system (BIOS);Its
In, when the embedded controller detects that first kind input equipment receives an operation, the first notice is sent to the BIOS
Event;And/or
The first notification event for driving (EM driver) to send by power management is received by BIOS;Wherein, the power supply pipe
When reason driving detects that the second class input equipment receives an operation, the first notification event is sent to the BIOS.
As a kind of optional embodiment, described control unit 63 is improved to second in control CPU from the first working frequency
Before working frequency, it is additionally operable to:Determine the event type of first notification event;According to the event of first notification event
Type search presets mapping table;According to the default mapping table, it is determined that the second work corresponding with the event type
Working frequency and preset time.
As a kind of optional embodiment, the judging unit 62, it is additionally operable to:When receiving first notification event,
Judge whether the CPU is in the first working frequency;If the CPU is in the first working frequency, first notice is judged
Event meets trigger condition;If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for triggering
Condition.
As a kind of optional embodiment, the judging unit 62, it is additionally operable to:If the CPU is not in the first work frequency
Rate, then judge that first notification event is unsatisfactory for after trigger condition, the judging unit 62, be additionally operable to:Start timing, and
Continue to monitor whether the CPU is changed into being in the first working frequency from being not in the first working condition, until the CPU is in the
One working frequency;If the CPU is changed into being in the first working frequency from being not in the first working condition, whether timing duration is judged
Beyond very first time threshold value, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, tie
Processing of the beam to first notification event, wherein, the very first time threshold value be matched with first notification event it is pre-
If the duration;If without departing from very first time threshold value, judge that first notification event meets trigger condition, and according to institute
State very first time threshold value and determine preset time corresponding to first notification event;Wherein, the preset time is equal to described pre-
If the duration subtracts the timing duration.
It will be appreciated by those skilled in the art that in the CPU overclocking working state control devices of the present embodiment each module work(
Can, it can refer to the associated description of foregoing CPU overclockings working state control method and understand.
In practical application, above-mentioned acquiring unit 61, judging unit 62, the concrete structure of control unit 63 may both correspond to locate
Manage device.The specific structure of processor can be microprocessor (MCU, Micro Controller Unit), at data signal
Manage device (DSP, Digital Signal Processing) or PLD (PLC, Programmable Logic
) etc. Controller there is the set of the electronic component or electronic component of processing function.Wherein, the processor include can
Code is performed, the executable code is stored in storage medium, and the processor can pass through the communication interfaces such as bus and institute
State in storage medium and be connected, when performing the corresponding function of specific each unit, read from the storage medium and run institute
State executable code.The part that the storage medium is used to store the executable code is preferably non-moment storage medium.Its
In, the executable code is used to perform the control method described in the various embodiments described above.
In the present embodiment, first equipment can be notebook computer, desktop computer, tablet personal computer, TV, mobile phone etc.
The equipment of the input equipment to match with CPU and with first equipment.
CPU overclockings working state control device described in the present embodiment, obtain the first equipment of sign and receive the first operation
During the first notification event, judge whether first notification event meets trigger condition;Meet to touch in first notification event
During clockwork spring part, control CPU is improved to the second working frequency from the first working frequency, and the CPU is kept in preset time
Second working frequency;In this way, the overclocking performance of CPU under transient state usage scenario can be improved, the usage experience of user is lifted.
The present embodiment also provides a kind of storage medium, and the storage medium is stored with computer program, the computer journey
After sequence is executed by processor, foregoing any one or more CPU overclockings working state control method can be realized.
The computer-readable storage medium can be various types of storage mediums, preferably be deposited in the present embodiment for non-moment
Storage media.
It will be appreciated by those skilled in the art that in the storage medium of the present embodiment each program function, can refer to embodiment
The associated description of described CPU overclocking working state control methods and understand.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to
In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists
During execution, execution the step of including above method embodiment;And foregoing storage medium includes:Movable storage device, read-only deposit
Reservoir (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
CD etc. is various can be with the medium of store program codes.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are causing a computer equipment (can be with
It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the present invention.
And foregoing storage medium includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of CPU overclockings working state control method, applied to the first equipment, methods described includes:
Obtain the first notification event;Wherein, first notification event receives the first operation for characterizing first equipment;
Judge whether first notification event meets trigger condition;
When first notification event meets trigger condition, control CPU is improved to the second working frequency from the first working frequency,
And the CPU is set to keep the second working frequency in preset time.
2. according to the method for claim 1, it is characterised in that the control CPU is improved to second from the first working frequency
Working frequency, and make after the CPU keeps the second working frequency in preset time, methods described also includes;
Control CPU is reduced to first working frequency from second working frequency.
3. according to the method for claim 1, it is characterised in that the first notification event of the acquisition includes:
The first notification event sent by embedded controller EC is received by basic input-output system BIOS;Wherein, it is described embedding
When entering formula controller and detecting that first kind input equipment receives an operation, the first notification event is sent to the BIOS;And/or
Received by BIOS and the first notification event sent is driven by power management;Wherein, power management driving detects the
When two class input equipments receive an operation, the first notification event is sent to the BIOS.
4. according to the method for claim 1, it is characterised in that the control CPU is improved to second from the first working frequency
Before working frequency, methods described also includes:
Determine the event type of first notification event;
Mapping table is preset according to the event type search of first notification event;
According to the default mapping table, it is determined that the second working frequency corresponding with the event type and preset time.
5. according to the method for claim 1, it is characterised in that described to judge whether first notification event meets to trigger
Condition, including:
When receiving first notification event, judge whether the CPU is in the first working frequency;
If the CPU is in the first working frequency, judge that first notification event meets trigger condition;
If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for trigger condition;
If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for after trigger condition, it is described
Method also includes:
Start timing, and continue to monitor whether the CPU is changed into being in the first working frequency from being not in the first working condition, directly
The first working frequency is in the CPU;
If the CPU is changed into being in the first working frequency from being not in the first working condition, judge timing duration whether beyond the
One time threshold, if exceeding very first time threshold value, judge that first notification event is unsatisfactory for trigger condition, terminate to institute
State the processing of the first notification event, wherein, the very first time threshold value be matched with first notification event it is default lasting
Time;If without departing from very first time threshold value, judge that first notification event meets trigger condition, and according to described first
Time threshold determines preset time corresponding to first notification event;Wherein, the preset time is equal to described default lasting
Time subtracts the timing duration.
6. a kind of CPU overclockings working state control device, applied to the first equipment, described device includes:
Communicator, for obtaining the first notification event;Wherein, first notification event is used to characterize the first equipment reception
To the first operation;
Controller, for judging whether first notification event meets trigger condition;Meet to touch in first notification event
During clockwork spring part, control CPU is improved to the second working frequency from the first working frequency, and the CPU is kept in preset time
Second working frequency.
7. device according to claim 6, it is characterised in that the controller, be additionally operable to:
Improved in the control CPU from the first working frequency to the second working frequency, and the CPU is kept in preset time
After second working frequency, control CPU is reduced to first working frequency from second working frequency.
8. device according to claim 6, it is characterised in that the communicator, be specifically used for:
The first notification event sent by embedded controller is received by BIOS;Wherein, the embedded controller detects
When first kind input equipment receives an operation, the first notification event is sent to the BIOS;
Received by BIOS and the first notification event sent is driven by power management;Wherein, power management driving detects the
When two class input equipments receive an operation, the first notification event is sent to the BIOS.
9. device according to claim 6, it is characterised in that described device also includes:
Memory, for storing default mapping table;
The controller, is additionally operable to:Improved in control CPU from the first working frequency to before the second working frequency, it is determined that described
The event type of first notification event;Mapping table is preset according to the event type search of first notification event;According to
The default mapping table, it is determined that the second working frequency corresponding with the event type and preset time.
10. device according to claim 6, it is characterised in that the controller, be specifically used for:
If receive first notification event, judge whether the CPU is in the first working frequency;If the CPU is in
First working frequency, then judge that first notification event meets trigger condition;If the CPU is not in the first working frequency,
Then judge that first notification event is unsatisfactory for trigger condition;
If the CPU is not in the first working frequency, judge that first notification event is unsatisfactory for after trigger condition, start
Timing, and continue to monitor whether the CPU is changed into being in the first working frequency from being not in the first working condition, until described
CPU is in the first working frequency;If the CPU is changed into being in the first working frequency from being not in the first working condition, judge to count
Whether Shi Shichang exceeds very first time threshold value, if exceeding very first time threshold value, judges that first notification event is unsatisfactory for
Trigger condition, terminate the processing to first notification event, wherein, the very first time threshold value is and the described first notice thing
The preset durations of part matching;If without departing from very first time threshold value, judge that first notification event meets triggering bar
Part, the preset time according to corresponding to the very first time threshold value determines first notification event;Wherein, described preset time etc.
Subtract the timing duration in the preset durations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710474676.8A CN107357654B (en) | 2017-06-21 | 2017-06-21 | Method and device for controlling over-frequency working state of CPU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710474676.8A CN107357654B (en) | 2017-06-21 | 2017-06-21 | Method and device for controlling over-frequency working state of CPU |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107357654A true CN107357654A (en) | 2017-11-17 |
CN107357654B CN107357654B (en) | 2020-07-24 |
Family
ID=60272922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710474676.8A Active CN107357654B (en) | 2017-06-21 | 2017-06-21 | Method and device for controlling over-frequency working state of CPU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357654B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275510A (en) * | 2019-06-14 | 2019-09-24 | 百度在线网络技术(北京)有限公司 | Processing frequency method of adjustment, device and the electronic equipment of vehicle control model |
CN110941492A (en) * | 2019-11-21 | 2020-03-31 | 苏州浪潮智能科技有限公司 | Server, working frequency setting method, system and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140136823A1 (en) * | 2012-11-15 | 2014-05-15 | Daniel J. Ragland | Enabling A User And/Or Software To Dynamically Control Performance Tuning Of A Processor |
CN104123205A (en) * | 2013-04-24 | 2014-10-29 | 联想(北京)有限公司 | Method and device for detecting CPU over-clock working state |
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN104794005A (en) * | 2015-03-23 | 2015-07-22 | 北京畅游天下网络技术有限公司 | Method and device for optimizing CPU running frequencies |
CN106406424A (en) * | 2015-07-31 | 2017-02-15 | 联想(北京)有限公司 | Electronic device and overclocking control method |
-
2017
- 2017-06-21 CN CN201710474676.8A patent/CN107357654B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140136823A1 (en) * | 2012-11-15 | 2014-05-15 | Daniel J. Ragland | Enabling A User And/Or Software To Dynamically Control Performance Tuning Of A Processor |
CN104123205A (en) * | 2013-04-24 | 2014-10-29 | 联想(北京)有限公司 | Method and device for detecting CPU over-clock working state |
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN104794005A (en) * | 2015-03-23 | 2015-07-22 | 北京畅游天下网络技术有限公司 | Method and device for optimizing CPU running frequencies |
CN106406424A (en) * | 2015-07-31 | 2017-02-15 | 联想(北京)有限公司 | Electronic device and overclocking control method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275510A (en) * | 2019-06-14 | 2019-09-24 | 百度在线网络技术(北京)有限公司 | Processing frequency method of adjustment, device and the electronic equipment of vehicle control model |
CN110941492A (en) * | 2019-11-21 | 2020-03-31 | 苏州浪潮智能科技有限公司 | Server, working frequency setting method, system and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107357654B (en) | 2020-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI469038B (en) | Electronic device with touch screen and screen unlocking method thereof | |
CN103713829B (en) | System switching method, device and electronic equipment | |
WO2002021245A1 (en) | Clock control method, device therefor, and medium | |
TW200612305A (en) | Electronic device, method for controlling the same, information processing apparatus, and computer program | |
CN108089789A (en) | The method of adjustment and terminal that icon is shown | |
WO2014019124A1 (en) | Touch event reporting method, device and mobile terminal | |
CN103744604A (en) | Information processing method and electronic device | |
CN104345944B (en) | Device, method and the mobile terminal of adaptive adjustment touch input panel layout | |
TW201344552A (en) | Mobile device and gesture determination method | |
CN106250190A (en) | A kind of application startup method and terminal | |
CN107193438A (en) | One kind management desk-top picture calibration method and mobile terminal | |
US20130173031A1 (en) | Computer numerical control machine and control method | |
CN103914295B (en) | Wake events management method, wake events managing device | |
CN107219988A (en) | A kind of interface operation bootstrap technique and mobile terminal | |
CN104820566A (en) | Method and device for returning to major screen of small and smart touch terminal | |
CN106951335A (en) | A kind of process guard method and mobile terminal | |
CN107608823A (en) | A kind of photo processing method and mobile terminal | |
CN109491573B (en) | Electronic device control method and electronic device for executing the method | |
CN107357654A (en) | A kind of CPU overclockings working state control method and device | |
CN106843885A (en) | The method of controlling operation thereof and mobile terminal of a kind of mobile terminal | |
CN106227453A (en) | The control method of a kind of mobile terminal and mobile terminal | |
CN106940597A (en) | A kind of camera starts control method and mobile terminal | |
US20210019401A1 (en) | Method and apparatus for displaying keyboard, and terminal device | |
CN107172304A (en) | A kind of mobile terminal power consumption detection method and mobile terminal | |
CN103902011A (en) | Electronic device controlling method and electronic device |
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 |