US20190138081A1 - Method for Managing Central Processing Unit and Related Products - Google Patents

Method for Managing Central Processing Unit and Related Products Download PDF

Info

Publication number
US20190138081A1
US20190138081A1 US16/122,400 US201816122400A US2019138081A1 US 20190138081 A1 US20190138081 A1 US 20190138081A1 US 201816122400 A US201816122400 A US 201816122400A US 2019138081 A1 US2019138081 A1 US 2019138081A1
Authority
US
United States
Prior art keywords
cpu
prediction
lpm
accuracy rate
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US16/122,400
Inventor
Yuanqing Zeng
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Assigned to GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD. reassignment GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: ZENG, Yuanqing
Priority to US16/245,366 priority Critical patent/US10444822B2/en
Publication of US20190138081A1 publication Critical patent/US20190138081A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition includes: determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM; determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • the counting the prediction accuracy rate includes: counting the prediction accuracy rate by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as corresponding to inaccurate predictions.
  • the at least one processor carrying out the action of counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition is caused to carry out actions, including: determining the prediction as an accurate prediction, based on a determination including one of the following: the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • the at least one processor carrying out the action of counting the prediction accuracy rate is caused to carry out actions, including: counting the prediction accuracy rate by determining situations corresponding to accurate predictions and inaccurate predictions as a full set and counting a proportion of the accurate predictions in the full set.
  • the implementations of the present discourse also provide another solution of how to count the prediction accuracy rate.
  • the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is counted as follows.
  • a prediction is determined as an accurate prediction, if: the response time of the CPU in the target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU (here, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt, that is, the moment that the CPU responds to the interrupt is after both the end of the seep time of the CPU in the LPM and the timer value of the CPU); or, the response time of the CPU in the LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU (here, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt, that is, the moment that the CPU responds to the interrupt is before both the end of the seep time of the CPU in the LPM and the
  • the prediction accuracy rate can be also counted by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as inaccurate predictions without considering how to determine a prediction as an inaccurate prediction. Therefore, solutions of how to determine a prediction as an accurate prediction and solutions of how to determine a prediction as an inaccurate prediction can exist independently. At the same time, these two solutions can both be considered together.
  • a scheduler of an operating system can accurately assign tasks to an appropriate CPU, the power consumption and scheduling overhead of the system can be reduced, and operating performance of the system can be improved.
  • the implementations of the present disclosure provide a new LPM Governor algorithm, which allows reducing power consumption and improving performance of a multi-core system.
  • the design principle is as follows. Comparison between the last time that the CPU was in the LPM and the last value of the timer of the system is conducted. When both the last time and the last value are in a same range of response time in the LPM, it indicates that prediction of the next wake-up moment of the CPU by using the termer of the system is accurate; otherwise, it indicates that prediction of the next wake-up moment of the CPU by using the termer of the system is inaccurate.
  • the LPM Governor algorithm counts the comparison results of past several times (for example, five times) to determine the prediction accuracy rate.
  • the LPM Governor algorithm uses the response time of the CPU in different LPMs as a comparison threshold, so that a decision for CPU state switching can directly reflect different characteristics of the CPU, and the pertinence and accuracy are better. In a scenario where the CPU is woken up frequently (that is, there are more interrupts), the LPM Governor algorithm can maintain high CPU performance while maintaining low power consumption.
  • the prediction accuracy by using the timer value can be evaluated by comparing the timer of the system and the wake-up moment of the CPU.
  • a predicted value can be corrected in real time in scenarios where interrupts occur frequently, so that the next wake-up moment of the CPU can be predicted accurately, thereby making the CPU to enter a more appropriate LPM and maintaining a better CPU performance while keeping low power consumption as much as possible.
  • the CPU is operable with several classical LPMs.
  • the CPU in different LPMs has different response time and power consumption characteristic. For example, in a waiting-for-interrupt (WFI) mode, the CPU has the fastest response but the largest power consumption; in a suspending/retention mode, the CPU has moderate response and moderate power consumption; in a power-down mode, the CPU responds the slowest but the most power-efficient.
  • WFI waiting-for-interrupt
  • the WFI mode is appropriate.
  • the power-down mode is appropriate for a system in a long-term sleep mode.
  • Main factors that affect the next wake-up moment of the CPU include a timer and an interrupt, which will be described below.
  • Each CPU has its own timer. Drivers, kernel modules, and applications, etc. can set different timers according to their own needs.
  • the timer of the CPU usually refers to the timer that will expire recently.
  • Li represent a certain LPM, such as WFI, suspend, etc.
  • TLi represent response time of the CPU corresponding to a certain LPM Li
  • SLi represent sleep time the CPU in a certain LPM Li
  • Ttimer represent a timer value of the CPU
  • Eli represent a predicted next wake-up moment of the CPU.
  • the process includes the following operations.
  • the prediction by using Ttimer is determined as an accurate prediction, proceed to operations at block 206 .
  • Ttimer is used to predict the next wake-up moment of the CPU and a predicted value Eli is obtained, and then proceed to operations at block 210 .
  • a mode with the lowest power consumption and satisfying a condition (TLi ⁇ ELi) is found from among all LPMs.
  • the time determining sub-unit 401 is configured to determine a response time of the CPU in a target LPM.
  • the accuracy determining sub-unit 402 is configured to determine whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determine the prediction as an inaccurate prediction if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.
  • a scheduler of an operating system can accurately assign tasks to an appropriate CPU, the power consumption and scheduling overhead of the system can be reduced, and operating performance of the system can be improved.
  • the implementations of the present discourse also provide a solution of how to count the prediction accuracy rate specifically.
  • the processor 501 configured to count the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is further configured to: determine a response time of the CPU in a target LPM, after the timer value is determined as a prediction condition to predict the next wake-up moment of the CPU and the CPU enters the target LPM; determine whether a response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determine the prediction as an inaccurate prediction if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)

Abstract

A method for managing a central processing unit and related products are provided. The method includes the follows. A first prediction condition and a second prediction condition are determined. Both the first prediction condition and the second prediction condition are factors that affect a wake-up moment of a central processing unit (CPU). A prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition is counted. The first prediction condition is continued to be used to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold. The second prediction condition is used to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.

Description

    CROSS-REFERENCE TO RELATED APPLICATION(S)
  • This application is a continuation of International Application PCT/CN2017/086453, filed on May 27, 2017, which claims the priority of Chinese Patent Application No. 201610380645.1, filed on May 31, 2016, the contents of both of which are herein incorporated by reference in their entireties.
  • TECHNICAL FIELD
  • The present disclosure relates to the field of computers, and particularly to a method for managing a central processing unit and related products.
  • BACKGROUND
  • In an operating system that is currently widely used, when a task runs in a central processing unit (CPU), the CPU is in an active state. When the task is completed or removed, the CPU will enter a low power mode (LPM).
  • SUMMARY
  • According to a first aspect of implementations of the present disclosure, there is provided a method for managing a central processing unit. The method includes the follows.
  • A first prediction condition and a second prediction condition are determined. Both the first prediction condition and the second prediction condition are factors that affect a wake-up moment of a central processing unit (CPU). A prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition is counted. The first prediction condition is continued to be used to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold. The second prediction condition is used to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • According to a second aspect of the implementations of the present disclosure, there is provided an electronic device, which includes at least one processor and a computer readable storage coupled to the at least one processor. The computer readable storage stores at least one computer executable instruction thereon, which when executed by the at least one processor, cause the at least one processor to carry out actions, including: determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • According to a third aspect of the disclosure, there is provided a non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, cause the processor to carry out following actions: determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; and continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • In order to illustrate technical solutions of implementations of the present disclosure more clearly, the drawings used in the implementations will be briefly described below.
  • FIG. 1 is a schematic flow chart of a method for managing a central processing unit according to an implementation of the present disclosure.
  • FIG. 2 is a schematic flow chart of a method for managing a central processing unit according to an implementation of the present disclosure.
  • FIG. 3 is a schematic flow chart of an apparatus for managing a central processing unit according to an implementation of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an apparatus for managing a central processing unit according to an implementation of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an implementation of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an implementation of the present disclosure.
  • DETAILED DESCRIPTION
  • In order to make the purpose, technical solutions, and advantages of the present disclosure clearer, implementations of the disclosure will be described in detail with reference to the accompanying drawings. Obviously, implementations described below are merely part of rather than all of the implementations of the present disclosure. Based on the implementations of the present disclosure, other implementations obtained there from without any creative work by those of ordinary skill in the art shall fall into the protection scope of the present disclosure.
  • According to a first aspect of implementations of the present disclosure, there is provided a method for managing a central processing unit. The method includes: determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • In an implementation, the first prediction condition is a timer value and the second prediction condition is an interrupt moment.
  • In an implementation, the counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition includes: determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM; determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the counting the prediction accuracy rate includes: counting the prediction accuracy rate by determining situations other than inaccurate predictions as corresponding to accurate predictions.
  • In an implementation, the counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition includes: determining the prediction as an accurate prediction, based on a determination including one of the following: the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the counting the prediction accuracy rate includes: counting the prediction accuracy rate by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as corresponding to inaccurate predictions.
  • In an implementation, the counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition includes: determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM; determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an accurate prediction, based on a determination including one of the following: the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the counting the prediction accuracy rate includes: counting the prediction accuracy rate by determining situations corresponding to accurate predictions and inaccurate predictions as a full set and counting a proportion of the accurate predictions in the full set.
  • In an implementation, the method for managing a CPU is applicable for managing a multi-core CPU.
  • In an implementation, the LPM comprises at least one of: a waiting-for-interrupt mode, a suspending mode, and a power-down mode.
  • According to a second aspect of the implementations of the present disclosure, there is provided an electronic device, which includes at least one processor and a computer readable storage coupled to the at least one processor. The computer readable storage stores at least one computer executable instruction thereon, which when executed by the at least one processor, cause the at least one processor to carry out actions, including: determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • In an implementation, the first prediction condition is a timer value and the second prediction condition is an interrupt moment.
  • In an implementation, the at least one processor carrying out the action of counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition is caused to carry out actions, including: determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM; determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the at least one processor carrying out the action of counting the prediction accuracy rate is caused to carry out actions, including: counting the prediction accuracy rate by determining situations other than inaccurate predictions as corresponding to accurate predictions.
  • In an implementation, the at least one processor carrying out the action of counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition is caused to carry out actions, including: determining the prediction as an accurate prediction, based on a determination including one of the following: the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the at least one processor carrying out the action of counting the prediction accuracy rate is caused to carry out actions, including: counting the prediction accuracy rate by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as corresponding to inaccurate predictions.
  • In an implementation, the at least one processor carrying out the action of counting a prediction accuracy rate of predicting the CPU entering a LPM by using the first prediction condition is caused to carry out actions, including: determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM; determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; determining the prediction as an accurate prediction, based on a determination including one of the following: the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In an implementation, the at least one processor carrying out the action of counting the prediction accuracy rate is caused to carry out actions, including: counting the prediction accuracy rate by determining situations corresponding to accurate predictions and inaccurate predictions as a full set and counting a proportion of the accurate predictions in the full set.
  • In an implementation, the processor is a multi-core CPU.
  • According to a third aspect of the disclosure, there is provided a non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, cause the processor to carry out following actions: determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; and continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • According to a fifth aspect of implementations of the present disclosure, there is provided a program product. The program product includes a computer readable storage medium for storing computer programs which, when executed, are operable with a computer to execute any method according to the implementations of the present disclosure.
  • Implementations of the present disclosure provide a method for managing a central processing unit. As illustrated in FIG. 1, the method starts with operations at block 101.
  • At block 101, a first prediction condition and a second prediction condition are determined and both the first prediction condition and the second prediction condition are factors that affect a wake-up moment of a central processing unit (CPU).
  • There may be many factors affecting the wake-up moment of the CPU, at present, mainly including a timer and an interrupt. The first prediction condition and the second prediction condition are determined according to the factors that affect the wake-up moment of the CPU, which is not specifically limited in the implementations of the disclosure. In this implementation of the present disclosure, a timer value can be understood as a timer value of the CPU or a timer value of a system.
  • At block 102, a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition is counted.
  • In another words, the operations at block 102 can also be implemented by counting a prediction accuracy rate of predicting the next wake-up moment of the CPU by using the first prediction condition.
  • In this implementation of the present disclosure, after predicting a next wake-up moment of the CPU by using a prediction condition, the CPU may select to enter an appropriate LPM, since a prediction accuracy may be affected by practical conditions, such as changes of the state of the CPU, there is a possibility that the LPM that the CPU enters is not necessarily appropriate. Therefore, there will be a certain proportion of inaccurate predictions. Which LPM to be entered may have something to do with a time period from the current moment to the predicted next wake-up moment.
  • At block 103, continue to use the first prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; turn to use the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • The predetermined threshold may be an arbitrary threshold. The predetermined threshold is configured to determine whether the first prediction condition is able to predict the next wake-up moment of the CPU accurately and therefore, the higher the predetermined threshold, the higher the requirement for the prediction accuracy. It can be understood that the higher the setting of the predetermined threshold, the more frequent the switching of prediction conditions. Everything considered, it will be appropriate to set the predetermined threshold to about 60%. It should be understood that, setting the predetermined threshold to other values does not affect the implementation of the implementations of the present disclosure.
  • In the implementation of the present disclosure, by using a prediction condition to predict the next wake-up moment of the CPU, counting the prediction accuracy rate, and considering influences of various factors on the next wake-up moment of the CPU, the next wake-up moment of the CPU can be predicted accurately and allows the CPU to choose an appropriate LPM, which makes it possible to balance the power consumption and performance requirements of the CPU. Therefore, a higher CPU performance can be maintained while maintaining low power consumption.
  • As a specific implementation, the first prediction condition is a timer value, and the second prediction condition is an interrupt moment.
  • In implementations of the present disclosure, there can be many types of LPMs. For example, the LPM includes at least one of: a waiting-for-interrupt mode, a suspending mode, and a power-down mode.
  • It can be understood that the LPM may also take other forms. In implementations of the present disclosure, after predicting the next wake-up moment of the CPU, choose which LPM to enter. Therefore, the forms or types of LPM will not affect the execution of the previous prediction. The above examples should not be understood as any limit to the implementations of the present disclosure.
  • The implementations of the present discourse also provide a solution of how to count the prediction accuracy rate. The prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is counted as follows.
  • After the next wake-up moment of the CPU is predicted by using the timer value as a prediction condition and the CPU enters the target LPM, a response time of the CPU in a target LPM is determined. Determine whether a response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU. The prediction is determined as an inaccurate prediction if the response time (moment) of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU. In this implementation of the present disclosure, the sleep time of the CPU in the target LPM can refer to the beginning of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt. When the response moment of the CPU in the target LPM is between the beginning of the sleep time of the CPU in the target LPM and the timer value of the CPU, the CPU is still in the target PLM (that is in the sleep period) and cannot respond to an interrupt, so the prediction of predicting the next wake-up moment of the CPU by using the timer value is determined as an inaccurate prediction.
  • The prediction accuracy rate is counted after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In this implementation, based on using the timer value and the interrupt moment as factors affecting the wake-up moment of the CPU, approaches of determining inaccurate predictions are provided. It should be noted that, if a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold, a prediction will be determined as an accurate prediction even if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU. In this implementation of the present disclosure, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to the moment that the CPU responds to the interrupt.
  • The implementations of the present discourse also provide another solution of how to count the prediction accuracy rate. The prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is counted as follows.
  • A prediction is determined as an accurate prediction, if: the response time of the CPU in the target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU (here, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt, that is, the moment that the CPU responds to the interrupt is after both the end of the seep time of the CPU in the LPM and the timer value of the CPU); or, the response time of the CPU in the LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU (here, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt, that is, the moment that the CPU responds to the interrupt is before both the end of the seep time of the CPU in the LPM and the timer value of the CPU); or, a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than the pre-determined threshold (here, the sleep time of the CPU in the target LPM can refer to the end of the seep time, and the response time of the CPU in the target LPM may refer to a moment that the CPU responds to an interrupt, that is, the difference between the end of the sleep time of the CPU in the LPM and the timer value of the CPU is less than the pre-determined threshold).
  • The prediction accuracy rate is counted after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • Understandably, it is possible to count the prediction accuracy rate by excluding inaccurate predictions and determining other situations corresponding to accurate predictions, therefore the process of determining a prediction as an accurate prediction is not necessarily conducted. In addition, the prediction accuracy rate can be also counted by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as inaccurate predictions without considering how to determine a prediction as an inaccurate prediction. Therefore, solutions of how to determine a prediction as an accurate prediction and solutions of how to determine a prediction as an inaccurate prediction can exist independently. At the same time, these two solutions can both be considered together.
  • As an implementation, the method for managing a CPU can be applicable for managing a multi-core CPU.
  • In a system with multiple cores (that is, multiple CPUs or a multi-core CPU), by setting the CPU to a more appropriate LPM state, a scheduler of an operating system can accurately assign tasks to an appropriate CPU, the power consumption and scheduling overhead of the system can be reduced, and operating performance of the system can be improved.
  • Based on the above description, the implementations of the present disclosure provide a new LPM Governor algorithm, which allows reducing power consumption and improving performance of a multi-core system. The design principle is as follows. Comparison between the last time that the CPU was in the LPM and the last value of the timer of the system is conducted. When both the last time and the last value are in a same range of response time in the LPM, it indicates that prediction of the next wake-up moment of the CPU by using the termer of the system is accurate; otherwise, it indicates that prediction of the next wake-up moment of the CPU by using the termer of the system is inaccurate. The LPM Governor algorithm counts the comparison results of past several times (for example, five times) to determine the prediction accuracy rate. When the prediction accuracy rate is good (for example, the prediction accuracy rate is higher than 60%), continue to use the timer value for prediction; otherwise, the last interrupt-to-wake up time (that is, the interrupt moment) of the CPU is used to predict the next wake-up moment of the CPU. This can better reflect the impact of the interrupt on the CPU and improve the response speed of the CPU to a sudden CPU demand for instantly changing scenes. At the same time, the LPM Governor algorithm uses the response time of the CPU in different LPMs as a comparison threshold, so that a decision for CPU state switching can directly reflect different characteristics of the CPU, and the pertinence and accuracy are better. In a scenario where the CPU is woken up frequently (that is, there are more interrupts), the LPM Governor algorithm can maintain high CPU performance while maintaining low power consumption.
  • Therefore, the prediction accuracy by using the timer value can be evaluated by comparing the timer of the system and the wake-up moment of the CPU. A predicted value can be corrected in real time in scenarios where interrupts occur frequently, so that the next wake-up moment of the CPU can be predicted accurately, thereby making the CPU to enter a more appropriate LPM and maintaining a better CPU performance while keeping low power consumption as much as possible.
  • In general, the CPU is operable with several classical LPMs. The CPU in different LPMs has different response time and power consumption characteristic. For example, in a waiting-for-interrupt (WFI) mode, the CPU has the fastest response but the largest power consumption; in a suspending/retention mode, the CPU has moderate response and moderate power consumption; in a power-down mode, the CPU responds the slowest but the most power-efficient. Obviously, in situations where interrupts/task scheduling occurs frequently and require real-time CPU response, the WFI mode is appropriate. For a system in a long-term sleep mode, the power-down mode is appropriate.
  • When the CPU is in an idle state and there is a need to select a LPM to enter, generally, a common idea at present is to predict the next wake-up moment of the CPU, and find a LPM satisfying the wake-up moment (that is, the response time of the CPU in the LPM<next wake-up moment) and with a lowest power consumption level.
  • Main factors that affect the next wake-up moment of the CPU include a timer and an interrupt, which will be described below.
  • 1. Timer.
  • Each CPU has its own timer. Drivers, kernel modules, and applications, etc. can set different timers according to their own needs. The timer of the CPU usually refers to the timer that will expire recently.
  • 2. Interrupt
  • The interrupt includes internal interrupts of the scheduler and external interrupts of the system. In the case of less interrupts, it can be anticipated that the CPU will not be woken up in the LPM until the timer expires. In the case of more interrupts, the CPU will be woken up by an interrupt before the timer expires, so the time of the CPU in the LPM will be less than the timer value. Therefore, whether the current system is busy (that is, when there are more interrupts) can be determined by comparing the last time of the CPU entering the LPM with the last timer. For easy explanation of the algorithm process, several basic variables are defined as follows.
  • Li: represent a certain LPM, such as WFI, suspend, etc.
  • TLi: represent response time of the CPU corresponding to a certain LPM Li;
  • SLi: represent sleep time the CPU in a certain LPM Li;
  • Ttimer: represent a timer value of the CPU;
  • Eli: represent a predicted next wake-up moment of the CPU.
  • Based on this, as illustrated in FIG. 2, the process includes the following operations.
  • At block 201, last sleep time SLi of the CPU in Li and last Ttimer are counted.
  • Subsequent processes at block 202 to 205 relate to operations of elevating Ttimer.
  • At block 202, determine whether SLi is approximately equal to Ttimer. If yes, proceed to operations at block 203; otherwise, proceed to operations at block 204.
  • When SLi is approximately equal to or slightly smaller than Ttimer, this indicates that the CPU is not woken up by an interrupt in the last Li. The last Ttimer predicted the wake-up moment of the CPU accurately, and the prediction is accurate.
  • At block 203, the prediction by using Ttimer is determined as an accurate prediction, proceed to operations at block 206.
  • At block 204, determine whether SLi and Ttimer are located on the same side of TLi. If yes, proceed to operations at block 203; otherwise, proceed to operations at block 205.
  • At block 202, there are situations where SLi is not approximately equal to Ttimer, that is, where the difference between SLi and Ttimer is relatively large.
  • One situation is that, both SLi and Ttimer are greater than or less than TLi, that is, both of them fall on the same side of TLi in the LPM, which indicates that interrupts have a large impact on wakeup of the CPU, but SLi and Ttimer are still within the same range of response time in the LPM. In this case, although it is less accurate to continue to use the timer for prediction, it will not affect the CPU to enter a correct LPM, so the prediction can still be considered as an accurate prediction.
  • Another situation is that, SLi is on one side of TLi and Ttimer is on the other side of TLi, which indicates that the impact of the interrupts is obvious and Ttimer is insufficient as a judging criterion of entering a correct LPM. Therefore, the prediction by using Ttimer is an inaccurate prediction and the impact of the interrupts needs to be taken into consideration in the next prediction.
  • At block 205, the prediction by using Ttimer is determined as an inaccurate prediction; proceed to operations at block 206.
  • At block 206, recent prediction results for several times are counted.
  • Recent prediction results for N times (such as five times) can be counted herein. Of course, other number of times can also be set and the implementations of the present disclosure are not particularly restricted. When the prediction accuracy rate is larger than a certain threshold (such as 60%), the timer can continue to be used for the next prediction; otherwise, the last moment when the CPU is woken up by an interrupt is used to predict the next wake-up moment.
  • At block 207, determine the prediction accuracy rate is larger than a threshold; if yes, proceed to operations at block 208, otherwise, proceed to operations at block 209.
  • At block 208, Ttimer is used to predict the next wake-up moment of the CPU and a predicted value Eli is obtained, and then proceed to operations at block 210.
  • At block 209, the next wake-up moment of the CPU is predicted by using the interrupt moment and a predicted value Eli is obtained, and then proceed to operations at block 210.
  • At block 210, Based on the predicted value Eli, a mode with the lowest power consumption and satisfying a condition (TLi<ELi) is found from among all LPMs.
  • In the implementation of the present disclosure, for the prediction of the next wake-up moment of the CPU, both the timer and the interrupt are taken into account. A prediction effect is evaluated by comparing time that the CPU is actually in the LPM and the system timer. When the prediction accuracy rate is lower than a certain threshold, switch to using an interrupt wake-up moment for prediction, which can balance power consumption and performance.
  • In implementations of the disclosure, instead of obtaining the sleep time in the LPM by calculating and fitting based on statistical data of time in the LPM in the past, prediction by using the timer in the past is evaluated according to the response time of the CPU in the LPM on the base of CPU characteristic directly. The idea of the algorithm is simple, and the system overhead of the chip entering and leaving various LPMs is optimized.
  • The implementations of the present disclosure provide an apparatus for managing a central processing unit. As illustrated in FIG. 3, the apparatus for managing a central processing unit includes a condition determining unit 301, an accuracy rate counting unit sub-unit 302, and a prediction controlling unit 303.
  • The condition determining unit 301 is configured to determine a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU).
  • The accuracy rate counting unit sub-unit 302 is configured to count a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition.
  • The prediction controlling unit 303 is configured to continue to use the first prediction condition to predict a next wake-up moment of the CPU when the accuracy rate counting unit sub-unit 302 determines that the prediction accuracy rate is greater than a predetermined threshold; turn to use the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • There may be many factors affecting the wake-up moment of the CPU, at present mainly including a timer and an interrupt. The first prediction condition and the second prediction condition are determined according to the factors that affect the wake-up moment of the CPU, which is not specifically limited in the implementations of the disclosure. In this implementation of the present disclosure, a timer value can be understood as a timer value of the CPU or a timer value of a system.
  • In this implementation of the present disclosure, after predicting a next wake-up moment of the CPU by using a prediction condition, the CPU may select to enter an appropriate LPM, since a prediction accuracy may be affected by practical conditions, such as changes of the state of the CPU, there is a possibility that the LPM that the CPU enters is not necessarily appropriate. Therefore, there will be a certain proportion of inaccurate predictions.
  • The predetermined threshold may be an arbitrary threshold. The predetermined threshold is configured to determine whether the first prediction condition is able to predict the next wake-up moment of the CPU accurately and therefore, the higher the predetermined threshold, the higher the requirement for the prediction accuracy. It can be understood that the higher the setting of the predetermined threshold, the more frequent the switching of prediction conditions. Everything considered, it will be appropriate to set the predetermined threshold to about 60%. It should be understood that, setting the predetermined threshold to other values does not affect the implementation of the implementations of the present disclosure.
  • In the implementation of the present disclosure, by using a prediction condition to predict the next wake-up moment of the CPU, counting the prediction accuracy rate, and considering influences of various factors on the next wake-up moment of the CPU, the next wake-up moment of the CPU can be predicted accurately and allows the CPU to choose an appropriate LPM, which makes it possible to balance the power consumption and performance requirements of the CPU. Therefore, a higher CPU performance can be maintained while maintaining low power consumption.
  • As a specific implementation, the first prediction condition is a timer value, and the second prediction condition is an interrupt moment.
  • In implementations of the present disclosure, there can be many types of LPMs. For example, the LPM includes at least one of: a waiting-for-interrupt mode, a suspending mode, and a power-down mode.
  • It can be understood that the LPM may also take other forms. In the implementation of the present disclosure, after predicting the next wake-up moment of the CPU, choose which LPM to enter. Therefore, the forms or types of LPM will not affect the execution process of the previous prediction. The above examples should not be understood as any limit to the implementations of the present disclosure.
  • The implementations of the present discourse also provide a solution of how to count the prediction accuracy rate. As illustrated in FIG. 4, after the prediction controlling unit 303 determines the timer value as the prediction condition to predict the next wake-up moment of the CPU, the CPU enters a target LPM. The accuracy rate counting unit sub-unit 302 includes a time determining sub-unit 401, an accuracy determining sub-unit 402, and a counting unit sub-unit 403.
  • The time determining sub-unit 401 is configured to determine a response time of the CPU in a target LPM.
  • The accuracy determining sub-unit 402 is configured to determine whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determine the prediction as an inaccurate prediction if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.
  • The counting unit sub-unit 403 is configured to count a prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In this implementation, based on using the timer value and the interrupt moment as factors affecting the wake-up moment of the CPU, approaches of determining inaccurate predictions are provided. It should be noted that, if a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold, a prediction will be determined as an accurate prediction even if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.
  • The implementations of the present discourse also provide a solution of how to determine a prediction as an accurate prediction based on the above-mentioned approaches of determining inaccurate predictions. The accuracy determining sub-unit 402 is further configured to determine a prediction as an accurate prediction, if: the response time of the CPU in the LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; or the response time of the CPU in the LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; or a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than the pre-determined threshold.
  • Understandably, it is possible to count the prediction accuracy rate by excluding inaccurate predictions and determining other situations corresponding to accurate predictions, therefore the process of determining a prediction as an accurate prediction is not necessarily conducted. In addition, the prediction accuracy rate can be also counted by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as inaccurate predictions without considering how to determine a prediction as an inaccurate prediction. Therefore, solutions of how to determine a prediction as an accurate prediction and solutions of how to determine a prediction as an inaccurate prediction can exist independently. At the same time, these two solutions can both be considered together.
  • As an implementation, the apparatus for managing a CPU can be applicable for managing a multi-core CPU.
  • The above units can be realized through one or more processors, for example, the above units can be integrated in one processor, or, can be distributed among different processors.
  • In a system with multiple cores (that is, multiple CPUs or a multi-core CPU), by setting the CPU to a more appropriate LPM state, a scheduler of an operating system can accurately assign tasks to an appropriate CPU, the power consumption and scheduling overhead of the system can be reduced, and operating performance of the system can be improved.
  • The implementations of the present disclosure also provide an electronic device. As illustrated in FIG. 5, the electronic device includes a center processing unit (CPU) 501 and a memory 502. The memory 502 is configured to be used as a buffer memory required by the processor 501 to perform data processing. The memory 502 is further configured to provide a memory space for data called by the processor 501 to perform data processing and obtained result data. The electronic device may further include other hardware devices, which are not limited in this implementation.
  • The processor 501 is configured to determine a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU); count a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition; continue to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; turn to use the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
  • In this implementation of the present disclosure, after predicting a next wake-up moment of the CPU by using a prediction condition, the CPU may select to enter an appropriate LPM, since a prediction accuracy may be affected by practical conditions, such as changes of the state of the CPU, there is a possibility that the LPM that the CPU enters is not necessarily appropriate. Therefore, there will be a certain proportion of inaccurate predictions.
  • The predetermined threshold may be an arbitrary threshold. The predetermined threshold is configured to determine whether the first prediction condition is able to predict the next wake-up moment of the CPU accurately and therefore, the higher the predetermined threshold, the higher the requirement for the prediction accuracy. It can be understood that the higher the setting of the predetermined threshold, the more frequent the switching of prediction conditions. Everything considered, it will be appropriate to set the predetermined threshold to about 60%. It should be understood that, setting the predetermined threshold to other values does not affect the implementation of the implementations of the present disclosure.
  • In the implementation of the present disclosure, by using a prediction condition to predict the next wake-up moment of the CPU, counting the prediction accuracy rate, and considering influences of various factors on the next wake-up moment of the CPU, the next wake-up moment of the CPU can be predicted accurately and allows the CPU to choose an appropriate LPM, which makes it possible to balance the power consumption and performance requirements of the CPU. Therefore, a higher CPU performance can be maintained while maintaining low power consumption.
  • As a specific implementation, the first prediction condition is a timer value, and the second prediction condition is an interrupt moment.
  • In implementations of the present disclosure, there can be many types of LPMs. For example, the LPM includes at least one of: a waiting-for-interrupt mode, a suspending mode, and a power-down mode.
  • It can be understood that the LPM may also take other forms. In the implementation of the present disclosure, after predicting the next wake-up moment of the CPU, choose which LPM to enter. Therefore, the forms or types of LPM will not affect the execution of the previous prediction. The above examples should not be understood as any limit to the implementations of the present disclosure.
  • The implementations of the present discourse also provide a solution of how to count the prediction accuracy rate specifically. The processor 501 configured to count the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is further configured to: determine a response time of the CPU in a target LPM, after the timer value is determined as a prediction condition to predict the next wake-up moment of the CPU and the CPU enters the target LPM; determine whether a response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU; determine the prediction as an inaccurate prediction if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.
  • A prediction accuracy rate is counted after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
  • In this implementation, based on using the timer value and the interrupt moment as factors that affect the wake-up moment of the CPU, approaches of determining inaccurate predictions are provided. It should be noted that, if a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold, a prediction will be determined as an accurate prediction even if the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU.
  • The implementations of the present discourse also provide a solution of how to determine a prediction as an accurate prediction based on the above-mentioned approaches of determining inaccurate predictions. The processor 501 is further configured to determine a prediction as an accurate prediction if: the response time of the CPU in the target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU; or the response time of the CPU in the LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; or a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than the pre-determined threshold.
  • Understandably, it is possible to count the prediction accuracy rate by excluding inaccurate predictions and determining other situations corresponding to accurate predictions, therefore the process of determining a prediction as an accurate prediction is not necessarily conducted. In addition, the prediction accuracy rate can be also counted by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as inaccurate predictions without considering how to determine a prediction as an inaccurate prediction. Therefore, solutions of how to determine a prediction as an accurate prediction and solutions of how to determine a prediction as an inaccurate prediction can exist independently. At the same time, these two solutions can also both be considered together.
  • As an implementation, the processor 501 of the electronic device can be a multi-core CPU.
  • In a system with multiple cores (that is, multiple CPUs or a multi-core CPU), by setting the CPU to a more appropriate LPM state, a scheduler of an operating system can accurately assign tasks to an appropriate CPU, the power consumption and scheduling overhead of the system can be reduced, and operating performance of the system can be improved.
  • The implementations of the present disclosure further provide an electronic device. As illustrated in FIG. 6, only parts related to the implementations of the present disclosure are illustrated for ease of description. For technical details not described, reference may be made to the method implementations of the present disclosure. The electronic device may be any electronic device, such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sale terminal (POS), an on-board computer and the like. The following describes the mobile phone as an example of the electronic device.
  • FIG. 6 is a schematic structural diagram of a part of a structure of a mobile phone related to an electronic device according to an implementation of the present disclosure. As illustrated in FIG. 6, the mobile phone includes a RF (radio frequency) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a Wi-Fi (wireless fidelity) module 670, a processor set 680, a power supply 690 and other components. Those skilled in the art can understand that the structure of the mobile phone illustrated in FIG. 6 does not constitute any limitation on a mobile phone. The mobile phone configured to implement technical solutions of the disclosure may include more or fewer components than illustrated or may combine certain components or different components.
  • In the following, various components of the mobile phone will be described in detail with reference to FIG. 6.
  • The RF circuit 610 may be configured to receive and transmit a signal during the process of sending or receiving information, or calling. In some possible implementations, the RF circuit 610 receives downlink information from a base-station and passes the downlink information to processor set 680 for processing; furthermore, the RF circuit 610 sends data related to uplink to the base-station. Generally, the RF circuit 610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer and the like. In addition, the RF circuit 610 may also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, which includes but is not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), E-mail, short messaging service (SMS) and so on.
  • The memory 620 is configured to store software programs and modules. The processor set 680 is configured to execute various function applications and data processing of the mobile phone by running the software programs and the modules stored in the memory 620. The memory 620 mainly includes a program storage area and a data storage area. The program storage area may store an operating system, applications (such as sound playing function, image playing function, etc.) required for at least one function and so on. The data storage area may store data (such as audio data, phone book, etc.) created according to use of the mobile phone, and so on. In addition, the memory 620 may include a high-speed RAM, and may further include a non-volatile memory such as at least one disk storage device, a flash device, or other non-volatile solid storage devices.
  • The input unit 630 may be configured to receive input digital or character information and generate key signal input associated with user setting and functional control of the mobile phone. In some possible implementations, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to a touch display screen, can collect a touch operation of the user on or near the touch panel 631 (such as an operation of user on or near the touch panel 631 with fingers, stylus and any other suitable objects or attachments) and drive a corresponding connection apparatus based on a pre-set form. In some possible implementations, the touch panel 631 can include two parts: a touch detecting apparatus and a touch controller. The touch detecting apparatus can detect a touch orientation of the user, detect a signal brought by the touch operation, and send the signal to the touch controller. The touch controller receives touch information from the touch detecting apparatus, converts the touch information into a touch coordinate, sends the touch information to the processor set 680, and receives an order from the processor set 680 to conduct it. In addition, the touch panel 631 can be implemented by resistance-type, capacitance-type, infrared ray, surface acoustic wave (SAW) and other types. The input unit 630 may further include, in addition to the touch panel 631, other input devices 632. The other input devices 632 may include, but are not limited to, one or more of a physical keyboard, a functional key (such as a volume control key and a switch key), a track ball, a mouse, and an operating rod.
  • The display unit 640 may be configured to display information input by the user or information provided for the user or various menus of the mobile phone. The display unit 640 may include a display panel 641, and in some possible implementations, the display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED) and so on. In some possible implementations, the touch panel 631 can cover the display panel 641. After the touch panel 631 detects the touch operation on or near the touch panel 631 and sends the touch operation to the processor set 680 to determine a type of a touch event, the then processor set 680 provides an associated visual output on the display panel 641 base on the type of the touch event. In FIG. 5, although the touch panel 631 and the display panel 641 implement input and output functions by serving as two independent components, the touch panel 631 may be integrated with the display panel 641 to implement the input and output functions in some possible implementations.
  • The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. As one implementation, the light sensor may include an ambient light sensor and a proximity sensor, among which the ambient light sensor may adjust the brightness of the display panel 641 according to ambient lights. The proximity sensor may turn off the display panel 641 and/or backlight when the mobile phone reaches nearby the ear. As a kind of motion sensor, a accelerometer sensor can detect the magnitude of acceleration in all directions (typically three axes) and when the mobile phone is stationary, the accelerometer sensor can detect the magnitude and direction of gravity; the accelerometer sensor can also identify mobile-phone gestures related the applications (such as vertical and horizontal screen switch, related games, magnetometer attitude calibration), or the accelerometer sensor can be used for vibration-recognition related functions (such as a pedometer, percussion) and so on. The mobile phone can also be equipped with a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor and other sensors, and it will not be repeated herein.
  • The audio circuit 660, a speaker 661, and a microphone 662 may provide an audio interface between the user and the mobile phone. The audio circuit 660 may convert the received audio data into electrical signals and transfer the electrical signals to the speaker 661; thereafter the speaker 661 converts the electrical signals into sound signals to output. On the other hand, the microphone 662 converts the received sound signals into electrical signals, which will be received and converted into audio data by the audio circuit 660 to output. The audio data is then processed and transmitted by the processor 581 via a RF circuit 610 to another mobile phone for example, or, the audio data is output to the memory 620 for further processing.
  • Wi-Fi belongs to a short-range wireless transmission technology. With aid of the Wi-Fi module 670, the mobile phone may assist the user in E-mail receiving and sending, webpage browsing, access to streaming media and the like. Wi-Fi provides users with wireless broadband Internet access. Although the Wi-Fi module 670 is illustrated in FIG. 5, it should be understood that the Wi-Fi module 670 is not essential to the mobile phone and can be omitted according to actual needs without departing from the essential nature of the present disclosure.
  • The processor set 680 is a control center of the mobile phone, and is configured to connect all parts of the whole mobile phone by utilizing various interfaces and lines, to run or execute the software programs and/or the modules stored in the memory 620 and call data stored in the memory 620 to execute various functions and processing data of the terminal 500, so as to wholly monitor the mobile phone. In some implementations, the processor set 680 may include one or more processing cores. In some possible implementations, the processor set 680 may be integrated with an application processor and a modulation-demodulation processor, the application processor mainly processes an operating system, a user interface, an application program and the like, and the modulation-demodulation processor mainly processes wireless communication. It should be understood that the modulation-demodulation processor may not be integrated into the processor set 680.
  • The mobile phone also includes a power supply 690 (e.g., a battery) that supplies power to various components. For instance, the power supply 690 may be logically connected to the processor set 680 via a power management system to enable management of charging, discharging, and power consumption through the power management system.
  • Although not illustrated, the mobile phone may include a camera, a Bluetooth module, etc., and the disclosure will not elaborate herein.
  • In the implementation of the present disclosure, the processor set 680 included in the electronic device also has a function of controlling and performing a process of the method. The processor set 680 can be a multi-core processor.
  • It should be noted that, in the foregoing apparatus implementations, the included units are divided only according to functional logic, but are not limited to the foregoing division, as long as corresponding functions can be implemented. In addition, specific names of functional units are only for convenience for distinguishing from each other and are not intended to limit the scope of protection of the present disclosure.
  • In addition, It will be understood by those of ordinary skill in the art that all or a part of the various methods of the implementations described above may be accomplished by means of a program to instruct associated hardware, the program may be stored in a computer-readable memory, which may include a read-only memory (ROM), a disk or a compact disc (CD), and so on.

