WO2023004662A1 - Procédé de génération de retard et dispositif associé - Google Patents

Procédé de génération de retard et dispositif associé Download PDF

Info

Publication number
WO2023004662A1
WO2023004662A1 PCT/CN2021/109133 CN2021109133W WO2023004662A1 WO 2023004662 A1 WO2023004662 A1 WO 2023004662A1 CN 2021109133 W CN2021109133 W CN 2021109133W WO 2023004662 A1 WO2023004662 A1 WO 2023004662A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
duration
time information
power consumption
delay time
Prior art date
Application number
PCT/CN2021/109133
Other languages
English (en)
Chinese (zh)
Inventor
李鑫
李建林
胡瀛
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202180006498.0A priority Critical patent/CN115917470A/zh
Priority to PCT/CN2021/109133 priority patent/WO2023004662A1/fr
Publication of WO2023004662A1 publication Critical patent/WO2023004662A1/fr

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

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a delay generation method and related equipment.
  • Embodiments of the present application provide a delay generation method and related equipment, which can control a processor to generate high-precision and low-power consumption delays for application programs.
  • the first aspect of the present application discloses a method for controlling a processor, the method comprising: receiving delay time information of a user-mode thread from an application program, and the delay time information is used to indicate the first length of time that the user-mode thread needs to be delayed , the first duration is from the start moment to the target moment; according to the delay time information, the processor running the user mode thread is controlled to enter a low power consumption state within the first duration; wherein, in the first During the duration, the user state thread is maintained in a running state.
  • the low power consumption state includes a state of waiting for an event to wake up.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: if the first duration is longer than the The user mode thread executes the second duration of the system call, and controls the processor to enter the low power consumption state within the first duration according to the delay time information.
  • the method further includes: when the target time is reached, controlling the processor to exit the low power consumption state, wherein the processor continues to run the user mode thread.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: in the kernel mode, according to the delay time The time information controls the processor to enter the low power consumption state within the first duration.
  • the second aspect of the present application discloses a computer-readable storage medium, including computer instructions.
  • the computer or the processor is made to execute a processor control method, The method includes: receiving delay time information of a user-mode thread from an application program, the delay time information being used to indicate a first time length that the user-mode thread needs to delay, and the first time length is from a start time to a target time; Controlling the processor running the user-mode thread to enter a low power consumption state within the first duration according to the delay time information; wherein, within the first duration, the user-mode thread is maintained in a running state.
  • the low power consumption state includes a state of waiting for an event to wake up.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: if the first duration is longer than the The user mode thread executes the second duration of the system call, and controls the processor to enter the low power consumption state within the first duration according to the delay time information.
  • the method further includes: when the target time is reached, controlling the processor to exit the low power consumption state, wherein the processor continues to run the user mode thread.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: in the kernel mode, according to the delay time The time information controls the processor to enter the low power consumption state within the first duration.
  • a third aspect of the present application discloses an electronic device, and the electronic device may include a processor.
  • the processor is coupled with the memory, and may be used to execute the following method: receiving delay time information of a user-mode thread from an application program, where the delay time information is used to indicate a first duration that the user-mode thread needs to delay, and the first duration From the start moment to the target moment; according to the delay time information, the processor running the user state thread is controlled to enter a low power consumption state within the first duration; wherein, within the first duration, the user The state thread is maintained in the running state.
  • the electronic device further includes a memory.
  • Memory used to store computer programs (also called code, or instructions).
  • a processor for calling and running a computer program from a memory, so that the device installed with the system-on-a-chip executes any one of the first to second aspects, and any possible one of any of the first to second aspects method in the implementation.
  • the low power consumption state includes a state of waiting for an event to wake up.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: if the first duration is longer than the The user mode thread executes the second duration of the system call, and controls the processor to enter the low power consumption state within the first duration according to the delay time information.
  • the method further includes: when the target time is reached, controlling the processor to exit the low power consumption state, wherein the processor continues to run the user mode thread.
  • the controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: in the kernel mode, according to the delay time The time information controls the processor to enter the low power consumption state within the first duration.
  • the fourth aspect of the present application provides an electronic device, including: a processing circuit and an interface circuit; the interface circuit is used to couple with a memory outside the electronic device, and provide a communication interface for the processing circuit to access the memory;
  • the processing circuit is configured to execute program instructions in the memory, so as to implement the processor control method as described in the first aspect.
  • the fifth aspect of the present application provides a chip system, which is applied to electronic equipment; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory of the electronic device, And send a signal to the processor, the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the processor control method as described in the first aspect.
  • a sixth aspect of the present application discloses a computer program product.
  • the computer program product is run on a computer or a processor, the computer or processor is made to execute the processor control method as described in the first aspect.
  • the computer-readable storage medium of the second aspect, the electronic device of the third aspect and the fourth aspect, the chip system of the fifth aspect, and the computer program product of the sixth aspect are all It corresponds to the above-mentioned method in the first aspect, therefore, the beneficial effect it can achieve can refer to the beneficial effect in the corresponding method provided above, and will not be repeated here.
  • FIG. 1 is a schematic diagram of an application scenario of a processor control method provided by an embodiment of the present application.
  • Fig. 2 is a flow chart of a delay generation method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Application program refers to a computer program to complete one or more specific tasks.
  • the application program runs in the user space, can interact with the user, and can have a visual user interface.
  • OS Operating System
  • User mode and kernel mode The operating environment of the program is divided into user mode and kernel mode.
  • the application program runs at a low privilege level, and the operating environment is user mode, which cannot directly access the kernel space and computer hardware.
  • Applications can use kernel-mode functions, such as accessing computer hardware, through kernel interfaces such as system calls.
  • the operating environment of the operating system is the kernel mode.
  • User-mode thread and kernel-mode thread The application program starts running in the user-mode operating environment, and the process from running to the end is a user-mode process. Each user mode process can include several independent threads. Threads running in the user-mode operating environment are user-mode threads, and threads running in the kernel-mode operating environment are kernel-mode threads. Usually, user-mode threads are threads created when applications provide services, and kernel-mode threads are threads created when operating system kernels provide services.
  • FIG. 1 is a schematic diagram of an application scenario of a processor control method provided by an embodiment of the present application.
  • the processor control method provided by the embodiment of the present application is applied to an electronic device 10 .
  • the electronic device 10 includes an application/game (shown as Application/Game in the figure) 100, a shared library (shown as HRDelay Lib in the figure) 101 and an operating system kernel (shown as OS Kernel in the figure) 102.
  • Application/game 100 includes user mode thread 1001 .
  • Electronic devices 10 include mobile phones, earphones, smart watches, smart speakers, tablet computers, large-screen TVs, desktop computers, laptop computers, vehicle-mounted computers, and the like.
  • the operating system kernel 102 includes an Android kernel, a Linux kernel, a Unix kernel, an iOS kernel, and the like.
  • the applications/games 100 may collectively be referred to as applications.
  • the user-mode thread 1001 of the application/game 100 executes periodic tasks, such as periodically playing audio or periodically displaying images, and the user-mode thread 1001 needs to delay for a period of time to realize the periodic task.
  • the application/game 100 includes a user-mode thread with a period of 20ms, and the user-mode thread completes all the work of this period in 19ms in a certain period, and needs to delay 1ms before executing the task of the next period.
  • the application/game 100 may include a user-mode thread 1001 that executes a planned task (such as a task of playing an alarm on the hour), and the user-mode thread 1001 delays a period of time to implement the planned task.
  • a planned task such as a task of playing an alarm on the hour
  • the application/game 100 transmits the delay time information of the user mode thread 1001 to the operating system kernel 102 .
  • the delay time information is used to indicate the first length of time that the user mode thread 1001 needs to delay.
  • the first duration is the time length from the starting moment to the target moment.
  • the delay time information may be a first duration, and the application/game 100 directly transmits the first duration to the operating system kernel 102 .
  • the delay time information may be multiple time points, two time points determine a first duration, and each time point is a starting moment or a target moment of the first duration.
  • the application/game 100 may include an application or game using Unreal Engine (Unreal Engine, UE).
  • Unreal Engine Unreal Engine
  • UE Unreal Engine
  • existing applications or games using Unreal Engine in order to precisely control the start of frames, instead of using sleep to implement delay, loop is used to implement delay, resulting in increased processor load and significantly increased power consumption.
  • the shared library 101 (such as libhrdelay.so) is used to provide a delay interface (such as void Hrdelay (float delayS)) for the user-mode thread 1001, which is called by the user-mode thread 1001 to realize the delay function.
  • the delay interface is a kernel interface, and the delay interface includes, but is not limited to, a system call (syscall) interface, an input and output control (ioctl) interface, and a kernel state file node (sysfs) interface.
  • the delay interface may include an input parameter (for example, delayS) for transmitting the delay time information of the user mode thread 1001 .
  • the shared library 101 can be integrated into the service layer of the electronic device 10, allowing all application programs to use it.
  • the shared library 101 may be integrated into Huawei Mobile Service (HMS).
  • HMS Huawei Mobile Service
  • GMS Google Mobile Service
  • the shared library 101 can be integrated into the iOS core service layer (Core Services) or various development kits (Kit).
  • the operating system kernel 102 is used to receive the delay time information of the user mode thread 1001 from the application/game 100, and control the processor running the user mode thread 1001 to enter a low power consumption state within the first duration according to the received delay time information, thereby generating user The delay required by the state thread 1001. During the first duration, the user mode thread 1001 is maintained in the running state.
  • the operating system kernel 102 can control the processor to generate a high-precision and low-power consumption delay for the user mode thread 1001 .
  • Fig. 2 is a flow chart of the method provided by the embodiment of the present application.
  • the application program transmits the delay time information of the user mode thread to the operating system kernel.
  • the delay time information is used to indicate the first length of time that the user mode thread needs to be delayed.
  • the delay time information may include a start time and a target time, and the first duration is from the start time to the target time.
  • the delay time information may be a first duration, and the application directly transmits the first duration to the operating system kernel.
  • the delay time information may be multiple time points (for example, starting time and target time), and the application program transmits the multiple time points to the operating system kernel. The two time points determine a first duration, and each time point can be the starting moment or the target moment of the first duration.
  • the application program transmits the delay time information of the user state thread to the operating system kernel through a system call.
  • the application program passes the first time length that the user-mode thread needs to delay to the operating system kernel through a system call.
  • the logic for the user-mode thread to perform periodic tasks is as follows:
  • deltaTime targetTime - currentTime
  • Hrdelay is the application program to execute the system call
  • deltaTime is the first time length that the user mode thread needs to delay
  • the first time length is equal to the start time of the next period of the periodic task (ie targetTime) and the current time of the operating system ( That is, the time difference of currentTime), that is, the starting time of the first duration is the current time of the operating system
  • the target time is the starting time of the next cycle of the periodic task.
  • the first length of time that the user mode thread needs to delay may be equal to the time difference between the start time of the next period of the periodic task and the current time of the operating system.
  • the first length of time that user-mode threads need to delay can be other lengths of time.
  • the user-mode thread delays a fixed duration (for example, 10 seconds) each time it executes a task, and then executes the next task.
  • the first duration that the user-mode thread needs to delay may be a fixed duration.
  • the application program may transmit the delay time information of the user mode thread to the operating system kernel in other ways.
  • the delay time information of the user mode thread is passed to the operating system kernel through the input and output control (ioctl) or the kernel mode file node (sysfs).
  • the operating system kernel controls the processor running the user mode thread to enter a low power consumption state within a first duration according to the delay time information. During the first duration, the user mode thread is maintained in a running state.
  • the low power consumption state of the processor includes a wait for event wake-up (Wait for Event, WFE) state.
  • WFE wait for Event wake-up
  • the processor may be controlled to enter other low power consumption states, such as a Wait for Interrupt (WFI) state.
  • WFI Wait for Interrupt
  • the operating system kernel controls the processor running the user-mode thread to enter a low power consumption state, thereby reducing the power consumption caused by the processor being busy.
  • the electronic device includes a timer (timer), and the operating system kernel uses the timer to control the processor running the user-mode thread to enter a low power consumption state within a first duration and generate the delay required by the user-mode thread .
  • timer timer
  • the timer can periodically send an event (Event), and the event (Event) sent by the timer can wake up the processor in the WFE state.
  • the processor After the processor receives the event sent by the timer, it exits the WFE state, and the operating system kernel judges whether the processor has entered the WFE state for the first duration. If the first duration has not been reached, the processor is controlled to enter the WFE state again. If the delay time information includes the target time, the operating system kernel can judge whether the processor enters the WFE state to reach the target time, and if the target time is not reached, control the processor to enter the WFE state again.
  • the arch timer in the ARM architecture has the ability to periodically send events, which can wake up the processor in the WFE state.
  • the operating system kernel can use the arch timer to control the processor running the user-mode thread to enter the WFE state within the first period of time and generate a delay.
  • controlling the processor running the user mode thread to enter the low power consumption state within the first duration according to the delay time information includes: in the kernel mode, controlling the processor to enter the low power consumption state within the first duration according to the delay time information enter the low power state.
  • the application program transmits the delay time information of the user state thread to the operating system kernel through a system call.
  • the operating system kernel can determine whether the first duration is greater than the second duration for executing the system call (ie, the time consumed by the system call). If the first duration is longer than the second duration, the operating system kernel controls the delay generated by the processor running the user mode thread to be the first duration according to the delay time information, and the processor enters a low power consumption state within the first duration.
  • the operating system kernel may calculate the time difference between the first duration and the second duration, update the first duration to the time difference between the first duration and the second duration, and control the processor running the user-mode thread to enter within the updated first duration.
  • a low-power state in which case the resulting delay is the first duration after the update.
  • the target time may be updated according to the second time length, and the updated target time is equal to the original target time minus the second time length.
  • the delay can be directly generated in the user mode (for example, through a loop). Otherwise, if the first duration that the user mode thread needs to delay is greater than the second duration of the system call, calculate the time difference between the first duration and the second duration, update the first duration to the time difference between the first duration and the second duration, and the operating system kernel Controls the delay generated by the processor running the user-mode thread as the first duration after the update, improving the accuracy of the delay.
  • the average time consumption of different system calls may be calculated, and the average time consumption of different system calls may be taken as the second duration.
  • the user mode thread may call the delay interface (such as Hrdelay) multiple times, calculate the maximum time for calling the delay interface, and use the maximum time for calling the delay interface as the second duration.
  • the delay interface such as Hrdelay
  • the operating system kernel controls the processor to exit the low power consumption state, and the processor continues to run user mode threads.
  • the operating system kernel controls the processor to exit the low power consumption state (such as the WFE state), and the processor continues to run user mode threads.
  • the operating system kernel controls the processor to exit the low-power state, and the processor continues to run the user-mode thread.
  • the existing technology can generate delay through sleep and delay. Assume that there is a user-mode thread running at a period of 20ms. The user-mode thread executes 19ms to complete all the work of this period. It needs to delay 1ms before executing the tasks of the next period. At this time, the application can call the sleep function to release the processor through the operating system kernel , the operating system kernel actively wakes up the user-mode thread after 1ms; or, use the delay method to continuously occupy the processor, and directly execute the next week's tasks after 1ms expires.
  • Periodic tasks can be implemented through sleep and delay.
  • the sleep method implements periodic threads, and the thread enters the sleep state and needs to be woken up and scheduled by the OS again. This method needs to interact with the OS kernel, and there are many unreliable factors.
  • the thread delay time may exceed 1ms, causing the start time of the next week to be later than the set time.
  • the delay method implements periodic threads, and the threads remain in the running state. After the delay expires, the next week's tasks can be directly executed. However, long delays cause the processor to idle and increase the power consumption of the processor.
  • the precision of the delay generated by the application program can be improved, and the power consumption of the processor can be reduced.
  • Fig. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 30 may include: a radio frequency (Radio Frequency, RF) circuit 301, a memory 302, an input unit 303, a display unit 304, a sensor 305, an audio circuit 306, a Wi-Fi module 307, a processor 308 and Power supply 309 and other components.
  • RF Radio Frequency
  • FIG. 3 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
  • the RF circuit 301 can be used to send and receive information or receive and send signals during a call. In particular, after receiving the downlink information from the base station, it is transferred to the processor 308 for processing; in addition, the uplink data is sent to the base station.
  • the RF circuit 301 includes, but is not limited to: an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like.
  • the memory 302 can be used to store software programs and modules, and the processor 308 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 302 .
  • the memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of electronic devices (such as audio data, phonebook, etc.), etc.
  • the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the input unit 303 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the input unit 303 may include a touch panel 3031 and other input devices 3032 .
  • the touch panel 3031 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 3031 or near the touch panel 3031 operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 3031 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 308, and receive and execute the commands sent by the processor 308.
  • the touch panel 3031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 303 may also include other input devices 3032 .
  • other input devices 3032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 304 may be used to display information input by or provided to the user and various menus of the electronic device.
  • the display unit 304 may include a display panel 3041.
  • the display panel 3041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 3031 can cover the display panel 3041. When the touch panel 3031 detects a touch operation on or near it, it sends it to the processor 308 to determine the type of the touch event, and then the processor 308 according to the touch event The type provides a corresponding visual output on the display panel 3041.
  • the touch panel 3031 and the display panel 3041 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel 3031 and the display panel 3041 can be integrated. And realize the input and output function of electronic equipment.
  • the electronic device may also include at least one sensor 305, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3041 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 3041 and the display panel 3041 when the electronic device moves to the ear. / or backlighting.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of electronic equipment (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; in addition, electronic devices can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors. This will not be repeated here.
  • the audio circuit 306, the speaker 3061, and the microphone 3062 can provide an audio interface between the user and the electronic device.
  • the audio circuit 306 can transmit the electrical signal converted from the received audio data to the loudspeaker 3061, and the loudspeaker 3061 converts it into a sound signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 308, and sent to another electronic device through the RF circuit 301, or the audio data is output to the memory 302 for further processing.
  • Wi-Fi is a short-distance wireless transmission technology.
  • the electronic device 30 can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 307, which provides users with wireless broadband Internet access.
  • FIG. 3 shows the Wi-Fi module 307, it can be understood that it is not a necessary component of the electronic device, and can be omitted as needed without changing the essence of the invention.
  • the processor 308 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 302, and calling data stored in the memory 302 , to perform various functions of the electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 308 may include one or more processing units; preferably, the processor 308 may integrate an application processor and a modem, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem mainly processes Wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 308 .
  • the electronic device also includes a power supply 309 (such as a battery) for supplying power to various components.
  • a power supply 309 (such as a battery) for supplying power to various components.
  • the power supply can be logically connected to the processor 308 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. .
  • the electronic device may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the electronic device described in FIG. 3 may be used to implement part or all of the processes in the method embodiment of the present application.
  • details please refer to the relevant description in the embodiment shown in FIG. 2 above, and details are not repeated here.
  • This embodiment also provides an electronic device, which includes a processor and a memory, where the memory is used to store program instructions, and the processor is used to execute the program instructions in the memory, so as to implement the processor control method in the above embodiments.
  • This embodiment also provides an electronic device, the electronic device includes a processing circuit and an interface circuit; the interface circuit is used to couple with the memory outside the electronic device, and provides a communication interface for the processing circuit to access the memory; the processing circuit is used to execute the Program instructions, so as to implement the processor control method in the above-mentioned embodiments.
  • the electronic device provided in the embodiment of the present application may be a wireless communication device, that is, a computer device supporting a wireless communication function.
  • the electronic device may be a terminal such as a smart phone, or a radio access network device such as a base station.
  • a system chip can also be called a system on chip (system on chip, SoC), or simply a SoC chip.
  • Communication chips may include baseband processing chips and radio frequency processing chips. Baseband processing chips are also sometimes referred to as modems or baseband chips.
  • RF processing chips are sometimes also referred to as RF transceivers or RF chips. In physical implementation, part or all of the chips in the communication chip can be integrated inside the SoC chip.
  • the baseband processing chip is integrated in the SoC chip, and the radio frequency processing chip is not integrated with the SoC chip.
  • the interface circuit may be a radio frequency processing chip in the wireless communication device, and the processing circuit may be a baseband processing chip in the wireless communication device.
  • This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device is made to execute the above-mentioned relevant method steps, so as to realize the above-mentioned embodiment
  • the processor control method in .
  • the embodiment also provides a computer program product.
  • the computer program product includes a computer program (also referred to as code, or instruction).
  • code also referred to as code, or instruction.
  • the electronic device executes the above-mentioned related steps to realize The processor control method in the above embodiments.
  • This embodiment also provides a chip system, where the chip system includes a processor.
  • the processor is coupled with the memory, and is used to execute the processor control method in the foregoing embodiments.
  • the chip system further includes a memory.
  • Memory is used to store computer programs (also called code, or instructions).
  • the processor is used to call and run the computer program from the memory, so that the device installed with the system-on-a-chip executes the processor control method in the above-mentioned embodiments.
  • the electronic equipment, computer-readable storage medium, computer program product, and chip system provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that it can achieve can refer to the above-mentioned provided The beneficial effects of the corresponding method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

La présente demande concerne un procédé de génération de retard et un dispositif associé. Le procédé consiste : à recevoir des informations de temps de retard d'un fil d'état d'utilisateur en provenance d'un programme d'application, les informations de temps de retard étant utilisées pour indiquer une première durée pendant laquelle le fil d'état d'utilisateur doit être retardé, et la première durée allant d'un moment de démarrage à un moment cible; et en fonction des informations de temps de retard, à commander un processeur, qui exécute le fil d'état d'utilisateur, pour entrer dans un état de faible puissance pendant la première durée, le fil d'état d'utilisateur étant maintenu dans un état de fonctionnement pendant la première durée. Au moyen de la présente demande, un processeur peut être commandé pour générer un retard de haute précision et de faible puissance pour un programme d'application.
PCT/CN2021/109133 2021-07-29 2021-07-29 Procédé de génération de retard et dispositif associé WO2023004662A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180006498.0A CN115917470A (zh) 2021-07-29 2021-07-29 延迟产生方法及相关设备
PCT/CN2021/109133 WO2023004662A1 (fr) 2021-07-29 2021-07-29 Procédé de génération de retard et dispositif associé

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/109133 WO2023004662A1 (fr) 2021-07-29 2021-07-29 Procédé de génération de retard et dispositif associé

Publications (1)

Publication Number Publication Date
WO2023004662A1 true WO2023004662A1 (fr) 2023-02-02

Family

ID=85086009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109133 WO2023004662A1 (fr) 2021-07-29 2021-07-29 Procédé de génération de retard et dispositif associé

Country Status (2)

Country Link
CN (1) CN115917470A (fr)
WO (1) WO2023004662A1 (fr)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272730B1 (en) * 2003-07-31 2007-09-18 Hewlett-Packard Development Company, L.P. Application-driven method and apparatus for limiting power consumption in a processor-controlled hardware platform
CN101501636A (zh) * 2006-08-16 2009-08-05 高通股份有限公司 用于基于动态可改变延迟来执行处理器指令的方法和设备
US20110246800A1 (en) * 2010-03-31 2011-10-06 International Business Machines Corporation Optimizing power management in multicore virtual machine platforms by dynamically variable delay before switching processor cores into a low power state
CN103814342A (zh) * 2011-09-19 2014-05-21 高通股份有限公司 多核心计算装置的动态睡眠
US20140362768A1 (en) * 2013-06-09 2014-12-11 Apple Inc. Non-Waking Push Notifications
US20170301281A1 (en) * 2014-09-30 2017-10-19 Microsoft Technology Licensing, Llc Displaying content on a display in power save mode
CN108052196A (zh) * 2017-12-29 2018-05-18 北京元心科技有限公司 功耗控制方法、装置及终端设备
CN109213577A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种线程睡眠的方法、装置及计算机设备
CN110687998A (zh) * 2019-09-18 2020-01-14 华为技术有限公司 一种应用管理方法及装置
CN111443792A (zh) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 处理器的功耗控制方法、装置以及电子和存储设备

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272730B1 (en) * 2003-07-31 2007-09-18 Hewlett-Packard Development Company, L.P. Application-driven method and apparatus for limiting power consumption in a processor-controlled hardware platform
CN101501636A (zh) * 2006-08-16 2009-08-05 高通股份有限公司 用于基于动态可改变延迟来执行处理器指令的方法和设备
US20110246800A1 (en) * 2010-03-31 2011-10-06 International Business Machines Corporation Optimizing power management in multicore virtual machine platforms by dynamically variable delay before switching processor cores into a low power state
CN103814342A (zh) * 2011-09-19 2014-05-21 高通股份有限公司 多核心计算装置的动态睡眠
US20140362768A1 (en) * 2013-06-09 2014-12-11 Apple Inc. Non-Waking Push Notifications
US20170301281A1 (en) * 2014-09-30 2017-10-19 Microsoft Technology Licensing, Llc Displaying content on a display in power save mode
CN109213577A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种线程睡眠的方法、装置及计算机设备
CN108052196A (zh) * 2017-12-29 2018-05-18 北京元心科技有限公司 功耗控制方法、装置及终端设备
CN111443792A (zh) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 处理器的功耗控制方法、装置以及电子和存储设备
CN110687998A (zh) * 2019-09-18 2020-01-14 华为技术有限公司 一种应用管理方法及装置

Also Published As

Publication number Publication date
CN115917470A (zh) 2023-04-04

Similar Documents

Publication Publication Date Title
WO2017206916A1 (fr) Procédé de détermination d'une configuration d'exécution de noyau dans un processeur et produit correspondant
WO2016150331A1 (fr) Procédé et dispositif d'exploitation d'un client de jeu
WO2018219104A1 (fr) Procédé de commande d'économie d'énergie et produit associé
US10444822B2 (en) Method for managing central processing unit and related products
WO2017206902A1 (fr) Procédé de commande d'application et dispositif associé
WO2017206915A1 (fr) Procédé de détermination de configuration d'exécution de noyau dans un processeur et produit associé
CN103593155A (zh) 显示帧生成方法和终端设备
EP3663925B1 (fr) Procédé de traitement d'anomalie d'affichage de rafraîchissement et terminal
CN107590057B (zh) 冻屏监测与解决方法、移动终端及计算机可读存储介质
WO2015035870A1 (fr) Procédé et dispositif d'ordonnancement de multiples uct
WO2018095130A1 (fr) Procédé et système de détermination de durée de diffusion en continu en direct
CN106406924B (zh) 应用程序启动和退出画面的控制方法、装置及移动终端
US10754684B2 (en) Method for controlling process and related device
US11381100B2 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
WO2017206918A1 (fr) Procédé d'accélération du réveil d'un terminal et produit associé
WO2017206853A1 (fr) Procédé d'accélération de réponse de glissement et produits correspondants
US20230092801A1 (en) Power display method and apparatus, and electronic device
CN107438999A (zh) 进入省电模式的方法、退出省电模式的方法、装置及移动终端
WO2017049552A1 (fr) Dispositif de terminal et procédé de commande de charge
WO2017206860A1 (fr) Procédé de traitement de terminal mobile et terminal mobile
CN110543333B (zh) 针对处理器的休眠处理方法、装置、移动终端和存储介质
CN107193551B (zh) 一种生成图像帧的方法和装置
CN107404569B (zh) 一种系统控制方法、终端和计算机可读存储介质
WO2022082951A1 (fr) Procédé de réglage de fréquence d'images, appareil, support d'informations et terminal mobile
CN111083285A (zh) 一种移动终端通话定位系统和方法

Legal Events

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

Ref document number: 21951272

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE