WO2017206915A1 - Method for determining kernel running configuration in processor and related product - Google Patents

Method for determining kernel running configuration in processor and related product Download PDF

Info

Publication number
WO2017206915A1
WO2017206915A1 PCT/CN2017/086655 CN2017086655W WO2017206915A1 WO 2017206915 A1 WO2017206915 A1 WO 2017206915A1 CN 2017086655 W CN2017086655 W CN 2017086655W WO 2017206915 A1 WO2017206915 A1 WO 2017206915A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
frequency
running
action
category
Prior art date
Application number
PCT/CN2017/086655
Other languages
French (fr)
Chinese (zh)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206915A1 publication Critical patent/WO2017206915A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space

Definitions

  • the present invention relates to the field of terminals, and in particular, to a method for determining a kernel running configuration in a processor and related products.
  • multi-core technology has become an important direction for the development of today's processors.
  • the multi-core processor technology can greatly improve the performance of the system by maintaining the same frequency by means of mutual assistance of multiple processing cores.
  • an embodiment of the present invention provides a method for determining a running configuration of a kernel in a processor, including: acquiring an operation action of a current user; and identifying a category of an operation action of the current user according to an operation action of the current user;
  • the operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
  • an embodiment of the present invention provides a device for determining a kernel running configuration in a processor, where the device includes a user operation action sensing module, a user operation action recognition module, and a resource configuration module, where the user operates the action sensing module. Determining a duration of the current user's operation action according to the current user's operation action; the user operation action recognition module is configured to identify a category of the current user's operation action according to the current user's operation action; The resource configuration module is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user, where the operational configuration includes a running quantity of a kernel in the processor and/or a kernel running in the processor. frequency.
  • an embodiment of the present invention provides an electronic device, including a central processing unit and a memory, where the central processing unit is configured to:
  • the operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
  • an embodiment of the present invention provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement any one of the first aspects.
  • an embodiment of the present invention provides a program product, wherein the method of any one of the first aspects is implemented in a case where the computer program is executed.
  • the embodiments of the present invention it is possible to first identify the category of the user's operation action, and then determine, according to the category of the current user's operation action, the number of cores running in the processor and/or the frequency of the kernel running in the processor.
  • the running configuration realizes matching the running configuration according to the categories of different operation actions, avoids the phenomenon that the processing power of the processor is insufficient, and causes the phenomenon that the processor is in an "idle" state. Unnecessary power wastage.
  • FIG. 1 is a flowchart of a method for determining a kernel running configuration in a processor according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for determining a kernel running configuration in another processor according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for determining a kernel running configuration in a processor according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a determining apparatus for a kernel running configuration in a processor according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the processor mentioned in the embodiment of the present invention may be one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a micro controller unit (MCU). Combination of species.
  • the processor in this embodiment may be a Symmetrical Multi-Processing (SMP) or an Asymmetric Multi-Processing (AMP).
  • the terminal mentioned in the embodiment of the present invention may be a smart phone, a tablet personal computer, a vehicle terminal, a computer, or the like.
  • FIG. 1 is a schematic diagram of a kernel running configuration in a processor according to an embodiment of the present invention.
  • the embodiments of the present invention are described from the perspective of a terminal.
  • the determining method of the kernel running configuration in the processor of this embodiment includes:
  • Step 110 Acquire an operation action of the current user, and determine a duration of the current user action action according to an operation action of the current user.
  • the user's operation action refers to the user's operation on the terminal, for example, may be a sliding operation on the touch screen, a switching operation on the interface, an input and output operation on the terminal, a startup operation on the application, an installation operation on the application, and the like. .
  • the terminal After obtaining the operation action of the current user, the terminal determines whether the operation action of the user is an open loop action or a closed loop action.
  • the open loop operation is an operation that cannot directly determine the start time and the end time of the user operation
  • the closed loop operation is an operation that can directly determine the start time and the end time of the user operation.
  • the category of the user's operation action can be defined in advance as needed.
  • the category of the user's operation action can be defined according to the load condition of the application scenario. If the user performs a sliding operation on the touch screen, the category of the operation actions of the users may be defined as a sliding operation; when the user performs a switching operation on the interface, the category of the operation actions of the users may be considered as a switching interface operation.
  • the categories of the operation actions of the users may be considered as the input and output operations; when the user performs the startup operation on the application, the categories of the operation actions of the users may be considered.
  • the category of the operation actions of these users can be considered as the application installation operation. It can be understood that the definition method of the category of the user's operation action may be various, and may be defined as needed. The definition method of the category of the operation action of the user is only an example, not a limitation.
  • the running configuration includes the number of running cores in the processor and/or the frequency of the kernel running in the processor.
  • the terminal determines the running configuration of the kernel in the processor for at least the duration according to the category of the current user's operation action. For ease of presentation, the following are all configured to run as the number of cores in the processor. And/or the frequency of the kernel running in the processor is stated. When it is determined that the category of the current user's operation action is a category of a lightly loaded operation action, it is necessary to ensure that the number of cores running in the determined processor and/or the frequency of the kernel running in the processor can reduce the overall processing of the processor.
  • the category of the current user's operational actions when determining the category of the current user's operational actions as a category of heavy-duty operational actions, it is necessary to ensure that the number of cores running in the determined processor and/or the frequency of the kernel running in the processor can improve the processor's Overall processing capacity. Specifically, when it is determined that the category of the current user's operation action is a category of a lightly loaded operation action, the number of cores running in the processor may be determined to be a smaller number, and the frequency of the kernel running in the processor remains unchanged.
  • the number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a lower frequency; or the number of cores running in the processor can be determined to be a slightly larger
  • the number, and the frequency of the kernel running in the processor is determined to be a very low frequency, or the number of cores running in the processor can be determined to be a very small number, and the frequency of the kernel running in the processor is determined to be one. A slightly higher frequency. All in all, you only need to ensure that the overall processing power of the processor is reduced.
  • the number of cores running in the processor can be determined to be a larger number, and the frequency of the kernel running in the processor remains unchanged. Or, the number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a higher frequency; or, the number of cores running in the processor can be determined to be a slightly smaller Quantity, and the frequency of the kernel running in the processor is determined to be a very high frequency; or, the number of cores running in the processor can be determined to be a very large number, and the frequency of the kernel running in the processor is determined to be a slight Low frequency. All in all, you only need to ensure that the overall processing power of the processor is improved.
  • the categories of the user's operation actions include a sliding operation, a switching interface operation, an input/output operation, an application startup operation, and an application installation operation, as an example of how to determine the operation in the processor according to the category of the user's operation action.
  • the number of cores and the frequency of the kernel running in the processor are described.
  • the category of the current user's operation action is a sliding operation, it is determined that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency; the category of the current user's operation action is the switching interface.
  • the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency; when the category of the current user's operation action is an input/output operation, determining the operation in the processor
  • the number of cores is the third number and/or the frequency of the kernel running in the processor is the third frequency; the current user's action action category is the application start operation, indeed The number of cores running in the fixed processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current user action action is an application installation operation, it is determined that the number of cores running in the processor is The fifth number and/or the frequency of the core running in the processor is the fifth frequency; wherein, the first number ⁇ the second number ⁇ the third number ⁇ the fourth number ⁇ the fifth number, the first frequency ⁇ the second frequency ⁇ Three frequencies ⁇ fourth frequency ⁇ fifth frequency.
  • the category of the user's operation actions includes a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation as an example of how to determine the processor according to the category of the user's operation action.
  • the number of running cores and the frequency of the kernel running in the processor are described.
  • the category of the current user's operation action is a sliding operation, it is determined that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is the first minimum frequency;
  • the current user The operation action category is the switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency; the current user's
  • the operation action is in the input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency;
  • the current user operation The action type is the application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency; the current user's operation action When the category is an application installation operation
  • the number of cores running in the processor and the frequency of the core running in the processor can be maintained or re-adjusted to the number and frequency of normal conditions.
  • the processor when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so in determining the number of cores running in the processor, in addition to determining the total number of cores in the processor that need to be run. In addition to the number, you also need to determine the number of large cores that need to run in the processor and the number of small cores that need to run in the processor.
  • the running configuration of the kernel in the processor is only determined according to the category of the current user's operation action.
  • the running configuration of the kernel in the processor may also be based on the current application scenario of the user. At least one of the status information of the terminal is determined. For details, please refer to FIG. 2, FIG. 3 and the description of related embodiments.
  • FIG. 2 is a flowchart of a method for determining a kernel running configuration in another processor according to an embodiment of the present invention.
  • the embodiments of the present invention are described from the perspective of a terminal.
  • the determining method of the kernel running configuration in the processor of this embodiment includes:
  • the steps 210 and 220 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 .
  • steps 110 and 120 in the implementation shown in FIG. 1 , and details are not described herein.
  • the application scenario refers to the state of the running application of the terminal.
  • the application scenario of the terminal is also different.
  • the identification identifier of the application scenario may be a name of a process created by the processor for the application corresponding to the application scenario and an identifier of the process.
  • the category of the application scenario can be defined in advance according to requirements.
  • the category of the application scenario can be defined according to the load condition of the application scenario.
  • the application scenario of the application scenario can be defined as if the terminal does not run any application, or if the terminal runs some application scenarios of a very small application (such as an applet such as a calendar).
  • Ordinary scenes when the terminal is running a music program, such as an application scene of kugoo, QQ music, etc., the category of the application scenes may be considered as a music scene, and when the terminal is running a photographing program, such as a smart camera or a Mito camera, etc.
  • the category of these application scenarios can be considered as lightweight.
  • Level game scene when the terminal runs a heavyweight game scene, such as the application scene of Warcraft and other games, the categories of these application scenarios can be considered For heavyweight game scenes and more.
  • the definition method of the category of the current application scenario may be multiple, and may be defined as needed.
  • the definition method of the category of the application scenario is only an example, not a limitation.
  • the terminal acquires the name of the process created by the processor for the currently running application and the identifier of the process, and uses the obtained process name and process number as the identification identifier of the current application scenario to identify the current application. Scenes.
  • the terminal also establishes a scenario database in advance, and the scenario database stores a mapping relationship between the identification identifier of the application scenario and the category of the application scenario.
  • the terminal queries the scenario database according to the obtained identification identifier of the current application scenario, so as to determine the category of the current application scenario.
  • the running configuration of the kernel in the processor is determined according to the category of the current user's operation action, and is determined according to the category of the current application scenario.
  • the type of the operation action of the current user refer to step 130 in the embodiment shown in FIG. 1 , and details are not described herein again.
  • the following statements are made in terms of running the configuration as the number of runs of the cores in the processor and/or the frequency of the cores running in the processor. Under the premise that the category of the user's operation action is unchanged, the larger the load corresponding to the category of the current application scenario, the more the number of cores running in the determined processor and/or the higher the frequency of the kernel running in the processor. .
  • the categories of the application scene include a common scene, a music scene, a photographing scene, a lightweight game scene, and a heavyweight game scene as an example.
  • the current application scenario is a common scenario, it is determined that the number of cores running in the processor is the minimum and/or the frequency of the kernel running in the processor is the lowest; when the category of the current application scenario is a music scenario, determining that the processor is running The number of cores is second and/or the frequency of the kernel running in the processor is the second lowest; when the category of the current application scenario is a photographing scenario, it is determined that the number of cores running in the processor is centered and/or the kernel running in the processor The frequency is centered; when the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the second most and/or the frequency of the kernel running in the processor is the second highest; the current application scenario is of the weight In a game scenario, determine the maximum number of cores running in the processor and/or the frequency of the processor
  • FIG. 3 is a flowchart of still another method for determining a kernel running configuration in a processor according to an embodiment of the present invention.
  • the embodiments of the present invention are described from the perspective of a terminal.
  • the determining method of the kernel running configuration in the processor of this embodiment includes:
  • 320 Identify a category of an operation action of the current user according to an operation action of the current user.
  • the steps 310 and 320 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 .
  • steps 110 and 120 are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 .
  • steps 110 and 120 are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 .
  • the status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging or the like. It can be understood that the load of the processor when the terminal is bright is greater than the load of the processor when the terminal is off, and the load of the processor when the terminal is charged is greater than the load of the processor when the terminal is not charging. When the terminal temperature is high, the processor needs to reduce the number of cores running in the processor and the operating frequency of the processor to prevent the processor from being burned due to excessive temperature.
  • the running configuration of the kernel running in the processor is determined according to the category of the current user's operation action, and is determined according to the state of the terminal.
  • the type of the operation action of the current user refer to step 130 in the embodiment shown in FIG. 1 , and details are not described herein again.
  • the following statements are made in terms of running the configuration as the number of runs of the cores in the processor and/or the frequency of the cores running in the processor. Under the premise that the category of the user's operation action is unchanged, the greater the load corresponding to the state information of the terminal, the more the number of cores running in the determined processor and/or the higher the frequency of the kernel running in the processor.
  • the load corresponding to the bright state of the terminal is large, so the number of cores running in the processor determined when the terminal is in the bright screen state is greater than the number of cores running in the processor determined when the terminal is in the blanking state, and/or The core frequency running in the processor determined when the terminal is in the bright screen state is higher than the frequency of the kernel running in the processor determined when the terminal is in the blanking state.
  • the higher the temperature of the terminal the smaller the number of cores running in the determined processor.
  • FIG. 4 is a schematic structural diagram of a device for determining a kernel running configuration in a processor according to an embodiment of the present invention.
  • the determining device of the kernel running configuration in the processor of the embodiment includes: a user operating action sensing module 410, a user operating action identifying module 420, and a resource configuration module 430.
  • the user operation action sensing module 410 is configured to determine a duration of the current user action action according to the current user action action;
  • the user operation action recognition module 420 is configured to identify a category of the current user action action according to the current user action action;
  • the resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user, where the operational configuration includes a running number of cores in the processor and/or a kernel running in the processor frequency.
  • the determining device of the kernel running configuration in the processor shown in FIG. 4 may further include an application scenario sensing module 440 and a terminal state sensing module 450.
  • the user operation action sensing module 410 is further configured to determine a duration of the current user action action according to the current user action action;
  • the resource configuration module 430 is configured to determine the running configuration of the kernel in the processor during the duration according to at least the category of the current user's operational actions.
  • the application scenario awareness module 440 is configured to identify a current application scenario
  • the resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of the current user's operation action and a category of the current application scenario.
  • the terminal state awareness module 450 is configured to acquire state information of the terminal.
  • the resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user and status information of the terminal.
  • the status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging.
  • the category of the user's operation actions is any one of a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation.
  • the category of the operation action of the resource configuration module 430 for the current user is a sliding operation. In doing so, determining that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency;
  • the resource configuration module 430 when the resource configuration module 430 is configured to use the sliding operation of the current user, determine that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum. Frequency, the minimum frequency is the first minimum frequency;
  • the current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
  • the category of the current user's operation action is an input/output operation
  • the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency.
  • the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
  • the number of cores includes a large number of cores and a small number of cores.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal of this embodiment includes: an RF (Radio Frequency) circuit 510, a memory 520 including one or more computer readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, and a WiFi (wireless) A fidelity module 570, a processor 580 including one or more processing cores, and a power supply 590 and the like.
  • RF Radio Frequency
  • the RF circuit 510 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 580; in addition, transmitting data related to the uplink to the base station.
  • the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 510 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by running software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.).
  • memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 520 may further include a memory controller to provide the processor 580 and the input unit 530 for storing Access to the storage 520.
  • Input unit 530 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 530 can include touch-sensitive surface 531 as well as other input devices 532.
  • a touch-sensitive surface 531 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch-sensitive surface 531 or The operation near the touch-sensitive surface 531) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 531 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 580 is provided and can receive commands from the processor 580 and execute them.
  • the touch sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 530 can also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 540 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 540 can include a display panel 541.
  • the display panel 541 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 531 can cover the display panel 541, and when the touch-sensitive surface 531 detects a touch operation thereon or nearby, it is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 according to the touch event The type provides a corresponding visual output on display panel 541.
  • touch-sensitive surface 531 and display panel 541 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 531 can be integrated with display panel 541 for input. And output function.
  • the terminal may also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the terminal moves to the ear. Or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can be checked at rest.
  • Measure the magnitude and direction of gravity which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal can also be configured
  • Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., will not be described here.
  • Audio circuit 560, speaker 561, and microphone 562 can provide an audio interface between the user and the terminal.
  • the audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 561, and convert it into a sound signal output by the speaker 561.
  • the microphone 562 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to the terminal, for example, via the RF circuit 510, or outputted to the memory 520 for further processing.
  • the audio circuit 560 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
  • WiFi is a short-range wireless transmission technology.
  • the terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570. It provides wireless broadband Internet access for users.
  • FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the terminal, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 580 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520, The various functions of the terminal and processing data to monitor the mobile phone as a whole.
  • the processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
  • the terminal also includes a power source 590 (such as a battery) that supplies power to the various components.
  • a power source 590 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 580 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 590 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and Configuring to execute one or more programs by one or more processors includes instructions for performing the following operations:
  • the operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
  • determining a duration of the current user's operation action according to the current user's operation action determining, according to at least the category of the current user's operation action, the kernel of the processor in the duration Run the configuration.
  • identifying a current application scenario determining an operational configuration of a kernel in the processor according to at least a category of the current user's operation action and a category of the current application scenario.
  • acquiring state information of the terminal determining, according to at least the category of the operation action of the current user and the state information of the terminal, an operation configuration of a kernel in the processor.
  • the status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging.
  • the category of the user's operation actions is any one of a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation.
  • the category of the current user action action is a sliding operation, determining that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is a minimum frequency;
  • the current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
  • the category of the current user's operation action is an input/output operation
  • the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency.
  • the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
  • the number of cores includes a large number of cores and a small number of cores.
  • the embodiments of the present invention it is possible to first identify the category of the user's operation action, and then determine, according to the category of the current user's operation action, the number of cores running in the processor and/or the frequency of the kernel running in the processor.
  • the running configuration realizes matching the running configuration according to the categories of different operation actions, avoids the phenomenon that the processing power of the processor is insufficient, and causes the phenomenon that the processor is in an "idle" state. Unnecessary power wastage.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)
  • Power Sources (AREA)

Abstract

A method for determining kernel running configuration in a processor and a related product. The method comprises: obtaining an operation action of a current user; identifying the type of the operation action of the current user according to the operation action of the current user (120); and determining the number of kernels running in a processor and/or the frequency of each kernel running in the processor according to the type of the operation action of the current user. The method avoids stutters and other phenomena caused by inadequate processing capability of a processor, and also avoids unnecessary power waste caused by the fact that some kernels of the processor are in an idle state.

Description

处理器中内核运行配置的确定方法以及相关产品Method for determining the running configuration of the kernel in the processor and related products 技术领域Technical field
本发明涉及终端领域,尤其涉及一种处理器中内核运行配置的确定方法以及相关产品。The present invention relates to the field of terminals, and in particular, to a method for determining a kernel running configuration in a processor and related products.
背景技术Background technique
随着处理器技术的不断发展,多核技术成为当今处理器发展的重要方向。相比传统的单核芯片,多核处理器技术通过多个处理核互相协助的方式实现了保持频率不变的情况下,大幅度地提升系统的性能。With the continuous development of processor technology, multi-core technology has become an important direction for the development of today's processors. Compared with the traditional single-core chip, the multi-core processor technology can greatly improve the performance of the system by maintaining the same frequency by means of mutual assistance of multiple processing cores.
发明内容Summary of the invention
第一方面,本发明实施例提供了一种处理器中内核运行配置的确定方法,包括:获取当前用户的操作动作;根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。In a first aspect, an embodiment of the present invention provides a method for determining a running configuration of a kernel in a processor, including: acquiring an operation action of a current user; and identifying a category of an operation action of the current user according to an operation action of the current user; The operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
第二方面,本发明实施例提供了一种处理器中内核运行配置的确定装置,所述装置包括用户操作动作感知模块、用户操作动作识别模块以及资源配置模块,所述用户操作动作感知模块用于根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;所述用户操作动作识别模块用于根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;所述资源配置模块用于至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。In a second aspect, an embodiment of the present invention provides a device for determining a kernel running configuration in a processor, where the device includes a user operation action sensing module, a user operation action recognition module, and a resource configuration module, where the user operates the action sensing module. Determining a duration of the current user's operation action according to the current user's operation action; the user operation action recognition module is configured to identify a category of the current user's operation action according to the current user's operation action; The resource configuration module is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user, where the operational configuration includes a running quantity of a kernel in the processor and/or a kernel running in the processor. frequency.
第三方面,本发明实施例提供了一种电子设备,包括中央处理器以及存储器,所述中央处理器用于执行:In a third aspect, an embodiment of the present invention provides an electronic device, including a central processing unit and a memory, where the central processing unit is configured to:
获取当前用户的操作动作; Get the action action of the current user;
根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;Identifying a category of the current user's operation action according to the current user's operation action;
至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。The operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
第四方面,本发明实施例提供了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序被执行的情况下实现如第一方面任一项所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement any one of the first aspects. Methods.
第五方面,本发明实施例提供了一种程序产品,其特征在于,所述计算机程序被执行的情况下实现如第一方面任一项所述的方法。In a fifth aspect, an embodiment of the present invention provides a program product, wherein the method of any one of the first aspects is implemented in a case where the computer program is executed.
通过实施本发明实施例,能够先识别用户的操作动作的类别,然后,再根据当前用户的操作动作的类别确定包括处理器中运行的内核数量和/或处理器中运行的内核的频率在内的运行配置,实现了根据不同的操作动作的类别确定匹配运行配置,避免了处理器的处理能力不足而导致出现卡顿等现象,也避免了处理器的一些内核会处于“空转”状态而导致出现不必要的电量浪费。By implementing the embodiments of the present invention, it is possible to first identify the category of the user's operation action, and then determine, according to the category of the current user's operation action, the number of cores running in the processor and/or the frequency of the kernel running in the processor. The running configuration realizes matching the running configuration according to the categories of different operation actions, avoids the phenomenon that the processing power of the processor is insufficient, and causes the phenomenon that the processor is in an "idle" state. Unnecessary power wastage.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种处理器中内核运行配置的确定方法的流程图;1 is a flowchart of a method for determining a kernel running configuration in a processor according to an embodiment of the present invention;
图2是本发明实施例提供的另一种处理器中内核运行配置的确定方法的流程图;2 is a flowchart of a method for determining a kernel running configuration in another processor according to an embodiment of the present invention;
图3是本发明实施例提供的又一种处理器中内核运行配置的确定方法的流程图;3 is a flowchart of a method for determining a kernel running configuration in a processor according to an embodiment of the present invention;
图4是本发明实施例提供的一种处理器中内核运行配置的确定装置的结构示意图; 4 is a schematic structural diagram of a determining apparatus for a kernel running configuration in a processor according to an embodiment of the present invention;
图5是本发明实施例提供的一种终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It is to be understood that the terminology used in the embodiments of the present invention is for the purpose of describing the particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
本发明实施例中提及的处理器可以是中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、微控制单元(Micro Controller Unit,MCU)中的一种或者多种的组合。而且,本实施例中的处理器可以是对称多核处理器(Symmetrical Multi-Processing,SMP),也可以是非对称多核处理器(Asymmetric Multi-Processing,AMP)。另外,本发明实施例中提及的终端可以是智能手机(smart phone)、平板电脑(Tablet Personal Computer)、车载终端、台式电脑(computer)等等。The processor mentioned in the embodiment of the present invention may be one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a micro controller unit (MCU). Combination of species. Moreover, the processor in this embodiment may be a Symmetrical Multi-Processing (SMP) or an Asymmetric Multi-Processing (AMP). In addition, the terminal mentioned in the embodiment of the present invention may be a smart phone, a tablet personal computer, a vehicle terminal, a computer, or the like.
在实践过程中技术人员发现,即使在相同的应用场景下,当用户对处理的操作不同时,处理器的实际负载并不相同的,但是,在现有技术条件下,处理器并不能感知用户操作的变化,所以,即使用户操作发生了变化,处理器的处理能力却依然保持不变,使用户操作发生变化后,处理器的负载可能过重,处理器的处理能力不足而导致出现卡顿等现象,或者,处理器的负载可能过轻,处理器的一些内核可能会处于“空转”状态而导致出现不必要的电量浪费。In the course of the practice, the technicians found that even in the same application scenario, when the user's operations on the processing are different, the actual load of the processor is not the same, but under the prior art, the processor does not perceive the user. The change of operation, so even if the user operation changes, the processing power of the processor remains unchanged. After the user operation changes, the load of the processor may be too heavy, and the processing power of the processor is insufficient, resulting in the occurrence of the In other cases, or the load on the processor may be too light, some of the cores of the processor may be in an "idle" state, resulting in unnecessary power waste.
请参阅图1,图1是本发明实施例提供的一种处理器中内核运行配置的确 定方法的流程图。本发明实施例从终端的角度出发进行描述。本实施例的处理器中内核运行配置的确定方法包括:Please refer to FIG. 1. FIG. 1 is a schematic diagram of a kernel running configuration in a processor according to an embodiment of the present invention. The flow chart of the method. The embodiments of the present invention are described from the perspective of a terminal. The determining method of the kernel running configuration in the processor of this embodiment includes:
110:获取当前用户的操作动作,并根据当前用户的操作动作确定当前用户的操作动作的持续时间。Step 110: Acquire an operation action of the current user, and determine a duration of the current user action action according to an operation action of the current user.
用户的操作动作是指用户对终端的操作,例如,可以是对触摸屏的滑动操作、对界面的切换操作,对终端的输入输出操作,对应用程序的启动操作以及对应用程序的安装操作等等。The user's operation action refers to the user's operation on the terminal, for example, may be a sliding operation on the touch screen, a switching operation on the interface, an input and output operation on the terminal, a startup operation on the application, an installation operation on the application, and the like. .
终端在获取到当前用户的操作动作后,判断用户的操作动作是开环动作还是闭环动作。其中,开环动作为能够不能够直接确定用户操作的开始时间和结束时间的动作,闭环动作为能够直接确定用户操作的开始时间和结束时间的动作。当判断结果为用户的操作动作是开环动作时,则根据以往的经验数据预计用户的操作动作的可能持续时间,当判断结果为用户的操作动作是闭环动作时,则直接计算出当前用户的操作动作的持续时间。After obtaining the operation action of the current user, the terminal determines whether the operation action of the user is an open loop action or a closed loop action. The open loop operation is an operation that cannot directly determine the start time and the end time of the user operation, and the closed loop operation is an operation that can directly determine the start time and the end time of the user operation. When the result of the judgment is that the user's operation action is an open-loop action, the possible duration of the user's operation action is estimated based on the past experience data. When the result of the judgment is that the user's operation action is a closed-loop action, the current user's operation is directly calculated. The duration of the action.
120:根据当前用户的操作动作识别当前用户的操作动作的类别。120: Identify a category of an operation action of the current user according to an operation action of the current user.
用户的操作动作的类别可以根据需要预先进行定义,例如,可以根据应用场景的负载情况对用户的操作动作的类别进行定义。如果用户进行的是对触摸屏的滑动操作,则可以定义这些用户的操作动作的类别为滑动操作;当用户进行的是对界面的切换操作时,可以认为这些用户的操作动作的类别为切换界面操作;当用户进行的是对终端的输入输出操作时,可以认为这些用户的操作动作的类别为输入输出操作;当用户进行的是对应用程序的启动操作时,可以认为这些用户的操作动作的类别为应用启动操作;当用户进行的是对应用程序的安装操作时,可以认为这些用户的操作动作的类别为应用安装操作。可以理解的是,用户的操作动作的类别的定义方法可以有多种,具体可以根据需要进行定义,上述的用户的操作动作的类别的定义方法只是一种举例,而非限定。The category of the user's operation action can be defined in advance as needed. For example, the category of the user's operation action can be defined according to the load condition of the application scenario. If the user performs a sliding operation on the touch screen, the category of the operation actions of the users may be defined as a sliding operation; when the user performs a switching operation on the interface, the category of the operation actions of the users may be considered as a switching interface operation. When the user performs the input and output operations on the terminal, the categories of the operation actions of the users may be considered as the input and output operations; when the user performs the startup operation on the application, the categories of the operation actions of the users may be considered. Start the operation for the application; when the user performs the installation operation on the application, the category of the operation actions of these users can be considered as the application installation operation. It can be understood that the definition method of the category of the user's operation action may be various, and may be defined as needed. The definition method of the category of the operation action of the user is only an example, not a limitation.
130:至少根据当前用户的操作动作的类别确定在持续时间内处理器中内核的运行配置。其中,运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。130: Determine, according to at least the category of the current user's operation action, the running configuration of the kernel in the processor for the duration. The running configuration includes the number of running cores in the processor and/or the frequency of the kernel running in the processor.
终端至少根据当前用户的操作动作的类别确定在持续时间内处理器中内核的运行配置。为了便于陈述,以下均以运行配置为处理器中内核的运行数量 和/或处理器中运行的内核的频率进行陈述。当确定当前用户的操作动作的类别为负载较轻的操作动作的类别时,需保证确定后的处理器中运行的内核数量和/或处理器中运行的内核的频率能够降低处理器的总体处理能力;当确定当前用户的操作动作的类别为负载较重的操作动作的类别时,需保证确定后的处理器中运行的内核数量和/或处理器中运行的内核的频率能够提高处理器的总体处理能力。具体地,当确定当前用户的操作动作的类别为负载较轻的操作动作的类别时,处理器中运行的内核数量可以确定为一个较少的数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而处理器中运行的内核的频率确定为一个较低的频率;或者,处理器中运行的内核数量可以确定为一个稍大的数量,而处理器中运行的内核的频率确定为一个十分低的频率,或者,处理器中运行的内核数量可以确定为一个十分少的数量,而处理器中运行的内核的频率确定为一个稍高的频率。总而言之,只需要保证降低处理器的总体处理能力即可。反之,当确定当前用户的操作动作的类别为负载较重的操作动作的类别时,处理器中运行的内核数量可以确定为一个较多的数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而处理器中运行的内核的频率确定为一个较高的频率;或者,处理器中运行的内核数量可以确定为一个稍少的数量,而处理器中运行的内核的频率确定为一个十分高的频率;或者,处理器中运行的内核数量可以确定为一个十分多的数量,而处理器中运行的内核的频率确定为一个稍低的频率。总而言之,只需要保证提高处理器的总体处理能力即可。The terminal determines the running configuration of the kernel in the processor for at least the duration according to the category of the current user's operation action. For ease of presentation, the following are all configured to run as the number of cores in the processor. And/or the frequency of the kernel running in the processor is stated. When it is determined that the category of the current user's operation action is a category of a lightly loaded operation action, it is necessary to ensure that the number of cores running in the determined processor and/or the frequency of the kernel running in the processor can reduce the overall processing of the processor. Capability; when determining the category of the current user's operational actions as a category of heavy-duty operational actions, it is necessary to ensure that the number of cores running in the determined processor and/or the frequency of the kernel running in the processor can improve the processor's Overall processing capacity. Specifically, when it is determined that the category of the current user's operation action is a category of a lightly loaded operation action, the number of cores running in the processor may be determined to be a smaller number, and the frequency of the kernel running in the processor remains unchanged. Alternatively, the number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a lower frequency; or the number of cores running in the processor can be determined to be a slightly larger The number, and the frequency of the kernel running in the processor is determined to be a very low frequency, or the number of cores running in the processor can be determined to be a very small number, and the frequency of the kernel running in the processor is determined to be one. A slightly higher frequency. All in all, you only need to ensure that the overall processing power of the processor is reduced. Conversely, when it is determined that the category of the current user's operation action is a category of a heavy load operation action, the number of cores running in the processor can be determined to be a larger number, and the frequency of the kernel running in the processor remains unchanged. Or, the number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a higher frequency; or, the number of cores running in the processor can be determined to be a slightly smaller Quantity, and the frequency of the kernel running in the processor is determined to be a very high frequency; or, the number of cores running in the processor can be determined to be a very large number, and the frequency of the kernel running in the processor is determined to be a slight Low frequency. All in all, you only need to ensure that the overall processing power of the processor is improved.
在一具体的实施例中,以用户的操作动作的类别包括滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作为例对如何根据用户的操作动作的类别确定处理器中运行的内核数量和处理器中运行的内核的频率进行说明。当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和/或处理器中运行的内核的频率为第一频率;当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和/或处理器中运行的内核的频率为第二频率;当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;当前用户的操作动作的类别为应用启动操作时,确 定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一频率<第二频率<第三频率<第四频率<第五频率。In a specific embodiment, the categories of the user's operation actions include a sliding operation, a switching interface operation, an input/output operation, an application startup operation, and an application installation operation, as an example of how to determine the operation in the processor according to the category of the user's operation action. The number of cores and the frequency of the kernel running in the processor are described. When the category of the current user's operation action is a sliding operation, it is determined that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency; the category of the current user's operation action is the switching interface. In operation, it is determined that the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency; when the category of the current user's operation action is an input/output operation, determining the operation in the processor The number of cores is the third number and/or the frequency of the kernel running in the processor is the third frequency; the current user's action action category is the application start operation, indeed The number of cores running in the fixed processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current user action action is an application installation operation, it is determined that the number of cores running in the processor is The fifth number and/or the frequency of the core running in the processor is the fifth frequency; wherein, the first number < the second number < the third number < the fourth number < the fifth number, the first frequency < the second frequency < Three frequencies <fourth frequency < fifth frequency.
在另一具体的实施例中,以用户的操作动作的类别包括滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作为例对如何根据用户的操作动作的类别确定处理器中运行的内核数量和处理器中运行的内核的频率进行说明。当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和处理器中运行的内核的最大频率为第一最大频率,最小频率为第一最小频率;当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和处理器中运行的内核的最大频率为第二最大频率,最小频率为第二最小频率;当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和处理器中运行的内核的最大频率为第三最大频率,最小频率为第三最小频率;当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和处理器中运行的内核的最大频率为第四最大频率,最小频率为第四最小频率;当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和处理器中运行的内核的最大频率为第五最大频率,最小频率为第五最小频率;其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一最大频率<第二最大频率<第三最大频率<第四最大频率<第五最大频率,第一最小频率<第二最小频率<第三最小频率<第四最小频率<第五最小频率。In another specific embodiment, the category of the user's operation actions includes a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation as an example of how to determine the processor according to the category of the user's operation action. The number of running cores and the frequency of the kernel running in the processor are described. When the category of the current user's operation action is a sliding operation, it is determined that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is the first minimum frequency; the current user The operation action category is the switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency; the current user's When the operation action is in the input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency; the current user operation The action type is the application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency; the current user's operation action When the category is an application installation operation, determine the number of cores running in the processor as the fifth number The maximum frequency of the core running in the processor is the fifth maximum frequency, and the minimum frequency is the fifth minimum frequency; wherein, the first quantity < the second quantity < the third quantity < the fourth quantity < the fifth quantity, the first maximum frequency < The second maximum frequency <the third maximum frequency <the fourth maximum frequency <the fifth maximum frequency, the first minimum frequency <the second minimum frequency <the third minimum frequency <the fourth minimum frequency <the fifth minimum frequency.
在用户操作的持续时间结束后,处理器中运行的内核数量和处理器中运行的内核的频率可以维持不变,也可以重新调整到普通情况下的数量和频率。After the end of the user's operation, the number of cores running in the processor and the frequency of the core running in the processor can be maintained or re-adjusted to the number and frequency of normal conditions.
可以理解的是,当处理器为非对称多核处理器时,处理器中包括大核和小核,所以,在确定处理器中运行的内核数量时除了要确定处理器中需要运行的内核的总数量外,还需要分别确定处理器中需要运行的大核的数量和处理器中需要运行的小核的数量。 It can be understood that when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so in determining the number of cores running in the processor, in addition to determining the total number of cores in the processor that need to be run. In addition to the number, you also need to determine the number of large cores that need to run in the processor and the number of small cores that need to run in the processor.
在上述的实施例中,处理器中内核的运行配置仅是根据当前用户的操作动作的类别来确定的,但是,在实际应用中,处理器中内核的运行配置还可以根据用户当前应用场景和终端的状态信息中的至少一个来确定。具体请参阅图2、图3以及相关实施例的描述。In the foregoing embodiment, the running configuration of the kernel in the processor is only determined according to the category of the current user's operation action. However, in an actual application, the running configuration of the kernel in the processor may also be based on the current application scenario of the user. At least one of the status information of the terminal is determined. For details, please refer to FIG. 2, FIG. 3 and the description of related embodiments.
请参阅图2,图2是本发明实施例提供的另一种处理器中内核运行配置的确定方法的流程图。本发明实施例从终端的角度出发进行描述。本实施例的处理器中内核运行配置的确定方法包括:Referring to FIG. 2, FIG. 2 is a flowchart of a method for determining a kernel running configuration in another processor according to an embodiment of the present invention. The embodiments of the present invention are described from the perspective of a terminal. The determining method of the kernel running configuration in the processor of this embodiment includes:
210:获取当前用户的操作动作,并根据当前用户的操作动作确定当前用户的操作动作的持续时间。210: Acquire an operation action of the current user, and determine a duration of the current user action action according to the current user action action.
220:根据当前用户的操作动作识别当前用户的操作动作的类别。220: Identify a category of an operation action of the current user according to an operation action of the current user.
本实施的步骤210以及220分别与图1所示的实施例中的步骤110以及步骤120相同,具体请参阅图1所示的实施中的步骤110以及步骤120,此处不再具体描述。The steps 210 and 220 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 . For details, refer to step 110 and step 120 in the implementation shown in FIG. 1 , and details are not described herein.
230:获取当前应用场景的识别标识,并根据当前应用场景的识别标识识别当前应用场景。230: Obtain an identification identifier of the current application scenario, and identify the current application scenario according to the identification identifier of the current application scenario.
应用场景是指终端的运行应用程序的状态,当终端运行的应用程序不同时,终端的应用场景也不相同。应用场景的识别标识可以是处理器为应用场景对应的应用程序创立的进程的名称以及进程的标识符。The application scenario refers to the state of the running application of the terminal. When the application running on the terminal is different, the application scenario of the terminal is also different. The identification identifier of the application scenario may be a name of a process created by the processor for the application corresponding to the application scenario and an identifier of the process.
应用场景的类别可以根据需要预先进行定义,例如,可以根据应用场景的负载情况对应用场景的类别进行定义。根据应用场景的负载从小到大进行说明,如果终端没有运行任何应用程序,或者,终端运行一些极小的应用程序(例如日历等小程序时)的应用场景,则可以定义这些应用场景的类别为普通场景,当终端正在运行音乐程序,例如kugoo、QQ音乐等等的应用场景时,可以认为这些应用场景的类别为音乐场景,当终端正在运行拍照程序,例如智能相机或者美图相机等等的应用场景时,可以认为这些应用场景的类别为拍照场景,当终端正在运行轻量级游戏程序,例如黄金矿工、切西瓜等等小游戏的应用场景时,可以认为这些应用场景的类别为轻量级游戏场景;当终端运行重量级游戏场景,例如魔兽争霸等等游戏的应用场景时,可以认为这些应用场景的类别 为重量级游戏场景等等。可以理解的是,当前应用场景的类别的定义方法可以有多种,具体可以根据需要进行定义,上述的应用场景的类别的定义方法只是一种举例,而非限定。The category of the application scenario can be defined in advance according to requirements. For example, the category of the application scenario can be defined according to the load condition of the application scenario. According to the load of the application scenario, the application scenario of the application scenario can be defined as if the terminal does not run any application, or if the terminal runs some application scenarios of a very small application (such as an applet such as a calendar). Ordinary scenes, when the terminal is running a music program, such as an application scene of kugoo, QQ music, etc., the category of the application scenes may be considered as a music scene, and when the terminal is running a photographing program, such as a smart camera or a Mito camera, etc. When applying a scenario, you can think that the category of these application scenarios is a photo scene. When the terminal is running a lightweight game program, such as a gold miner, a cut watermelon, and other small game applications, the category of these application scenarios can be considered as lightweight. Level game scene; when the terminal runs a heavyweight game scene, such as the application scene of Warcraft and other games, the categories of these application scenarios can be considered For heavyweight game scenes and more. It can be understood that the definition method of the category of the current application scenario may be multiple, and may be defined as needed. The definition method of the category of the application scenario is only an example, not a limitation.
在本发明实施例中,终端获取处理器为当前正在运行的应用程序创立的进程的名称以及进程的标识符,并把获取到的进程名称和进程编号作为当前应用场景的识别标识以识别当前应用场景。终端还预先建立一个场景数据库,场景数据库中存储了应用场景的识别标识与应用场景的类别之间的映射关系。终端根据获取得到的当前应用场景的识别标识查询场景数据库,从而确定当前应用场景的类别。In the embodiment of the present invention, the terminal acquires the name of the process created by the processor for the currently running application and the identifier of the process, and uses the obtained process name and process number as the identification identifier of the current application scenario to identify the current application. Scenes. The terminal also establishes a scenario database in advance, and the scenario database stores a mapping relationship between the identification identifier of the application scenario and the category of the application scenario. The terminal queries the scenario database according to the obtained identification identifier of the current application scenario, so as to determine the category of the current application scenario.
240:至少根据当前应用场景的类别以及当前用户的操作动作的类别确定处理器中内核的运行策略。240: Determine an operating strategy of the kernel in the processor according to at least a category of the current application scenario and a category of the current user's operation action.
在本实施例中,处理器中内核的运行配置除了根据当前用户的操作动作的类别来确定外,还根据当前应用场景的类别进行确定。其中,当前用户的操作动作的类别与处理器中内核的运行配置的关系可以参见图1所示实施例中的步骤130,此处不再展开赘述。为了便于陈述,以下均以运行配置为处理器中内核的运行数量和/或处理器中运行的内核的频率进行陈述。在用户的操作动作的类别不变的前提下,当前应用场景的类别对应的负载越大,则确定后的处理器中运行的内核数量越多和/或处理器中运行的内核的频率越高。例如,以应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景以及重量级游戏场景为例进行说明。当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为最少和/或处理器中运行的内核的频率为最低;当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为次少和/或处理器中运行的内核的频率为次低;当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为居中和/或处理器中运行的内核的频率为居中;当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量为次多和/或处理器中运行的内核的频率为次高;当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量为最多和/或处理器中运行的内核的频率为最高。 In this embodiment, the running configuration of the kernel in the processor is determined according to the category of the current user's operation action, and is determined according to the category of the current application scenario. For the relationship between the type of the operation action of the current user and the running configuration of the kernel in the processor, refer to step 130 in the embodiment shown in FIG. 1 , and details are not described herein again. For ease of presentation, the following statements are made in terms of running the configuration as the number of runs of the cores in the processor and/or the frequency of the cores running in the processor. Under the premise that the category of the user's operation action is unchanged, the larger the load corresponding to the category of the current application scenario, the more the number of cores running in the determined processor and/or the higher the frequency of the kernel running in the processor. . For example, the categories of the application scene include a common scene, a music scene, a photographing scene, a lightweight game scene, and a heavyweight game scene as an example. When the current application scenario is a common scenario, it is determined that the number of cores running in the processor is the minimum and/or the frequency of the kernel running in the processor is the lowest; when the category of the current application scenario is a music scenario, determining that the processor is running The number of cores is second and/or the frequency of the kernel running in the processor is the second lowest; when the category of the current application scenario is a photographing scenario, it is determined that the number of cores running in the processor is centered and/or the kernel running in the processor The frequency is centered; when the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the second most and/or the frequency of the kernel running in the processor is the second highest; the current application scenario is of the weight In a game scenario, determine the maximum number of cores running in the processor and/or the frequency of the core running in the processor.
请参阅图3,图3是本发明实施例提供的又一种处理器中内核运行配置的确定方法的流程图。本发明实施例从终端的角度出发进行描述。本实施例的处理器中内核运行配置的确定方法包括:Please refer to FIG. 3. FIG. 3 is a flowchart of still another method for determining a kernel running configuration in a processor according to an embodiment of the present invention. The embodiments of the present invention are described from the perspective of a terminal. The determining method of the kernel running configuration in the processor of this embodiment includes:
310:获取当前用户的操作动作,并根据当前用户的操作动作确定当前用户的操作动作的持续时间。310: Acquire an operation action of the current user, and determine a duration of the current user action action according to the current user action action.
320:根据当前用户的操作动作识别当前用户的操作动作的类别。320: Identify a category of an operation action of the current user according to an operation action of the current user.
本实施的步骤310以及320分别与图1所示的实施例中的步骤110以及步骤120相同,具体请参阅图1所示的实施中的步骤110以及步骤120,此处不再具体描述。The steps 310 and 320 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 . For details, refer to step 110 and step 120 in the implementation shown in FIG. 1 , and details are not described herein.
330:获取用户的终端状态信息。330: Acquire terminal status information of the user.
终端的状态信息包括所述终端是否亮屏、所述终端的温度和所述终端是否在充电等等中的至少一种。可以理解的是,终端亮屏时处理器的负载大于终端熄屏时处理器的负载,终端充电时处理器的负载大于终端没有在充电时处理器的负载。终端温度较高时,处理器需要减少处理器中运行的内核的数量以及处理器的运行频率,以防止处理器因为温度过高而被烧毁。The status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging or the like. It can be understood that the load of the processor when the terminal is bright is greater than the load of the processor when the terminal is off, and the load of the processor when the terminal is charged is greater than the load of the processor when the terminal is not charging. When the terminal temperature is high, the processor needs to reduce the number of cores running in the processor and the operating frequency of the processor to prevent the processor from being burned due to excessive temperature.
340:至少根据终端的状态以及当前用户的操作动作的类别确定处理器中内核的运行配置。340: Determine, according to at least the state of the terminal and the category of the current user's operation action, the running configuration of the kernel in the processor.
在本实施例中,处理器中运行的内核的运行配置除了根据当前用户的操作动作的类别来确定外,还根据终端的状态进行确定。其中,当前用户的操作动作的类别与处理器中运行的内核的运行配置的关系可以参见图1所示实施例中的步骤130,此处不再展开赘述。为了便于陈述,以下均以运行配置为处理器中内核的运行数量和/或处理器中运行的内核的频率进行陈述。在用户的操作动作的类别不变的前提下,终端的状态信息对应的负载越大,则确定后的处理器中运行的内核数量越多和/或处理器中运行的内核的频率越高。例如,终端处于亮屏状态对应的负载大,所以,终端处于亮屏状态时确定的处理器中运行的内核数量比终端处于熄屏状态时确定的处理器中运行的内核数量多,和/或,终端处于亮屏状态时确定的处理器中运行的内核频率比终端处于熄屏状态时确定的处理器中运行的内核频率高。此外,在用户对当前应用场景的操作信息不变的前提下,终端的温度越高,则确定的处理器中运行的内核数量越少, 和/或,确定的处理器中运行的内核频率越低。In this embodiment, the running configuration of the kernel running in the processor is determined according to the category of the current user's operation action, and is determined according to the state of the terminal. For the relationship between the type of the operation action of the current user and the running configuration of the kernel running in the processor, refer to step 130 in the embodiment shown in FIG. 1 , and details are not described herein again. For ease of presentation, the following statements are made in terms of running the configuration as the number of runs of the cores in the processor and/or the frequency of the cores running in the processor. Under the premise that the category of the user's operation action is unchanged, the greater the load corresponding to the state information of the terminal, the more the number of cores running in the determined processor and/or the higher the frequency of the kernel running in the processor. For example, the load corresponding to the bright state of the terminal is large, so the number of cores running in the processor determined when the terminal is in the bright screen state is greater than the number of cores running in the processor determined when the terminal is in the blanking state, and/or The core frequency running in the processor determined when the terminal is in the bright screen state is higher than the frequency of the kernel running in the processor determined when the terminal is in the blanking state. In addition, under the premise that the operation information of the current application scenario is unchanged, the higher the temperature of the terminal, the smaller the number of cores running in the determined processor. And/or, the lower the frequency of the kernel running in the determined processor.
请参阅图4,图4是本发明实施例提供的一种处理器中内核运行配置的确定装置的结构示意图。本实施例的处理器中内核运行配置的确定装置包括:用户操作动作感知模块410、用户操作动作识别模块420以及资源配置模块430。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a device for determining a kernel running configuration in a processor according to an embodiment of the present invention. The determining device of the kernel running configuration in the processor of the embodiment includes: a user operating action sensing module 410, a user operating action identifying module 420, and a resource configuration module 430.
用户操作动作感知模块410用于根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;The user operation action sensing module 410 is configured to determine a duration of the current user action action according to the current user action action;
用户操作动作识别模块420用于根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;The user operation action recognition module 420 is configured to identify a category of the current user action action according to the current user action action;
资源配置模块430用于至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。The resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user, where the operational configuration includes a running number of cores in the processor and/or a kernel running in the processor frequency.
本发明实施例中,图4所示的处理器中内核运行配置的确定装置还可以包括应用场景感知模块440以及终端状态感知模块450。In the embodiment of the present invention, the determining device of the kernel running configuration in the processor shown in FIG. 4 may further include an application scenario sensing module 440 and a terminal state sensing module 450.
可选地,用户操作动作感知模块410还用于根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;Optionally, the user operation action sensing module 410 is further configured to determine a duration of the current user action action according to the current user action action;
资源配置模块430用于至少根据所述当前用户的操作动作的类别确定在所述持续时间内的处理器中内核的所述运行配置。The resource configuration module 430 is configured to determine the running configuration of the kernel in the processor during the duration according to at least the category of the current user's operational actions.
可选地,应用场景感知模块440用于识别当前应用场景;Optionally, the application scenario awareness module 440 is configured to identify a current application scenario;
资源配置模块430用于至少根据所述当前用户的操作动作的类别以及所述当前应用场景的类别确定处理器中内核的运行配置。The resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of the current user's operation action and a category of the current application scenario.
可选地,终端状态感知模块450用于获取终端的状态信息;Optionally, the terminal state awareness module 450 is configured to acquire state information of the terminal.
资源配置模块430用于至少根据所述当前用户的操作动作的类别以及所述终端的状态信息确定处理器中内核的运行配置。The resource configuration module 430 is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user and status information of the terminal.
可选地,所述终端的状态信息包括所述终端是否亮屏、所述终端的温度和所述终端是否在充电中的至少一种Optionally, the status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging.
可选地,用户的操作动作的类别为滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作中的任何一种。Optionally, the category of the user's operation actions is any one of a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation.
可选地,资源配置模块430用于所述当前用户的操作动作的类别为滑动操 作时,确定处理器中运行的内核数量为第一数量和/或处理器中运行的内核的频率为第一频率;Optionally, the category of the operation action of the resource configuration module 430 for the current user is a sliding operation. In doing so, determining that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency;
所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和/或处理器中运行的内核的频率为第二频率;When the category of the current user operation action is a switching interface operation, determining that the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency;
所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current user's operation action is an input/output operation, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency;
所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current user's operation action is an application startup operation, determining that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一频率<第二频率<第三频率<第四频率<第五频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first frequency <the second frequency <the third frequency <the fourth frequency <the fifth frequency.
可选地,资源配置模块430用于所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和处理器中运行的内核的最大频率为第一最大频率,最小频率为第一最小频率;Optionally, when the resource configuration module 430 is configured to use the sliding operation of the current user, determine that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum. Frequency, the minimum frequency is the first minimum frequency;
所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和处理器中运行的内核的最大频率为第二最大频率,最小频率为第二最小频率;The current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和处理器中运行的内核的最大频率为第三最大频率,最小频率为第三最小频率;When the category of the current user's operation action is an input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency. ;
所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和处理器中运行的内核的最大频率为第四最大频率,最小频率为第四最小频率;When the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和处理器中运行的内核的最大频率为第五最大频率,最小频率为第五最小频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and the maximum frequency of the kernel running in the processor is the fifth maximum frequency, and the minimum frequency is the fifth minimum frequency. ;
其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一最大频率<第二最大频率<第三最大频率<第四最大频率<第五最大频率,第一最小频 率<第二最小频率<第三最小频率<第四最小频率<第五最小频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first maximum frequency <the second maximum frequency <the third maximum frequency <the fourth maximum frequency <the fifth maximum frequency, the first minimum Frequency Rate < second minimum frequency < third minimum frequency < fourth minimum frequency < fifth minimum frequency.
可选地,所述内核数量包括大核数量以及小核数量。Optionally, the number of cores includes a large number of cores and a small number of cores.
请参阅图5,图5是本发明实施例提供的一种终端的结构示意图。本实施例的终端包括:RF(Radio Frequency,射频)电路510、包括有一个或一个以上计算机可读存储介质的存储器520、输入单元530、显示单元540、传感器550、音频电路560、WiFi(wireless fidelity,无线保真)模块570、包括有一个或者一个以上处理核心的处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal of this embodiment includes: an RF (Radio Frequency) circuit 510, a memory 520 including one or more computer readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, and a WiFi (wireless) A fidelity module 570, a processor 580 including one or more processing cores, and a power supply 590 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 5 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器580处理;另外,将涉及上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 510 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 580; in addition, transmitting data related to the uplink to the base station. . Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 510 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器520还可以包括存储器控制器,以提供处理器580和输入单元530对存 储器520的访问。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by running software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.). Moreover, memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Correspondingly, the memory 520 may further include a memory controller to provide the processor 580 and the input unit 530 for storing Access to the storage 520.
输入单元530可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元530可包括触敏表面531以及其他输入设备532。触敏表面531,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面531上或在触敏表面531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面531。除了触敏表面531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 Input unit 530 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 530 can include touch-sensitive surface 531 as well as other input devices 532. A touch-sensitive surface 531, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch-sensitive surface 531 or The operation near the touch-sensitive surface 531) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 531 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 580 is provided and can receive commands from the processor 580 and execute them. In addition, the touch sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 531, the input unit 530 can also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元540可包括显示面板541,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板541。进一步的,触敏表面531可覆盖显示面板541,当触敏表面531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触敏表面531与显示面板541是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面531与显示面板541集成而实现输入和输出功能。 Display unit 540 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 540 can include a display panel 541. Alternatively, the display panel 541 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 531 can cover the display panel 541, and when the touch-sensitive surface 531 detects a touch operation thereon or nearby, it is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 according to the touch event The type provides a corresponding visual output on display panel 541. Although in FIG. 5, touch-sensitive surface 531 and display panel 541 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 531 can be integrated with display panel 541 for input. And output function.
终端还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在终端移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检 测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the terminal moves to the ear. Or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can be checked at rest. Measure the magnitude and direction of gravity, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal can also be configured Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., will not be described here.
音频电路560、扬声器561,传声器562可提供用户与终端之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一终端,或者将音频数据输出至存储器520以便进一步处理。音频电路560还可能包括耳塞插孔,以提供外设耳机与终端的通信。 Audio circuit 560, speaker 561, and microphone 562 can provide an audio interface between the user and the terminal. The audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 561, and convert it into a sound signal output by the speaker 561. On the other hand, the microphone 562 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to the terminal, for example, via the RF circuit 510, or outputted to the memory 520 for further processing. The audio circuit 560 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
WiFi属于短距离无线传输技术,终端通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570. It provides wireless broadband Internet access for users. Although FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the terminal, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器580是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理核心;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。Processor 580 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520, The various functions of the terminal and processing data to monitor the mobile phone as a whole. Optionally, the processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
终端还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源590还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power source 590 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 580 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Power supply 590 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经 配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and Configuring to execute one or more programs by one or more processors includes instructions for performing the following operations:
获取当前用户的操作动作;Get the action action of the current user;
根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;Identifying a category of the current user's operation action according to the current user's operation action;
至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。The operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
可选地,根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;至少根据所述当前用户的操作动作的类别确定在所述持续时间内的处理器中内核的所述运行配置。Optionally, determining a duration of the current user's operation action according to the current user's operation action; determining, according to at least the category of the current user's operation action, the kernel of the processor in the duration Run the configuration.
可选地,识别当前应用场景;至少根据所述当前用户的操作动作的类别以及所述当前应用场景的类别确定处理器中内核的运行配置。Optionally, identifying a current application scenario; determining an operational configuration of a kernel in the processor according to at least a category of the current user's operation action and a category of the current application scenario.
可选地,获取终端的状态信息;至少根据所述当前用户的操作动作的类别以及所述终端的状态信息确定处理器中内核的运行配置。Optionally, acquiring state information of the terminal; determining, according to at least the category of the operation action of the current user and the state information of the terminal, an operation configuration of a kernel in the processor.
可选地,所述终端的状态信息包括所述终端是否亮屏、所述终端的温度和所述终端是否在充电中的至少一种Optionally, the status information of the terminal includes at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging.
可选地,用户的操作动作的类别为滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作中的任何一种。Optionally, the category of the user's operation actions is any one of a sliding operation, a switching interface operation, an input and output operation, an application startup operation, and an application installation operation.
可选地,所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和/或处理器中运行的内核的频率为第一频率;Optionally, when the category of the current user action action is a sliding operation, determining that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency;
所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和/或处理器中运行的内核的频率为第二频率;When the category of the current user operation action is a switching interface operation, determining that the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency;
所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current user's operation action is an input/output operation, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency;
所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current user's operation action is an application startup operation, determining that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一频率<第 二频率<第三频率<第四频率<第五频率。Wherein, the first quantity <the second quantity <the third quantity <the fourth quantity <the fifth quantity, the first frequency < Two frequencies < third frequency < fourth frequency < fifth frequency.
可选地,所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和处理器中运行的内核的最大频率为第一最大频率,最小频率为第一最小频率;Optionally, when the category of the current user action action is a sliding operation, determining that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is a minimum frequency;
所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和处理器中运行的内核的最大频率为第二最大频率,最小频率为第二最小频率;The current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和处理器中运行的内核的最大频率为第三最大频率,最小频率为第三最小频率;When the category of the current user's operation action is an input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency. ;
所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和处理器中运行的内核的最大频率为第四最大频率,最小频率为第四最小频率;When the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和处理器中运行的内核的最大频率为第五最大频率,最小频率为第五最小频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and the maximum frequency of the kernel running in the processor is the fifth maximum frequency, and the minimum frequency is the fifth minimum frequency. ;
其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一最大频率<第二最大频率<第三最大频率<第四最大频率<第五最大频率,第一最小频率<第二最小频率<第三最小频率<第四最小频率<第五最小频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first maximum frequency <the second maximum frequency <the third maximum frequency <the fourth maximum frequency <the fifth maximum frequency, the first minimum Frequency < second minimum frequency < third minimum frequency < fourth minimum frequency < fifth minimum frequency.
可选地,所述内核数量包括大核数量以及小核数量。Optionally, the number of cores includes a large number of cores and a small number of cores.
通过实施本发明实施例,能够先识别用户的操作动作的类别,然后,再根据当前用户的操作动作的类别确定包括处理器中运行的内核数量和/或处理器中运行的内核的频率在内的运行配置,实现了根据不同的操作动作的类别确定匹配运行配置,避免了处理器的处理能力不足而导致出现卡顿等现象,也避免了处理器的一些内核会处于“空转”状态而导致出现不必要的电量浪费。By implementing the embodiments of the present invention, it is possible to first identify the category of the user's operation action, and then determine, according to the category of the current user's operation action, the number of cores running in the processor and/or the frequency of the kernel running in the processor. The running configuration realizes matching the running configuration according to the categories of different operation actions, avoids the phenomenon that the processing power of the processor is insufficient, and causes the phenomenon that the processor is in an "idle" state. Unnecessary power wastage.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (20)

  1. 一种处理器中内核运行配置的确定方法,其特征在于,包括:A method for determining a kernel running configuration in a processor, comprising:
    获取当前用户的操作动作;Get the action action of the current user;
    根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;Identifying a category of the current user's operation action according to the current user's operation action;
    至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。The operational configuration of the kernel in the processor is determined based at least on the category of operational actions of the current user, wherein the operational configuration includes the number of runs of the kernel in the processor and/or the frequency of the kernel running in the processor.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;Determining a duration of the current user's operation action according to the current user's operation action;
    所述至少根据所述当前用户的操作动作的类别确定处理器中运行的内核数量和/或处理器中运行的内核的频率包括:Determining, according to at least the category of the current user's operational actions, the number of cores running in the processor and/or the frequency of the kernel running in the processor includes:
    至少根据所述当前用户的操作动作的类别确定在所述持续时间内的处理器中内核的所述运行配置。The operational configuration of the kernel in the processor for the duration of time is determined based at least on the category of operational actions of the current user.
  3. 根据权利要求1所述的方法,其特征在于,在至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置之前,所述方法还包括:The method according to claim 1, wherein the method further comprises: before determining the running configuration of the kernel in the processor according to at least the category of the operation action of the current user, the method further comprising:
    识别当前应用场景;Identify the current application scenario;
    所述至少根据所述当前用户的操作动作的类别确定处理器中运行的内核数量和/或处理器中内核的运行配置,包括:Determining, according to at least the category of the operation action of the current user, the number of cores running in the processor and/or the running configuration of the kernel in the processor, including:
    至少根据所述当前用户的操作动作的类别以及所述当前应用场景的类别确定处理器中内核的运行配置。Determining an operational configuration of a kernel in the processor based at least on a category of the current user's operational actions and a category of the current application scenario.
  4. 根据权利要求1所述的方法,其特征在于,在根据所述当前用户的操作动作的类别确定处理器中内核的运行配置之前,所述方法还包括:The method according to claim 1, wherein before determining the running configuration of the kernel in the processor according to the category of the operation action of the current user, the method further comprises:
    获取终端的状态信息;Obtaining status information of the terminal;
    至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,包括:Determining, according to at least the category of the operation action of the current user, a running configuration of a kernel in the processor, including:
    至少根据所述当前用户的操作动作的类别以及所述终端的状态信息确定处理器中内核的运行配置。The running configuration of the kernel in the processor is determined based at least on the category of the current user's operational actions and the state information of the terminal.
  5. 根据权利要求4所述的方法,其特征在于,所述终端的状态信息包括 所述终端是否亮屏、所述终端的温度和所述终端是否在充电中的至少一种。The method according to claim 4, wherein the status information of the terminal comprises Whether the terminal is bright, at least one of a temperature of the terminal, and whether the terminal is charging.
  6. 根据权利要求1所述的方法,其特征在于,用户的操作动作的类别为滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作中的任何一种。The method according to claim 1, wherein the category of the user's operation action is any one of a slide operation, a switch interface operation, an input/output operation, an application start operation, and an application installation operation.
  7. 根据权利要求6所述的方法,其特征在于,至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置具体为:The method according to claim 6, wherein the running configuration of the kernel in the processor is determined according to at least the category of the operation action of the current user:
    所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和/或处理器中运行的内核的频率为第一频率;When the category of the current user's operation action is a sliding operation, determining that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency;
    所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和/或处理器中运行的内核的频率为第二频率;When the category of the current user operation action is a switching interface operation, determining that the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency;
    所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current user's operation action is an input/output operation, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency;
    所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current user's operation action is an application startup operation, determining that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
    所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
    其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一频率<第二频率<第三频率<第四频率<第五频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first frequency <the second frequency <the third frequency <the fourth frequency <the fifth frequency.
  8. 根据权利要求6所述的方法,其特征在于,至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置具体为:The method according to claim 6, wherein the running configuration of the kernel in the processor is determined according to at least the category of the operation action of the current user:
    所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和处理器中运行的内核的最大频率为第一最大频率,最小频率为第一最小频率;When the category of the current user's operation action is a sliding operation, determining that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is the first minimum frequency;
    所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和处理器中运行的内核的最大频率为第二最大频率,最小频率为第二最小频率;The current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
    所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和处理器中运行的内核的最大频率为第三最大频率,最小频率为第三最小频率; When the category of the current user's operation action is an input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency. ;
    所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和处理器中运行的内核的最大频率为第四最大频率,最小频率为第四最小频率;When the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
    所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和处理器中运行的内核的最大频率为第五最大频率,最小频率为第五最小频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and the maximum frequency of the kernel running in the processor is the fifth maximum frequency, and the minimum frequency is the fifth minimum frequency. ;
    其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一最大频率<第二最大频率<第三最大频率<第四最大频率<第五最大频率,第一最小频率<第二最小频率<第三最小频率<第四最小频率<第五最小频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first maximum frequency <the second maximum frequency <the third maximum frequency <the fourth maximum frequency <the fifth maximum frequency, the first minimum Frequency < second minimum frequency < third minimum frequency < fourth minimum frequency < fifth minimum frequency.
  9. 根据权利要求8所述的方法,其特征在于,所述内核数量包括大核数量以及小核数量。The method of claim 8 wherein the number of cores comprises a large number of cores and a small number of cores.
  10. 一种处理器中内核运行配置的确定装置,其特征在于,所述装置包括用户操作动作感知模块、用户操作动作识别模块以及资源配置模块,A determining device for a kernel running configuration in a processor, wherein the device comprises a user operating action sensing module, a user operating motion recognition module, and a resource configuration module,
    所述用户操作动作感知模块用于根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;The user operation action sensing module is configured to determine a duration of the current user action action according to the current user action action;
    所述用户操作动作识别模块用于根据所述当前用户的操作动作识别所述当前用户的操作动作的类别;The user operation action recognition module is configured to identify a category of the current user action action according to the current user action action;
    所述资源配置模块用于至少根据所述当前用户的操作动作的类别确定处理器中内核的运行配置,其中,所述运行配置包括处理器中内核的运行数量和/或处理器中运行的内核的频率。The resource configuration module is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user, where the operational configuration includes a running quantity of a kernel in the processor and/or a kernel running in the processor Frequency of.
  11. 根据权利要求10所述的装置,其特征在于,所述方法还包括:The device of claim 10, wherein the method further comprises:
    所述用户操作动作感知模块用于根据所述当前用户的操作动作确定所述当前用户的操作动作的持续时间;The user operation action sensing module is configured to determine a duration of the current user action action according to the current user action action;
    所述资源配置模块用于至少根据所述当前用户的操作动作的类别确定在所述持续时间内的处理器中内核的所述运行配置。The resource configuration module is configured to determine the running configuration of a kernel in a processor during the duration according to at least a category of an operation action of the current user.
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括应用场景感知模块,The device according to claim 10, wherein the device further comprises an application scenario sensing module,
    所述应用场景感知模块用于识别当前应用场景; The application scenario sensing module is configured to identify a current application scenario;
    所述资源配置模块用于至少根据所述当前用户的操作动作的类别以及所述当前应用场景的类别确定处理器中内核的运行配置。The resource configuration module is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user and a category of the current application scenario.
  13. 根据权利要求10所述的装置,其特征在于,所述装置还包括终端状态感知模块,The device according to claim 10, wherein the device further comprises a terminal status sensing module,
    所述终端状态感知模块用于获取终端的状态信息;The terminal status sensing module is configured to acquire status information of the terminal.
    所述资源配置模块用于至少根据所述当前用户的操作动作的类别以及所述终端的状态信息确定处理器中内核的运行配置。The resource configuration module is configured to determine an operational configuration of a kernel in the processor according to at least a category of an operation action of the current user and status information of the terminal.
  14. 根据权利要求13所述的装置,其特征在于,所述终端的状态信息包括所述终端是否亮屏、所述终端的温度和所述终端是否在充电中的至少一种。The apparatus according to claim 13, wherein the status information of the terminal comprises at least one of whether the terminal is bright, the temperature of the terminal, and whether the terminal is charging.
  15. 根据权利要求10所述的装置,其特征在于,用户的操作动作的类别为滑动操作、切换界面操作、输入输出操作、应用启动操作和应用安装操作中的任何一种。The apparatus according to claim 10, wherein the category of the user's operation action is any one of a slide operation, a switch interface operation, an input/output operation, an application start operation, and an application installation operation.
  16. 根据权利要求15所述的装置,其特征在于,所述资源配置模块用于:The device according to claim 15, wherein the resource configuration module is configured to:
    所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和/或处理器中运行的内核的频率为第一频率;When the category of the current user's operation action is a sliding operation, determining that the number of cores running in the processor is the first number and/or the frequency of the kernel running in the processor is the first frequency;
    所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和/或处理器中运行的内核的频率为第二频率;When the category of the current user operation action is a switching interface operation, determining that the number of cores running in the processor is the second number and/or the frequency of the kernel running in the processor is the second frequency;
    所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current user's operation action is an input/output operation, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency;
    所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current user's operation action is an application startup operation, determining that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
    所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
    其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一频率<第二频率<第三频率<第四频率<第五频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first frequency <the second frequency <the third frequency <the fourth frequency <the fifth frequency.
  17. 根据权利要求15所述的装置,其特征在于,所述资源配置模块用于:The device according to claim 15, wherein the resource configuration module is configured to:
    所述当前用户的操作动作的类别为滑动操作时,确定处理器中运行的内核数量为第一数量和处理器中运行的内核的最大频率为第一最大频率,最小频率为第一最小频率; When the category of the current user's operation action is a sliding operation, determining that the number of cores running in the processor is the first number and the maximum frequency of the kernel running in the processor is the first maximum frequency, and the minimum frequency is the first minimum frequency;
    所述当前用户的操作动作的类别为切换界面操作时,确定处理器中运行的内核数量为第二数量和处理器中运行的内核的最大频率为第二最大频率,最小频率为第二最小频率;The current user operation action category is a switching interface operation, determining that the number of cores running in the processor is the second number and the maximum frequency of the kernel running in the processor is the second maximum frequency, and the minimum frequency is the second minimum frequency ;
    所述当前用户的操作动作的类别为输入输出操作时,确定处理器中运行的内核数量为第三数量和处理器中运行的内核的最大频率为第三最大频率,最小频率为第三最小频率;When the category of the current user's operation action is an input/output operation, it is determined that the number of cores running in the processor is the third number and the maximum frequency of the kernel running in the processor is the third maximum frequency, and the minimum frequency is the third minimum frequency. ;
    所述当前用户的操作动作的类别为应用启动操作时,确定处理器中运行的内核数量为第四数量和处理器中运行的内核的最大频率为第四最大频率,最小频率为第四最小频率;When the category of the current user action action is an application start operation, determining that the number of cores running in the processor is the fourth number and the maximum frequency of the kernel running in the processor is the fourth maximum frequency, and the minimum frequency is the fourth minimum frequency. ;
    所述当前用户的操作动作的类别为应用安装操作时,确定处理器中运行的内核数量为第五数量和处理器中运行的内核的最大频率为第五最大频率,最小频率为第五最小频率;When the category of the current user action action is an application installation operation, determining that the number of cores running in the processor is the fifth number and the maximum frequency of the kernel running in the processor is the fifth maximum frequency, and the minimum frequency is the fifth minimum frequency. ;
    其中,第一数量<第二数量<第三数量<第四数量<第五数量,第一最大频率<第二最大频率<第三最大频率<第四最大频率<第五最大频率,第一最小频率<第二最小频率<第三最小频率<第四最小频率<第五最小频率。Wherein, the first number <the second number <the third number <the fourth number <the fifth number, the first maximum frequency <the second maximum frequency <the third maximum frequency <the fourth maximum frequency <the fifth maximum frequency, the first minimum Frequency < second minimum frequency < third minimum frequency < fourth minimum frequency < fifth minimum frequency.
  18. 一种电子设备,包括中央处理器以及存储器,其特征在于,所述中央处理器用于执行如权利要求1至9任一权利要求所述的方法。An electronic device comprising a central processing unit and a memory, characterized in that the central processing unit is operative to perform the method according to any of claims 1 to 9.
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序被执行的情况下实现如权利要求1-9任一项所述的方法。A computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement the method of any one of claims 1-9.
  20. 一种程序产品,其特征在于,所述计算机程序被执行的情况下实现如权利要求1-9任一项所述的方法。 A program product, characterized in that the method according to any one of claims 1 to 9 is carried out in the case where the computer program is executed.
PCT/CN2017/086655 2016-05-31 2017-05-31 Method for determining kernel running configuration in processor and related product WO2017206915A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610380705.X 2016-05-31
CN201610380705.XA CN106020844A (en) 2016-05-31 2016-05-31 Method and device for determining kernel running configurations in processor

Publications (1)

Publication Number Publication Date
WO2017206915A1 true WO2017206915A1 (en) 2017-12-07

Family

ID=57093184

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086655 WO2017206915A1 (en) 2016-05-31 2017-05-31 Method for determining kernel running configuration in processor and related product

Country Status (2)

Country Link
CN (1) CN106020844A (en)
WO (1) WO2017206915A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118465599A (en) * 2023-09-18 2024-08-09 荣耀终端有限公司 Test method and test device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020844A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN107968874A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 Screen control method, device and terminal
CN106919400A (en) 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display scene recognition method of mobile terminal, device and mobile terminal
CN107861603A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Power consumption control method and equipment
CN107908423B (en) * 2017-11-20 2021-09-21 深圳市沃特沃德股份有限公司 Configuration method and device of vehicle-mounted system
CN108200635B (en) * 2017-11-29 2019-12-10 维沃移动通信有限公司 Operation control method of application program and mobile terminal
CN111338789B (en) * 2020-02-07 2024-02-13 北京小米移动软件有限公司 Resource allocation method and device, electronic equipment and computer readable storage medium
CN112068690B (en) * 2020-09-04 2022-09-20 龙芯中科技术股份有限公司 Processor frequency modulation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091671A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Programming interface for a computer platform
CN102866921A (en) * 2012-08-29 2013-01-09 惠州Tcl移动通信有限公司 Method and system for regulating and controlling multi-core central processing unit (CPU)
CN103838600A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Method and electronic device for controlling driving condition based on operating state
CN104363988A (en) * 2014-07-14 2015-02-18 华为技术有限公司 Management method and device of multi-core processor
CN105045369A (en) * 2015-06-19 2015-11-11 北京大学深圳研究生院 Dynamic CPU frequency adjustment method based on historical user-interaction information
CN106020844A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5812767A (en) * 1995-07-28 1998-09-22 International Business Machines Corporation System for user registering an address resolution routine to provide address resolution procedure which is used by data link provider interface for resolving address conflicts
CN101799772B (en) * 2010-02-26 2014-06-11 上海华为技术有限公司 Kernel dispatching method, kernel backup method and multi-core processor
CN103617088B (en) * 2013-11-29 2018-07-24 深圳中微电科技有限公司 The method, apparatus and its processor of kernel resources are distributed in different type thread

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091671A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Programming interface for a computer platform
CN102866921A (en) * 2012-08-29 2013-01-09 惠州Tcl移动通信有限公司 Method and system for regulating and controlling multi-core central processing unit (CPU)
CN103838600A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Method and electronic device for controlling driving condition based on operating state
CN104363988A (en) * 2014-07-14 2015-02-18 华为技术有限公司 Management method and device of multi-core processor
CN105045369A (en) * 2015-06-19 2015-11-11 北京大学深圳研究生院 Dynamic CPU frequency adjustment method based on historical user-interaction information
CN106020844A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118465599A (en) * 2023-09-18 2024-08-09 荣耀终端有限公司 Test method and test device

Also Published As

Publication number Publication date
CN106020844A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
JP6467526B2 (en) Communication message transmission method and wearable device
WO2018103525A1 (en) Method and device for tracking facial key point, and storage medium
WO2017008569A1 (en) Message updating method, apparatus, and terminal
TWI520043B (en) Method, device and moving terminal for examining messages
JP6492184B2 (en) Method, device, and system for managing information recommendations
WO2018040813A1 (en) Audio/video communication method, terminal, server, and storage medium
US20170097725A1 (en) Device and method for starting mobile terminal application and mobile terminal
WO2017206918A1 (en) Terminal awakening accelerating method and related product
TW201515682A (en) Methods and terminal for data acquisition
US20150043312A1 (en) Sound playing method and device thereof
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
WO2014166307A1 (en) Method for determining performance of process of application and computer system
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN108089935B (en) Application program management method and mobile terminal
WO2015135457A1 (en) Method, apparatus, and system for sending and playing multimedia information
WO2016019695A1 (en) Voice interaction method and terminal
CN117407133A (en) Task processing method and device and computer readable storage medium
CN105159655B (en) Behavior event playing method and device
CN111083285A (en) Mobile terminal call positioning system and method
WO2015067206A1 (en) File searching method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805860

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805860

Country of ref document: EP

Kind code of ref document: A1