Claims (20)

What is claimed is:
1. A method for managing a central processing unit, comprising:
determining a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU);
counting a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition;
continuing to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; and
using the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
2. The method of claim 1, wherein the first prediction condition is a timer value and the second prediction condition is an interrupt moment.
3. The method of claim 2, wherein counting the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition comprises:
determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM;
determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU;
determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; and
counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
4. The method of claim 3, wherein counting the prediction accuracy rate comprises:
counting the prediction accuracy rate by determining situations other than inaccurate predictions as corresponding to accurate predictions.
5. The method of claim 2, wherein counting the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition comprises:
determining the prediction as an accurate prediction, based on a determination comprising one of:
a response time of the CPU in target LPM is longer than a sleep time of the CPU in the LPM and the timer value of the CPU;
the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; and
a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; and
counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
6. The method of claim 5, wherein counting the prediction accuracy rate comprises:
counting the prediction accuracy rate by determining situations corresponding to accurate predictions as an accurate set and determining situations that do not belong to the accurate set as corresponding to inaccurate predictions.
7. The method of claim 2, wherein counting the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition comprises:
determining a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM;
determining whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU;
determining the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU;
determining the prediction as an accurate prediction, based on a determination comprising one of:
the response time of the CPU in target LPM is longer than the sleep time of the CPU in the LPM and the timer value of the CPU;
the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; and
a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; and
counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
8. The method of claim 7, wherein counting the prediction accuracy rate comprises:
counting the prediction accuracy rate by determining situations corresponding to accurate predictions and inaccurate predictions as a full set and counting a proportion of the accurate predictions in the full set.
9. The method of claim 1, wherein the method for managing a CPU is applicable for managing a multi-core CPU.
10. The method of claim 1, wherein the LPM comprises at least one of: a waiting-for-interrupt mode, a suspending mode, and a power-down mode.
11. An electronic device, comprising:
at least one processor; and
a computer readable storage, coupled to the at least one processor and storing at least one computer executable instruction thereon, which when executed by the at least one processor, cause the at least one processor to:
determine a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU);
count a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition;
continue to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; and
use the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
12. The electronic device of claim 11, wherein the first prediction condition is a timer value and the second prediction condition is an interrupt moment.
13. The electronic device of claim 12, wherein the at least one processor caused to count the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is caused to:
determine a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM;
determine whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU;
determine the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU; and
count the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
14. The electronic device of claim 13, wherein the at least one processor caused to count the prediction accuracy rate is caused to:
count the prediction accuracy rate by determining situations other than inaccurate predictions as corresponding to accurate predictions.
15. The electronic device of claim 12, wherein the at least one processor caused to the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is caused to:
determine the prediction as an accurate prediction, based on a determination comprising one of:
a response time of the CPU in target LPM is longer than a sleep time of the CPU in the LPM and the timer value of the CPU;
the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; and
a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; and
count the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
16. The electronic device of claim 15, wherein the at least one processor caused to count the prediction accuracy rate is caused to:
count the prediction accuracy rate by determining situations corresponding to accurate predictions as an accurate set and determine situations that do not belong to the accurate set as corresponding to inaccurate predictions.
17. The electronic device of claim 12, wherein the at least one processor caused to count the prediction accuracy rate of predicting the CPU entering the LPM by using the first prediction condition is caused to:
determine a response time of the CPU in a target LPM, after determining the timer value as a prediction condition to predict the next wake-up moment of the CPU and the CPU entering the target LPM;
determine whether the response time of the CPU in the target LPM is between a sleep time of the CPU in the target LPM and the timer value of the CPU;
determine the prediction as an inaccurate prediction based on a determination that the response time of the CPU in the target LPM is between the sleep time of the CPU in the target LPM and the timer value of the CPU;
determine the prediction as an accurate prediction, based on a determination comprising one of:
a response time of the CPU in target LPM is longer than a sleep time of the CPU in the LPM and the timer value of the CPU;
the response time of the CPU in the target LPM is less than the sleep time of the CPU in the LPM and the timer value of the CPU; and
a difference between the sleep time of the CPU in the LPM and the timer value of the CPU is less than a pre-determined threshold; and
counting the prediction accuracy rate after predicting the next wake-up moment of the CPU by using the timer value as the prediction condition for a pre-determined number of times.
18. The electronic device of claim 17, wherein the at least one processor caused to count the prediction accuracy rate is caused to:
count the prediction accuracy rate by determining situations corresponding to accurate predictions and inaccurate predictions as a full set and count a proportion of the accurate predictions in the full set.
19. The electronic device of claim 11, wherein the processor is a multi-core CPU.
20. A non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to:
determine a first prediction condition and a second prediction condition, both the first prediction condition and the second prediction condition being factors that affect a wake-up moment of a central processing unit (CPU);
count a prediction accuracy rate of predicting the CPU entering a lower power mode (LPM) by using the first prediction condition;
continue to use the first prediction condition to predict a next wake-up moment of the CPU when the prediction accuracy rate is greater than a predetermined threshold; and
use the second prediction condition to predict the next wake-up moment of the CPU when the prediction accuracy rate is not greater than the predetermined threshold.
US16/122,400 2016-05-31 2018-09-05 Method for Managing Central Processing Unit and Related Products Abandoned US20190138081A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/245,366 US10444822B2 (en) 2016-05-31 2019-01-11 Method for managing central processing unit and related products

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201610380645.1 2016-05-31
CN201610380645.1A CN106055079B (en) 2016-05-31 2016-05-31 The management method and device of a kind of central processing unit
PCT/CN2017/086453 WO2017206858A1 (en) 2016-05-31 2017-05-27 Method for managing central processing unit and related products

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086453 Continuation WO2017206858A1 (en) 2016-05-31 2017-05-27 Method for managing central processing unit and related products

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/245,366 Continuation US10444822B2 (en) 2016-05-31 2019-01-11 Method for managing central processing unit and related products

Publications (1)

Publication Number Publication Date
US20190138081A1 true US20190138081A1 (en) 2019-05-09

Family

ID=57172476

Family Applications (2)

Application Number Title Priority Date Filing Date
US16/122,400 Abandoned US20190138081A1 (en) 2016-05-31 2018-09-05 Method for Managing Central Processing Unit and Related Products
US16/245,366 Active US10444822B2 (en) 2016-05-31 2019-01-11 Method for managing central processing unit and related products

Family Applications After (1)

Application Number Title Priority Date Filing Date
US16/245,366 Active US10444822B2 (en) 2016-05-31 2019-01-11 Method for managing central processing unit and related products

Country Status (4)

Country Link
US (2) US20190138081A1 (en)
EP (1) EP3401757B1 (en)
CN (1) CN106055079B (en)
WO (1) WO2017206858A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900910A (en) * 2021-12-08 2022-01-07 北京新唐思创教育科技有限公司 Application program monitoring method and device, storage medium and electronic equipment
US11385811B2 (en) 2020-02-10 2022-07-12 Samsung Electronics Co., Ltd. Storage device and method of operating the same
US20230368325A1 (en) * 2022-05-16 2023-11-16 Qualcomm Incorporated Technique to optimize power and performance of xr workload

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055079B (en) * 2016-05-31 2017-11-24 广东欧珀移动通信有限公司 The management method and device of a kind of central processing unit
CN108806673B (en) * 2017-05-04 2021-01-15 北京猎户星空科技有限公司 Intelligent device control method and device and intelligent device
EP3622398A1 (en) * 2017-05-10 2020-03-18 Telefonaktiebolaget LM Ericsson (PUBL) A communication node and method for handling communications between nodes of a system
CN111443792B (en) * 2019-01-16 2023-05-09 阿里巴巴集团控股有限公司 Power consumption control method and device of processor and electronic and storage device
US20230031388A1 (en) * 2021-07-30 2023-02-02 Advanced Micro Devices, Inc. On-demand ip initialization within power states

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725067B1 (en) * 2000-03-24 2004-04-20 International Business Machines Corporation Method and system for restarting a reference clock of a mobile station after a sleep period with a zero mean time error
US20100115309A1 (en) * 2007-03-26 2010-05-06 Freescale Semiconductor, Inc. Anticipation of power on of a mobile device
US20110161627A1 (en) * 2009-12-28 2011-06-30 Song Justin J Mechanisms to avoid inefficient core hopping and provide hardware assisted low-power state selection
US20150286271A1 (en) * 2014-04-03 2015-10-08 Samsung Electronics Co., Ltd. System and method for predicting a central processing unit idle pattern for power saving in a modem system on chip
US20150370311A1 (en) * 2014-06-20 2015-12-24 Advanced Micro Devices, Inc. Decoupled entry and exit prediction for power gating
US20160321183A1 (en) * 2015-05-01 2016-11-03 Advanced Micro Devices, Inc. Early cache prefetching in preparation for exit from idle mode

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017060B2 (en) * 2001-03-19 2006-03-21 Intel Corporation Power management system that changes processor level if processor utilization crosses threshold over a period that is different for switching up or down
US8024590B2 (en) * 2007-12-10 2011-09-20 Intel Corporation Predicting future power level states for processor cores
US8468377B2 (en) * 2008-10-22 2013-06-18 Microsoft Corporation Conserving power using predictive modelling and signaling
JP5324340B2 (en) * 2009-06-29 2013-10-23 ルネサスエレクトロニクス株式会社 Microcomputer
US9563250B2 (en) * 2009-12-16 2017-02-07 Qualcomm Incorporated System and method for controlling central processing unit power based on inferred workload parallelism
US9235251B2 (en) * 2010-01-11 2016-01-12 Qualcomm Incorporated Dynamic low power mode implementation for computing devices
US20130290758A1 (en) * 2010-01-11 2013-10-31 Qualcomm Incorporated Sleep mode latency scaling and dynamic run time adjustment
EP2798436B1 (en) * 2011-12-27 2017-05-17 INTEL Corporation Power management using reward-based sleep state selection
US8775838B2 (en) * 2012-02-01 2014-07-08 Texas Instruments Incorporated Limiting the number of unexpected wakeups in a computer system implementing a power-saving preemptive wakeup method from historical data
US8938631B2 (en) * 2012-06-30 2015-01-20 International Business Machines Corporation Energy efficient implementation of read-copy update for light workloads running on systems with many processors
US9442557B2 (en) * 2012-11-28 2016-09-13 Advanced Micro Devices, Inc. Using a linear prediction to configure an idle state of an entity in a computing device
US9110671B2 (en) * 2012-12-21 2015-08-18 Advanced Micro Devices, Inc. Idle phase exit prediction
CN103218033B (en) * 2013-03-28 2015-11-25 小米科技有限责任公司 A kind of method and device waking hardware device up
US9131445B2 (en) * 2013-05-15 2015-09-08 Nvidia Corporation Low power mode exit latency predictor for real-time asymmetric multiprocessor systems
CN104184907B (en) * 2013-05-27 2017-12-15 腾讯科技(深圳)有限公司 The detection method and terminal of the wake-up data of terminal application software in the standby state
US9851777B2 (en) * 2014-01-02 2017-12-26 Advanced Micro Devices, Inc. Power gating based on cache dirtiness
US9720487B2 (en) * 2014-01-10 2017-08-01 Advanced Micro Devices, Inc. Predicting power management state duration on a per-process basis and modifying cache size based on the predicted duration
US20160314024A1 (en) * 2015-04-24 2016-10-27 Mediatek Inc. Clearance mode in a multicore processor system
CN106055079B (en) * 2016-05-31 2017-11-24 广东欧珀移动通信有限公司 The management method and device of a kind of central processing unit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725067B1 (en) * 2000-03-24 2004-04-20 International Business Machines Corporation Method and system for restarting a reference clock of a mobile station after a sleep period with a zero mean time error
US20100115309A1 (en) * 2007-03-26 2010-05-06 Freescale Semiconductor, Inc. Anticipation of power on of a mobile device
US20110161627A1 (en) * 2009-12-28 2011-06-30 Song Justin J Mechanisms to avoid inefficient core hopping and provide hardware assisted low-power state selection
US20150286271A1 (en) * 2014-04-03 2015-10-08 Samsung Electronics Co., Ltd. System and method for predicting a central processing unit idle pattern for power saving in a modem system on chip
US20150370311A1 (en) * 2014-06-20 2015-12-24 Advanced Micro Devices, Inc. Decoupled entry and exit prediction for power gating
US20160321183A1 (en) * 2015-05-01 2016-11-03 Advanced Micro Devices, Inc. Early cache prefetching in preparation for exit from idle mode

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11385811B2 (en) 2020-02-10 2022-07-12 Samsung Electronics Co., Ltd. Storage device and method of operating the same
CN113900910A (en) * 2021-12-08 2022-01-07 北京新唐思创教育科技有限公司 Application program monitoring method and device, storage medium and electronic equipment
US20230368325A1 (en) * 2022-05-16 2023-11-16 Qualcomm Incorporated Technique to optimize power and performance of xr workload

Also Published As

Publication number Publication date
EP3401757A1 (en) 2018-11-14
CN106055079B (en) 2017-11-24
CN106055079A (en) 2016-10-26
EP3401757A4 (en) 2019-03-06
US10444822B2 (en) 2019-10-15
EP3401757B1 (en) 2023-02-15
US20190146573A1 (en) 2019-05-16
WO2017206858A1 (en) 2017-12-07

Similar Documents

Publication Publication Date Title
US10444822B2 (en) Method for managing central processing unit and related products
US11089551B2 (en) Method for power saving control and related products
US10671437B2 (en) Method for controlling application and related devices
WO2015035870A1 (en) Multiple cpu scheduling method and device
EP3467649B1 (en) Application control method and related device
US10719351B2 (en) Method for controlling states of processes and related device
US9405353B2 (en) Method and apparatus for controlling central processing unit
US10942644B2 (en) Method for sliding response acceleration and related products
CN107870874B (en) Data write-in control method and storage device
EP3843465B1 (en) Terminal device and positioning information processing method applied to terminal device
US20180365067A1 (en) Method for Assigning Installation Task and Terminal Device
WO2019072179A1 (en) Application running control method and apparatus
WO2017206903A1 (en) Application control method and related device
WO2020088650A1 (en) Application processor awakening method and device applied to mobile terminal
CN111132282B (en) Application processor awakening method and device applied to mobile terminal
WO2023004662A1 (en) Delay generation method and related device
EP3255543B1 (en) Process management method, apparatus and device

Legal Events

Date Code Title Description
AS Assignment

Owner name: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LT

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ZENG, YUANQING;REEL/FRAME:046799/0974

Effective date: 20180814

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE AFTER FINAL ACTION FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: ADVISORY ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION