Computing power allocation method and apparatus, and electronic device

By limiting and allocating the CPU, GPU, and DDR computing power of electronic devices in frequency-limited scenarios, and combining device temperature and frequency-boosting scenarios, the computing power allocation is optimized, which solves the negative impact of computing power increase on device status and improves user experience.

WO2025261262A1PCT designated stage Publication Date: 2025-12-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/100825
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-20
Filing Date
2025-06-13
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

How can we balance power consumption and temperature when improving the computing power of electronic devices to avoid negative impacts on user experience?

Method used

In frequency-limited scenarios, the computing power of the CPU, GPU, and DDR of electronic devices is restricted. In frequency-increase scenarios that are perceptible to users, the computing power allocation strategy is determined based on the device temperature and the frequency-increase scenario to increase the computing power to an appropriate value, ensuring that the device power consumption and temperature are not affected.

Benefits of technology

To improve the user experience without affecting device power consumption and temperature, priority should be given to meeting the computing power needs of high-sensing scenarios that are closely related to user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025100825_26122025_PF_FP_ABST
    Figure CN2025100825_26122025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a computing power allocation method and apparatus, and an electronic device. The method is applied to the electronic device. The method comprises: when a first condition is satisfied, limiting a first parameter of the electronic device to a first value, wherein the first parameter comprises at least one of computing power of a central processing unit (CPU), computing power of a graphics processing unit (GPU), and computing power of a double data rate (DDR) synchronous dynamic random access memory, and the first condition comprises at least one of the following: a device temperature reaching a preset first threshold, a device temperature change rate reaching a preset second threshold, and device power consumption reaching a preset third threshold; and in a frequency boosting scenario, increasing the first parameter to a second value on the basis of a first strategy of computing power allocation, wherein the second value is greater than the first value, and the frequency-boosting scenario is a user-perceptible scenario. The computing power allocation method and apparatus, and the electronic device of the present application can improve user experience without affecting the device power consumption or device temperature.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, devices and electronic equipment for allocating computing power

[0001] This application claims priority to Chinese Patent Application No. 202410801177.5, filed on June 20, 2024, entitled "Method, Apparatus and Electronic Device for Allocating Computing Power", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic devices, and more specifically, to a method, apparatus and electronic device for allocating computing power. Background Technology

[0003] Mobile devices, personal computers, tablets, and other electronic devices can provide users with various services such as application launch and interface switching. To improve the user experience, the performance of electronic devices can be optimized by increasing computing power. However, increasing computing power can lead to problems such as high power consumption or overheating, which can negatively impact the performance of electronic devices.

[0004] Therefore, how to balance computing power with the state of electronic devices, and ensure the user experience without affecting the power consumption or temperature of electronic devices, is a problem that urgently needs to be solved. Summary of the Invention

[0005] This application provides a method, apparatus, and electronic device for allocating computing power. This method can improve the user experience without affecting the power consumption or temperature of the electronic device.

[0006] In a first aspect, a method for allocating computing power is provided. This method is applied to an electronic device and includes: when a first condition is met, limiting a first parameter of the electronic device to a first value, the first parameter including at least one of the computing power of a central processing unit (CPU), the computing power of a graphics processing unit (GPU), and the computing power of a double data rate synchronous dynamic random access memory (DDR); the first condition including at least one of the following: the device temperature reaches a preset first threshold, the device temperature change rate reaches a preset second threshold, and the device power consumption reaches a preset third threshold; in a frequency increase scenario, increasing the first parameter to a second value according to a first strategy for allocating computing power, the second value being greater than the first value, and the frequency increase scenario being a user-perceptible scenario.

[0007] It should be noted that the first parameter includes the computing power of the processor or memory, which can be the processor's or memory's ability to perform computational tasks. Limiting computing power may include display frequency. The first threshold, second threshold, and third threshold can be system presets or user-defined; this application does not impose any limitations on these. The first parameter may be related to the computing power capability of the electronic device, which is the normal computing power requirement of the electronic device under non-frequency-limited scenarios. The first condition is a frequency-limiting condition; when the electronic device meets the frequency-limiting condition, the computing power of the processor or memory in the electronic device can be limited.

[0008] Based on the above scheme, when electronic devices meet the frequency limiting conditions, the computing power of electronic devices is limited. Furthermore, in scenarios where the frequency is increased in a way that is perceptible to the user, the computing power of electronic devices can be increased according to the computing power allocation strategy, thereby improving the user experience without affecting the power consumption and temperature of the devices.

[0009] In conjunction with the first aspect, in some implementations of the first aspect, the first strategy is related to at least one of the following: the device temperature, the frequency boosting scenario, and the computing power of the electronic device.

[0010] For example, the computing power of an electronic device is the normal computing power requirement of the electronic device in a non-frequency-limited scenario, which is related to the computing power of the electronic device's CPU, GPU, and DDR.

[0011] In other words, the first strategy can be determined based on at least one of the following: device temperature, frequency boosting scenario, and computing power of electronic device.

[0012] In conjunction with the first aspect, in some implementations of the first aspect, increasing the first parameter to a second value according to the first strategy for allocating computing power includes: determining the first strategy based on the device temperature; and increasing the first parameter to a second value according to the first strategy.

[0013] For example, taking the first strategy as a pre-set example. Based on the current "10003" frequency increase scenario, the corresponding computing power allocation strategy is determined to be "4001". Further, based on the device temperature, the value of the first parameter after allocation in the computing power allocation strategy "4001" is determined to be the second value.

[0014] It should be noted that the device temperature can also be determined first, and then the first strategy can be determined based on the frequency increase scenario. This application embodiment does not limit this. In the method of allocating computing power provided in this application, the computing power allocation strategy can be determined based on one or more of the following: device temperature, frequency increase scenario, computing power capability of electronic device, memory bandwidth, and system resources.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, the frequency increase scenario includes a first frequency increase scenario and a second frequency increase scenario, wherein increasing the first parameter to a second value according to the first strategy for allocating computing power includes: determining a second strategy for allocating computing power according to the first frequency increase scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; and determining a third strategy for allocating computing power according to the second frequency increase scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value.

[0016] It should be noted that the computing power allocation strategy may differ depending on the frequency increase scenario.

[0017] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: increasing the first parameter to the largest of the third and fourth values.

[0018] As can be seen, if multiple frequency increase scenarios are triggered simultaneously, the computing power allocation strategy can be determined by comprehensively considering multiple frequency increase scenarios and device temperature.

[0019] It should be noted that when multiple frequency increase scenarios are triggered simultaneously, performance should be given priority in determining the computing power allocation strategy.

[0020] Based on the above scheme, when multiple frequency increase scenarios are triggered simultaneously, and the computing power allocation strategies for different frequency increase scenarios are different, device performance can be given priority, and the computing power can be increased to the maximum value to achieve better device performance.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the frequency increase scenario includes a first frequency increase scenario and a second frequency increase scenario, wherein increasing the first parameter to a second value according to the first strategy for allocating computing power includes: determining a second strategy for allocating computing power based on the first frequency increase scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; determining a third strategy for allocating computing power based on the second frequency increase scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value; and increasing the first parameter to the minimum value among the third value and the fourth value.

[0022] It should be noted that when multiple frequency increase scenarios are triggered simultaneously, power consumption should be taken into account first to determine the computing power allocation strategy.

[0023] Based on the above scheme, when multiple frequency increase scenarios are triggered simultaneously, and the computing power allocation strategies for different frequency increase scenarios are different, device power consumption can be given priority, and the computing power can be increased to the minimum value to ensure device power consumption.

[0024] In conjunction with the first aspect, in some implementations of the first aspect, increasing the first parameter to a second value according to the first strategy for allocating computing power in a frequency increase scenario includes: increasing the first parameter to the second value according to the first strategy in a first frequency increase scenario; the method further includes: increasing the first parameter to the second value according to the first strategy in a second frequency increase scenario.

[0025] It should be noted that the computing power allocation strategy can be the same in different frequency increase scenarios.

[0026] In conjunction with the first aspect, in some implementations of the first aspect, the first strategy is stored in the electronic device in a first form, which includes one of the following: field, table, bytecode, or text.

[0027] It should be noted that the first strategy can be pre-set and stored in an electronic device in a certain form, or an algorithm model can be pre-trained to dynamically determine the first strategy.

[0028] In conjunction with the first aspect, in some implementations of the first aspect, the frequency increase scenario includes at least one of the following: call service scenario, interface switching scenario, audio and image display scenario, and information input scenario.

[0029] Secondly, an apparatus for allocating computing power is provided. The apparatus includes: a processing unit configured to limit a first parameter of the apparatus to a first value when a first condition is met, the first parameter including at least one of the computing power of a central processing unit (CPU), the computing power of a graphics processing unit (GPU), and the computing power of a double data rate synchronous dynamic random access memory (DDR); the first condition including at least one of the following: the device temperature reaches a preset first threshold, the device temperature change rate reaches a preset second threshold, and the device power consumption reaches a preset third threshold; the processing unit is further configured to increase the first parameter to a second value according to a first strategy for allocating computing power in a frequency increase scenario, the second value being greater than the first value, and the frequency increase scenario being a user-perceptible scenario.

[0030] In conjunction with the second aspect, in some implementations of the second aspect, the first strategy is related to at least one of the following: the device temperature, the frequency boosting scenario, and the computing power of the device.

[0031] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is specifically configured to determine the first strategy based on the device temperature; and increase the first parameter to a second value based on the first strategy.

[0032] In conjunction with the second aspect, in some implementations of the second aspect, the frequency increase scenario includes a first frequency increase scenario and a second frequency increase scenario, wherein the processing unit is specifically used to determine a second strategy for allocating computing power based on the first frequency increase scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; the processing unit is specifically used to determine a third strategy for allocating computing power based on the second frequency increase scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value.

[0033] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is also configured to increase the first parameter to the largest of the third and fourth values.

[0034] In conjunction with the second aspect, in some implementations of the second aspect, the frequency increase scenario includes a first frequency increase scenario and a second frequency increase scenario. Specifically, the processing unit is used to determine a second strategy for allocating computing power based on the first frequency increase scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; the processing unit is also used to determine a third strategy for allocating computing power based on the second frequency increase scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value; and to increase the first parameter to the minimum value between the third and fourth values.

[0035] In conjunction with the second aspect, in some implementations of the second aspect, the processing unit is specifically used to increase the first parameter to the second value according to the first strategy in the first frequency increase scenario; and is also used to increase the first parameter to the second value according to the first strategy in the second frequency increase scenario.

[0036] In conjunction with the second aspect, in some implementations of the second aspect, the first strategy is stored in the device in a first form, which includes one of the following: field, table, bytecode, or text.

[0037] In conjunction with the second aspect, in some implementations of the second aspect, the frequency increase scenario includes at least one of the following: call service scenario, interface switching scenario, audio and image display scenario, and information input scenario.

[0038] Thirdly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof.

[0039] Fourthly, an apparatus for allocating computing power is provided, comprising: a processor coupled to a memory for storing a computer program, the processor for running the computer program, such that the apparatus for allocating computing power performs the methods described in the first aspect and any possible implementation thereof.

[0040] In conjunction with the fourth aspect, some implementations of the fourth aspect also include one or more of the memory and the transceiver, the transceiver being used to receive and / or transmit signals.

[0041] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a computer, causes the computer to implement the methods described in the first aspect and any possible implementation thereof.

[0042] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the methods described in the first aspect and any possible implementation thereof.

[0043] In a seventh aspect, a chip is provided, the chip including a processor and a data interface, the processor reading instructions stored in a memory through the data interface to execute the methods described in the first aspect and any possible implementation thereof.

[0044] In conjunction with the seventh aspect, in one possible implementation, the processor is coupled to the memory via an interface.

[0045] In conjunction with the seventh aspect, in one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored. Attached Figure Description

[0046] Figure 1 is a schematic diagram of the structure of an electronic device.

[0047] Figure 2 is a software structure block diagram of the electronic device provided in an embodiment of this application.

[0048] Figure 3 is a schematic flowchart of a computing power allocation method provided in an embodiment of this application.

[0049] Figure 4 is a schematic diagram of a device for allocating computing power according to an embodiment of this application.

[0050] Figure 5 is a schematic flowchart of a computing power allocation method provided in an embodiment of this application. Detailed Implementation

[0051] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0052] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0053] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0054] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or music player, such as a mobile phone, tablet computer, wearable electronic device with wireless communication capabilities (such as a smartwatch, smart glasses, headphones), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, devices equipped with Harmony. Alternatively, it could be a portable electronic device with another operating system. The aforementioned portable electronic device could also be other portable electronic devices, such as laptops. It should also be understood that in some other embodiments, the aforementioned electronic device may not be a portable electronic device, but rather a desktop computer, smart screen, smart home device, smart industrial device, etc.

[0055] For example, Figure 1 shows a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0057] Processor 110 may include one or more processing units, such as a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0058] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0059] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0060] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0061] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0062] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0063] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel.

[0064] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0065] The ISP is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye.

[0066] Camera 193 is used to capture still images or videos. An object passes through the lens to generate an optical image that is projected onto a photosensitive element.

[0067] A digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals.

[0068] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs.

[0069] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0070] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0071] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area.

[0072] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0073] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.

[0074] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0075] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0076] Microphone 170C is used to convert sound signals into electrical signals.

[0077] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals.

[0078] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0079] The 180K touch sensor, also known as a "touch panel," is used to detect touch operations applied to or near it.

[0080] Figure 2 is a software structure block diagram of an electronic device 100 according to an embodiment of this application. Taking the Android system as an example, the layered architecture divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0081] As shown in Figure 2, the application layer can include camera, settings, skin modules, user interface (UI), and third-party applications. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0082] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer may include some predefined functions.

[0083] As shown in Figure 2, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0084] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0085] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views.

[0086] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0087] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0088] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.

[0089] The runtime includes the core libraries and the virtual machine. The Android runtime is responsible for the calls and management of the Android system.

[0090] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0091] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0092] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0093] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0094] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0095] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0096] A 2D graphics engine is a graphics engine for 2D drawing.

[0097] In addition, the system library may also include status monitoring service modules, such as a physical status recognition module for analyzing and recognizing user gestures; and a sensor service module for monitoring sensor data uploaded by various sensors at the hardware layer to determine the physical status of the electronic device 100.

[0098] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0099] The hardware layer can include various types of sensors, such as those shown in Figure 1.

[0100] Based on the electronic devices described in Figures 1 and 2 above, in the embodiments of this application, the electronic devices may be, for example, mobile terminals, personal computers, tablet computers, smartwatches, smart glasses, headphones, smart screens, smart home devices, smart industrial equipment, etc.

[0101] With the development of science and technology, electronic devices can provide users with functions in scenarios where user experience is highly perceptible, such as audio and video playback, data display, and user interaction. In these scenarios, device performance can be optimized by increasing computing power, thereby improving the user experience. However, increasing computing power also affects the state of electronic devices, including power consumption and temperature. As users continuously operate electronic devices, excessive power consumption or temperature can occur, triggering frequency throttling. Frequency throttling limits computing power, impacting device performance and consequently affecting the user experience.

[0102] When electronic devices are operating in critical scenarios, even under conditions of excessively high device temperatures, the computing power requirements of these services will be guaranteed to prevent frequency throttling from affecting their performance. However, this will cause the device temperature to continue to rise, posing a risk to the use of the electronic devices.

[0103] Therefore, this application provides a method, apparatus, and electronic device for allocating computing power. In scenarios where the frequency of an electronic device is limited, computing power is allocated to prioritize the computing power needs of high-sensing scenarios that are closely related to user experience, ensuring user experience without affecting the state of the electronic device.

[0104] It should be noted that frequency limiting scenarios refer to scenarios where the frequency of each processor or memory in an electronic device is restricted. The reason for frequency limiting may be that the device power consumption is too high, the device temperature is too high, or the device temperature rise rate is too fast. Frequency limiting can achieve the purpose of controlling device power consumption and device temperature, and protecting the safe operation of electronic devices.

[0105] The processor or memory frequency can be understood as the processor's or memory's main frequency (also called clock frequency), used to indicate the processing speed of the processor or memory. Limiting the processor or memory frequency can be understood as setting the processor or memory's main frequency to a specific value or range. Generally speaking, the higher the frequency, the stronger the computing power and the faster the instructions can be executed.

[0106] The computing power of an electronic device refers to its ability to perform computational tasks, which is influenced by various factors, including processor performance and memory performance. In frequency-limited scenarios for electronic devices, the restriction on frequency points is essentially a restriction on computing power.

[0107] It should be noted that in frequency-limiting scenarios, the frequency of the processor or memory can be restricted. For example, the frequency of the central processing unit (CPU), graphics processing unit (GPU), or double data rate synchronous dynamic random-access memory (DDR DRAM) can be restricted. In the method of allocating computing power provided in the embodiments of this application, the allocation of the CPU frequency will be described as an example. Of course, the method of allocating computing power provided in this application can also be applied to the allocation of the frequency of GPU, DDR, or other processors, and this application does not limit it in this regard.

[0108] In the method for allocating computing power provided in this application embodiment, before allocating computing power to an electronic device, it is necessary to determine whether the electronic device meets the triggering conditions for allocating computing power. These triggering conditions are related to a frequency-limiting scenario, the current device temperature, or a frequency-increasing scenario. In one possible implementation, computing power can be allocated to the electronic device when it is in a frequency-limiting scenario and the current device temperature reaches a certain threshold. In another possible implementation, computing power can be allocated to the electronic device when it is in both a frequency-limiting and frequency-increasing scenario. In yet another possible implementation, computing power can be allocated to the electronic device when it is in both a frequency-limiting and frequency-increasing scenario. Specifically, a frequency-limiting scenario can be triggered when the device temperature is too high, the device temperature change rate is too fast, or the device power consumption is too high.

[0109] Frequency-boosting scenarios can be user-perceptible, highly relevant to user operations, or have high business priority. Examples include functions provided to the user by electronic devices in the foreground, such as emergency calls, interface switching, displaying images and videos, and playing audio. Frequency-boosting scenarios can be system-preset or user-defined.

[0110] Once an electronic device meets the triggering conditions for allocating computing power, a computing power allocation strategy can be further determined. The computing power allocation strategy is used to allocate computing power to the electronic device. As explained above, allocating computing power to an electronic device is equivalent to allocating frequency points to the electronic device.

[0111] In one implementation, specific frequency points can be mapped to computing power levels. Assigning frequency points to electronic devices can also mean assigning computing power levels to electronic devices.

[0112] For example, the computing power level corresponding to the 5GHz frequency point is 10, and the computing power level corresponding to the 1GHz frequency point is 5.

[0113] It is understandable that computing power can be allocated to CPUs, GPUs, DDR memory, and other components in electronic devices. Computing power allocation strategies can include the allocated computing power of some or all of the processors in an electronic device.

[0114] It should be noted that the computing power allocation strategy can be preset by the system or set by the user, and can be stored in the electronic device in formats such as tables, fields, text formats, structured data, bytecode, etc. Alternatively, a pre-trained algorithm model can be used to dynamically determine the computing power allocation strategy; however, this embodiment of the application does not limit this.

[0115] Specifically, the computing power allocation method provided in this application embodiment is applicable to frequency-limiting scenarios for electronic devices. In frequency-limiting scenarios for electronic devices, computing power is allocated based on a certain strategy. The allocation strategy may be related to at least one parameter among device temperature, frequency-boosting scenario, platform computing power, and resources. One possible implementation is that the device can allocate computing power based on device temperature; another possible implementation is that computing power is allocated based on frequency-boosting scenario; yet another possible implementation is that computing power is allocated based on both device temperature and frequency-boosting scenario.

[0116] In the computing power allocation method provided in this application, when an electronic device meets the frequency limiting conditions, a first parameter of the electronic device is limited to a first value. The first parameter can be the computing power or frequency value of the CPU, GPU, or DDR mentioned above. The frequency limiting conditions are related to device temperature, device heating rate, and device power consumption. When any one of the device temperature, device heating rate, or device power consumption reaches a preset threshold, it indicates that the electronic device meets the frequency limiting conditions. Furthermore, in a user-perceptible frequency increase scenario, the first parameter can be increased to a second value, where the second value is greater than the first value, according to the computing power allocation strategy, to achieve the purpose of frequency increase, thereby improving the user experience without affecting device power consumption and device temperature.

[0117] Taking a CPU as an example, a CPU includes small cores, medium cores, and large cores. Medium and large cores can run threads related to user operations, i.e., threads that are highly perceptible to the user; small cores can run threads that are less perceptible to the user, such as background processes. In non-frequency-limited scenarios, the normal computing power requirements for each core are: 10 for small cores, 10 for medium cores, and 10 for large cores. That is, without considering the device's temperature, heating rate, power consumption, or other electronic device conditions, the small, medium, and large cores require 10 computing power to process computational tasks. When the electronic device meets the frequency-limiting conditions, triggering a frequency-limiting scenario, the frequency-limited computing power levels are set for the small, medium, and large cores respectively. For example, in a frequency-limited scenario, the computing power level for small cores is 8, for medium cores is 5, and for large cores is 5. In the above frequency-limited scenario, the computing power allocation strategy can be determined based on at least one parameter among device temperature, frequency-boosting scenario, platform computing power, and resources. For example, based on at least one of the above parameters, the computing power of the small cores, medium cores, and large cores in the CPU is allocated to obtain the computing power level of the small cores, the computing power level of the medium cores, and the computing power level of the large cores after allocation.

[0118] It should be noted that the values ​​mentioned in the embodiments of this application, including but not limited to the computing power level of each core in non-frequency-limited scenarios, the computing power level of each core in frequency-limited scenarios, and the computing power level and frequency value of each core after allocation, are only illustrative examples, and the embodiments of this application do not limit the specific values.

[0119] The following section will use the CPU as an example to introduce the possible computing power allocation strategies in the embodiments of this application.

[0120] In scenario one, where electronic devices are frequency-limited, the computing power allocation strategy can be determined based on the device temperature.

[0121] For example, in a frequency-limited electronic device scenario, the computing power level of the small core is 8, the computing power level of the medium core is 5, and the computing power level of the large core is 5. Then, based on the device temperature, the computing power of the small, medium, and large cores is allocated, resulting in a final computing power level of 5 for the small core, 8 for the medium core, and 8 for the large core. It can be seen that in a frequency-limited scenario, adjusting the computing power levels of the small, medium, and large cores appropriately increases the computing power levels of the medium and large cores while appropriately decreasing the computing power level of the small core.

[0122] Understandably, most threads related to user operations run on medium and large cores. Therefore, when allocating computing power, the computing power levels of medium and large cores can be appropriately increased, while the computing power levels of small cores can be appropriately decreased to ensure a good user experience.

[0123] As explained above, computing power levels correspond to frequency points. The values ​​for the aforementioned computing power levels (e.g., a computing power level of 5 for the small core after allocation) are merely illustrative and do not imply that the actual frequency of the small core will be 5 after the computing power is allocated. The above method of setting computing power levels indicates that in frequency-limited scenarios, electronic devices can limit the computing power of each core individually, or in other words, limit the frequency of each core. Furthermore, when the device temperature reaches a preset threshold, the computing power of each core can be allocated based on the frequency-limited computing power, ensuring a stable user experience while maintaining stable device power consumption and temperature.

[0124] For example, in frequency-limited scenarios, the computing power level of the small core is 8, which corresponds to a frequency value of 4GHz; the computing power level of the medium core is 5, which corresponds to a frequency value of 3GHz; and the computing power level of the large core is 5, which corresponds to a frequency value of 3GHz.

[0125] It is understood that the device temperature that triggers the computing power allocation process can be preset by the system, such as 45°C. This temperature is related to the electronic device. For example, for a computer terminal with a high computing load, a trigger temperature of 50°C can be set; for a mobile terminal with a low computing load, a trigger temperature of 40°C can be set. Of course, the above-mentioned trigger temperature can also be flexibly adjusted according to the usage scenario during the use of the electronic device after it leaves the factory. This application embodiment does not limit this.

[0126] Scenario 2: In the case of frequency limiting for electronic devices, the computing power allocation strategy can be determined based on the frequency increase scenario.

[0127] For example, in a frequency-limited electronic device scenario, the computing power level of the small core is 8, the computing power level of the medium core is 5, and the computing power level of the large core is 5. Then, depending on the frequency-increase scenario, the computing power of the small, medium, and large cores is allocated, resulting in a computing power level of 5 for the small core, 8 for the medium core, and 8 for the large core. It can be seen that in a frequency-limited scenario, adjusting the computing power levels of the small, medium, and large cores appropriately increases the computing power levels of the medium and large cores while appropriately decreasing the computing power level of the small core.

[0128] As mentioned above, frequency increase scenarios can be user-perceptible scenarios, scenarios highly related to user operations, or scenarios with high business priority.

[0129] For example, an emergency call scenario can be a frequency-boosting scenario. Under frequency-limiting conditions, if a user triggers the emergency call function of an electronic device, computing power can be allocated. Similarly, an interface switching scenario can be a frequency-boosting scenario. Under frequency-limiting conditions, if a user's operation triggers a switch in the electronic device's interface, computing power can be allocated. Likewise, displaying video on the foreground of an electronic device can be a frequency-boosting scenario. Under frequency-limiting conditions, if a video is playing on the foreground of an electronic device, computing power can be allocated.

[0130] It should be noted that the scenarios for frequency boosting may vary depending on the electronic device. For example, frequency boosting scenarios for smartwatches may include scenarios involving the acquisition of user activity data. This application does not limit the specific frequency boosting scenarios described in its embodiments.

[0131] It should be noted that different computing power allocation strategies may be used for different frequency increase scenarios.

[0132] For example, in a scenario where a user makes an emergency call and the computing power is increased, the computing power of each core is allocated, resulting in a computing power level of 5 for the small core, 8 for the medium core, and 8 for the large core. In a scenario where the interface is switched, the computing power of each core is allocated, resulting in a computing power level of 4 for the small core, 7 for the medium core, and 7 for the large core.

[0133] Scenario 3: In the case of frequency limiting for electronic devices, the computing power allocation strategy can be determined based on the device temperature and frequency increase scenario.

[0134] Understandably, scenario three can determine the computing power allocation strategy based on scenarios one and two, combined with device temperature and frequency increase scenarios.

[0135] Below, we will take a CPU, which includes small cores, medium cores, and large cores, as an example to give a detailed introduction to scenario three.

[0136] The pre-set computing power allocation strategy for electronic devices is as follows:

[0137] It should be noted that "4001" and "4002" refer to two computing power allocation strategies, and "10003" and "10002" refer to two frequency increase scenarios. "10003" corresponds to the user emergency call scenario "SOS", and "10002" corresponds to the interface switching scenario "window_switch". "45" and "48" refer to two device temperatures. "lit_cpu_max_freq" represents the highest computing power level for small cores, "mid_cpu_max_freq" represents the highest computing power level for medium cores, "big_cpu_max_freq" represents the highest computing power level for large cores, "lit_cpu_min_level" represents the lowest computing power level for small cores, "mid_cpu_min_level" represents the lowest computing power level for medium cores, and "big_cpu_min_level" represents the lowest computing power level for large cores.

[0138] For example, in the "10003" frequency increase scenario, in a non-frequency-limited scenario, the normal computing power requirements for each core are: 10 for small cores, 10 for medium cores, and 10 for large cores. In the "10002" frequency increase scenario, in a non-frequency-limited scenario, the normal computing power requirements for each core are: 9 for small cores, 9 for medium cores, and 9 for large cores. Assuming that in a frequency-limited scenario, the computing power requirements for small cores are 8, medium cores are 5, and large cores are 5.

[0139] If the current frequency increase scenario is an emergency user call scenario, i.e., "10003", the computing power allocation strategy corresponding to the "10003" scenario is determined to be "4001". The "4001" computing power allocation strategy includes two device temperatures: "45℃" and "48℃". If the current device temperature is 45℃, the computing power allocation strategy is determined as follows: small core computing power level 5, medium core computing power level 8, and large core computing power level 8. If the current device temperature is 48℃, the computing power allocation strategy is determined as follows: small core computing power level 4, medium core computing power level 7, and large core computing power level 7.

[0140] If the current frequency increase scenario is an interface switching scenario, i.e., "10002", the corresponding computing power allocation strategy for scenario "10002" is determined to be "4002". The "4002" computing power allocation strategy includes two device temperatures: "45℃" and "48℃". If the current device temperature is 45℃, the computing power allocation strategy is determined as follows: small core computing power level 6, medium core computing power level 7, and large core computing power level 7. If the current device temperature is 48℃, the computing power allocation strategy is determined as follows: small core computing power level 5, medium core computing power level 8, and large core computing power level 8.

[0141] As can be seen, in Scenario 3, it is necessary to comprehensively consider both the frequency increase scenario and device temperature in order to determine the final computing power. The computing power redistribution strategy is used to allocate more reasonable computing power to the processor in frequency-limited scenarios.

[0142] For example, the computing power allocation strategy preset in electronic devices is as follows:

[0143] As can be seen, although "10003" and "10002" are two different frequency increase scenarios, they both correspond to the same "4002" computing power allocation strategy. In other words, different frequency increase scenarios can also have the same computing power allocation strategy.

[0144] It should be noted that in the above examples, the frequency increase scenario is determined first, and the computing power allocation strategy is determined based on the device temperature. In the method for allocating computing power provided in the embodiments of this application, the device temperature can also be determined first, and then the computing power allocation strategy can be determined based on the frequency increase scenario. This application does not limit this.

[0145] For example, if the device temperature is 45℃, triggering a frequency limiting scenario for the electronic device, 45℃ corresponds to a computing power allocation strategy of "4001" and a computing power allocation strategy of "40002". Further, based on the current frequency increase scenario of "10003" user emergency call, the computing power allocation strategy corresponding to the "10003" frequency increase scenario is determined to be "4001", thus determining the final computing power allocation strategy as follows: the computing power level of the small core is 5, the computing power level of the medium core is 8, and the computing power level of the large core is 8.

[0146] Taking the "10003" frequency increase scenario and the "45℃" device temperature as examples. In the frequency-limited scenario, without computing power allocation, the computing power level of the small core is 8, the computing power level of the medium core is 5, and the computing power level of the large core is 5. Considering that user operations involve the operation of the medium and large cores, computing power allocation is performed, resulting in a computing power level of 5 for the small core, 8 for the medium core, and 8 for the large core. The allocated computing power is more reasonable, ensuring the user experience without affecting device power consumption or device temperature.

[0147] Therefore, in Scenario 3, the computing power allocation strategy is related to device temperature and frequency increase scenario. On the one hand, under the same frequency increase scenario, different device temperatures may lead to different computing power allocation strategies; on the other hand, under different frequency increase scenarios, even if the device temperature is the same, the computing power allocation strategy can still be different.

[0148] In addition, if multiple frequency increase scenarios are triggered simultaneously, the computing power allocation strategy can be determined by combining multiple frequency increase scenarios and device temperature.

[0149] When multiple frequency increase scenarios are triggered simultaneously, performance can be prioritized to determine the computing power allocation strategy; or power consumption can be prioritized to determine the computing power allocation strategy.

[0150] For example, in a scenario where both an emergency call and a screen switching are triggered simultaneously, i.e., frequency boosting scenarios "10003" and "10002" are triggered at the same time, if the device temperature is 45℃, the computing power allocation strategy under the "10003" frequency boosting scenario is: computing power level 5 for small cores, computing power level 8 for medium cores, and computing power level 8 for large cores; the computing power allocation strategy under the "10002" frequency boosting scenario is: computing power level 6 for small cores, computing power level 7 for medium cores, and computing power level 7 for large cores. Taking into account both computing power allocation strategies, when performance is prioritized, the highest allowed computing power level is allocated to each core, resulting in a final computing power allocation strategy of 6 for small cores, 8 for medium cores, and 8 for large cores. When power consumption is prioritized, the lowest allowed computing power is allocated to each core, resulting in a final computing power allocation strategy of 5 for small cores, 7 for medium cores, and 7 for large cores.

[0151] It is understandable that the above mainly introduced the determination of computing power strategy based on at least one parameter in the device temperature and frequency increase scenario. In the computing power allocation method provided in the embodiments of this application, the computing power allocation strategy can also be related to parameters such as platform computing power, memory bandwidth, and system resources.

[0152] The above parameters can be used individually to determine the computing power allocation strategy, or they can be used in combination with similar scenarios such as device temperature and frequency increase to determine the computing power allocation strategy.

[0153] It should be noted that the above mainly describes the allocation of computing power based on a computing power allocation strategy when the electronic device is in a frequency-limited scenario. Typically, in a frequency-limited scenario, the computing power of at least some cores of the electronic device is reduced. During computing power allocation, the computing power of at least some cores of the electronic device is increased. Simply put, in the computing power allocation method provided in this application embodiment, the computing power of at least some cores can be reduced first, and then the computing power of some cores can be increased to achieve the purpose of allocating computing power. It is not difficult to see that in the computing power allocation method provided in this application embodiment, the computing power of at least some cores can also be increased first, and then the computing power of at least some cores can be reduced, which can also achieve the purpose of allocating computing power.

[0154] For example, when the device temperature, the rate of temperature change, and the power consumption of an electronic device do not reach a certain threshold, there is no need to limit the frequency of the electronic device. To optimize the performance of the electronic device, the computing power of at least some cores can be appropriately increased to enhance the processing capabilities of these cores. As business processing progresses, the device may overheat or consume excessive power. By limiting the computing power of at least some cores, the power consumption of the device can be reduced.

[0155] It should be noted that the method for allocating computing power provided in this application embodiment will perform unified arbitration on the computing power and output the final computing power allocation result.

[0156] The following, with reference to Figure 3, provides an exemplary flowchart of a method for allocating computing power, applicable to electronic devices. The method will now be described in detail:

[0157] S301, determine the frequency increase scenario.

[0158] It should be noted that frequency increase scenarios can be key scenarios with high business priority and high relevance to user operations. For example, the user emergency call scenario corresponding to "10003" above, and the interface switching scenario corresponding to "10002".

[0159] Understandably, before determining the frequency increase scenario, it is necessary to determine whether the electronic device is in a frequency-limited scenario.

[0160] S302, Determine computing power requirements.

[0161] It should be noted that the computing power requirement can be understood as the normal computing power requirement of the processor in non-frequency-limited scenarios. The computing power requirement may be different for different frequency increase scenarios. For example, in the above-mentioned "10003" frequency increase scenario, the computing power requirement of the small core, medium core, and large core is 10; in the above-mentioned "10002" frequency increase scenario, the computing power requirement of the small core, medium core, and large core is 9.

[0162] S303 is a computing power level that combines device power consumption and device temperature arbitration.

[0163] It is understandable that device power consumption and device temperature are related to the state of the electronic device, and the computing power level can be determined based on the state of the electronic device. Step S303 can be understood as frequency limiting of computing power demand. When the state of the electronic device meets the preset conditions, frequency limiting processing is required, that is, the computing power level after frequency limiting is determined based on the device power consumption and device temperature.

[0164] For example, in the "10003" frequency increase scenario, in the non-frequency-limited scenario, the computing power requirement of the small core, medium core and large core is 10. When either the device power consumption or the device temperature meets the preset conditions, the processor needs to be frequency-limited. Based on the device power consumption and device temperature, the computing power level is jointly arbitrated to determine that in the frequency-limited scenario, the computing power level of the small core is 8, the computing power level of the medium core is 5, and the computing power level of the large core is 5.

[0165] It should be noted that frequency limiting scenarios can be triggered under certain conditions. Taking device temperature as an example, if the device temperature reaches a preset threshold, a frequency limiting scenario is triggered; or if the device temperature rise rate reaches a preset threshold, a frequency limiting scenario is triggered to reduce device power consumption and control device temperature, so that excessive device power consumption or device temperature does not affect the normal operation of certain functions of electronic devices.

[0166] S304, computing power allocation.

[0167] It should be noted that in frequency-limited scenarios, computing power can be allocated to better suit the current operating environment of electronic devices and meet user experience requirements.

[0168] For example, in the frequency limiting scenario described in step S303 above, the processor's frequency is limited, resulting in a computing power level of 8 for the small core, 5 for the medium core, and 5 for the large core. Based on this, the frequency increase scenario is determined to be "10003" and the device temperature is "45℃". The computing power allocation strategy is determined to be: computing power level 5 for the small core, 8 for the medium core, and 8 for the large core.

[0169] S305, distributing the final computing power.

[0170] For example, the computing power allocation strategy determined through step S304 above is as follows: the computing power level of the small core is 5, the computing power level of the medium core is 8, and the computing power level of the large core is 8. The above computing power levels can be distributed to the small core, medium core, and large core respectively, and the small core, medium core, and large core will process services at the operating frequency corresponding to the above computing power levels.

[0171] Based on the above solution, in frequency-limited scenarios, by allocating computing power, the computing power supply for users' highly sensitive services is appropriately increased, while the computing power supply for users' less sensitive services is reduced, ensuring the user experience without affecting device power consumption and device temperature.

[0172] For ease of understanding, Figure 4 shows a schematic diagram of a computing power allocation device provided in an embodiment of this application. This device may include a computing power arbitration module, a performance-power-consumption-thermal joint arbitration module, and a computing power allocation module.

[0173] Specifically, the computing power demand arbitration module is used to determine the normal computing power demand of each core in non-frequency-limited scenarios of electronic devices. For example, the computing power demand arbitration module determines the normal computing power demand as follows: the computing power level of the small core is 10, the computing power level of the medium core is 10, and the computing power level of the large core is 10.

[0174] The performance, power consumption, and thermal integration module is used to determine the computing power level of each core after frequency limiting is triggered when an electronic device meets the frequency limiting conditions. For example, in a frequency limiting scenario, the computing power level of the small core is 8, the computing power level of the medium core is 5, and the computing power level of the large core is 5.

[0175] The computing power allocation module is used to allocate the computing power level of each core after frequency limiting when the electronic device meets the computing power allocation conditions, and to determine the computing power level of each core after allocation. For example, after allocation, the computing power level of the small core is 5, the computing power level of the medium core is 8, and the computing power level of the large core is 8.

[0176] It should be noted that the above division of the modules in the computing power allocation device is only a logical functional division, and there may be other division methods in actual implementation. The names of the modules mentioned above are also only examples, and the embodiments of this application do not limit them.

[0177] Figure 5 shows a schematic flowchart of a method for allocating computing power according to an embodiment of this application. This method can be applied to electronic devices such as mobile terminals, personal computers, tablets, smartwatches, smart glasses, headphones, smart screens, smart home devices, and smart industrial equipment. The method will be described in detail below.

[0178] S501, when the first condition is met, the first parameter of the electronic device is restricted to a first value.

[0179] It should be noted that the first parameter includes at least one of the following: CPU computing power, GPU computing power, and DDR computing power. The computing power of an electronic device can refer to its ability to perform computational tasks, and limiting its computing power can include limiting its frequency. The frequency of an electronic device can also be understood as its clock speed (including the processor's clock speed and the memory's clock speed), used to represent the device's processing speed.

[0180] The first condition can be understood as a frequency limiting condition. When an electronic device meets the frequency limiting condition, the computing power of the processor or memory in the electronic device can be limited.

[0181] For example, the first condition includes at least one of the following: the device temperature reaches a preset first threshold, the device temperature change rate reaches a preset second threshold, and the device power consumption reaches a preset third threshold. The first, second, and third thresholds can be preset by the system or set by the user.

[0182] In other words, frequency limiting could be caused by factors such as excessively high device temperature, excessively rapid temperature rise, or excessive power consumption. By limiting the frequency of electronic devices, power consumption and temperature can be controlled, thereby ensuring the safe operation of the electronic equipment.

[0183] In the S502, under the frequency increase scenario, the first parameter is increased to the second value according to the first strategy for allocating computing power.

[0184] It should be noted that frequency boosting scenarios are those that are perceptible to the user, highly relevant to user operations, or have high business priority. Examples include call scenarios (e.g., emergency calls), interface switching scenarios, audio / image display scenarios, and information input scenarios—scenarios where electronic devices provide services to the user in the foreground. Frequency boosting scenarios can be system-preset or user-defined.

[0185] It should be noted that the second value is greater than the first value. This shows that for electronic devices that meet the frequency limiting conditions, the computing power of the processor or memory can be limited first; when a frequency increase scenario is triggered, the limited computing power can be increased to achieve the purpose of allocating computing power.

[0186] It is understood that the first strategy can be a computing power allocation strategy. The computing power allocation strategy can be pre-set by the system or set by the user, and can be stored in the electronic device in formats such as tables, fields, text formats, structured data, and bytecode. Alternatively, it can be a pre-trained algorithm model to dynamically determine the computing power allocation strategy; however, this embodiment of the application does not limit this approach.

[0187] In one implementation, the first strategy is related to at least one of the following: device temperature, frequency boosting scenario, and computing power of the electronic device. The computing power of the electronic device refers to its normal computing power requirements under non-frequency-limited scenarios.

[0188] In other words, the first strategy can be determined based on at least one of the following: device temperature, frequency boosting scenario, and computing power of electronic device.

[0189] In one implementation, in a frequency increase scenario, a first strategy is determined based on the device temperature, and a first parameter is increased to a second value based on the first strategy.

[0190] For example, taking the first strategy as a pre-set example. Based on the current "10003" frequency increase scenario, the corresponding computing power allocation strategy is determined to be "4001". Further, based on the device temperature, the value of the first parameter after allocation in the computing power allocation strategy "4001" is determined to be the second value.

[0191] It should be noted that the device temperature can also be determined first, and then the first strategy can be determined based on the frequency increase scenario. This application embodiment does not limit this. In the method of allocating computing power provided in this application, the computing power allocation strategy can be determined based on one or more of the following: device temperature, frequency increase scenario, computing power capability of electronic device, memory bandwidth, and system resources.

[0192] For example, under the same frequency increase scenario, different device temperatures may lead to different computing power allocation strategies; even if the device temperature is the same under different frequency increase scenarios, the computing power allocation strategies may still be different.

[0193] In one implementation, the frequency boosting scenario includes a first frequency boosting scenario and a second frequency boosting scenario; a second strategy for allocating computing power is determined based on the first frequency boosting scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; a third strategy for allocating computing power is determined based on the second frequency boosting scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value.

[0194] It is evident that different computing power allocation strategies can be employed depending on the specific frequency increase scenario.

[0195] Of course, the computing power allocation strategy can be the same in different frequency increase scenarios.

[0196] Specifically, in the first frequency increase scenario, the first parameter is increased to a second value according to the first strategy; in the second frequency increase scenario, the first parameter is increased to a second value according to the first strategy.

[0197] In other words, even if the frequency increase scenarios are different, computing power can be allocated according to the same computing power allocation strategy.

[0198] In addition, if multiple frequency increase scenarios are triggered simultaneously, the computing power allocation strategy can be determined by comprehensively considering multiple frequency increase scenarios and device temperature.

[0199] It should be noted that when multiple frequency increase scenarios are triggered simultaneously, performance can be prioritized to determine the computing power allocation strategy, or power consumption can be prioritized to determine the computing power allocation strategy.

[0200] In one implementation, the frequency boosting scenario includes a first frequency boosting scenario and a second frequency boosting scenario; a second strategy for allocating computing power is determined based on the first frequency boosting scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; a third strategy for allocating computing power is determined based on the second frequency boosting scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value; and the first parameter is increased to the maximum value between the third and fourth values.

[0201] In other words, the two frequency-increase scenarios triggered simultaneously correspond to two computing power allocation strategies. The second strategy can increase the computing power to a third value, while the third strategy can increase it to a fourth value, which is greater than the third value. Prioritizing performance, the third strategy, which increases computing power more significantly, is selected from the second and third strategies.

[0202] In one implementation, the frequency boosting scenario includes a first frequency boosting scenario and a second frequency boosting scenario; a second strategy for allocating computing power is determined based on the first frequency boosting scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; a third strategy for allocating computing power is determined based on the second frequency boosting scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value; and the first parameter is increased to the minimum value between the third and fourth values.

[0203] In other words, the two frequency increase scenarios triggered simultaneously correspond to two computing power allocation strategies. The second strategy can increase the computing power to a third value, while the third strategy can increase it to a fourth value, which is greater than the third value. Prioritizing power consumption, the second strategy, which increases computing power less, is selected from the two.

[0204] The computing power allocation method provided in this application embodiment can limit the computing power or frequency value of the CPU, GPU, and DDR of an electronic device when the device meets the frequency limiting conditions. Furthermore, in user-perceptible frequency increase scenarios, the computing power or frequency value of the CPU, GPU, and DDR of the electronic device can be increased according to the computing power allocation strategy to achieve the purpose of frequency increase, thereby improving the user experience without affecting device power consumption and device temperature.

[0205] This application provides a computer program product that, when run on a device, causes the device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.

[0206] This application provides a readable storage medium containing instructions that, when executed on a device, cause the device to perform the technical solutions described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0207] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0208] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0209] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit (module) can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0210] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0211] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0212] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0213] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0214] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of allocating computing power, the method being applied to an electronic device, characterized in that, The method comprises: limiting a first parameter of the electronic device to a first value when a first condition is met, the first parameter comprising at least one of a computing power of a central processing unit (CPU), a computing power of a graphics processing unit (GPU), and a computing power of a double data rate synchronous dynamic random access memory (DDR); the first condition comprises at least one of: a device temperature reaching a pre-set first threshold, a device temperature change rate reaching a pre-set second threshold, and a device power consumption reaching a pre-set third threshold; in a frequency raising scenario, increasing the first parameter to a second value according to a first strategy of allocating computing power, the second value being greater than the first value, the frequency raising scenario being a user-perceptible scenario.

2. The method of claim 1, wherein, the first strategy is related to at least one of: the device temperature, the frequency raising scenario, and a computing power capability of the electronic device.

3. The method of claim 2, wherein, the increasing the first parameter to the second value according to the first strategy of allocating computing power comprises: determining the first strategy according to the device temperature; increasing the first parameter to the second value according to the first strategy.

4. The method of claim 2, wherein, the frequency raising scenario comprises a first frequency raising scenario and a second frequency raising scenario, and the increasing the first parameter to the second value according to the first strategy of allocating computing power comprises: determining a second strategy of allocating computing power according to the first frequency raising scenario and the device temperature, the second strategy being used to increase the first parameter to a third value; determining a third strategy of allocating computing power according to the second frequency raising scenario and the device temperature, the third strategy being used to increase the first parameter to a fourth value.

5. The method of claim 4, wherein, The method further comprises: increasing the first parameter to a maximum value between the third value and the fourth value.

6. The method of claim 2, wherein, the increasing the first parameter to the second value according to the first strategy of allocating computing power in the frequency raising scenario comprises: in the first frequency raising scenario, increasing the first parameter to the second value according to the first strategy; The method further comprises: in the second frequency raising scenario, increasing the first parameter to the second value according to the first strategy.

7. The method according to any one of claims 1 to 6, characterized in that, the first strategy is stored in the electronic device in a first form, the first form comprising one of: a field, a table, a bytecode, and a text.

8. The method according to any one of claims 1 to 7, characterized in that, the frequency raising scenario comprises at least one of: a call service scenario, an interface switching scenario, a display of audio and image scenario, and an information input scenario.

9. An electronic device, comprising: comprises: one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any one of claims 1 to 8.

10. An apparatus for allocating computational effort, characterized by comprises: a processor coupled to a memory, the memory being used to store a computer program, and the processor being used to run the computer program, so that the device of allocating computing power performs the method of any one of claims 1 to 8.

11. The apparatus for allocating computational effort according to claim 10, wherein, further comprising one or more of the memory and a transceiver, the transceiver being used to receive a signal and / or send a signal.

12. A computer-readable storage medium, characterized in that, a computer program product stored on a computer readable medium, which computer program, when executed by a computer, causes the computer to carry out the method of any one of claims 1 to 8.

13. A computer program product comprising instructions, characterized in that, a computer program product stored on a computer readable medium, which computer program, when executed by a computer, causes the computer to carry out the method of any one of claims 1 to 8.

14. A chip, characterized by a chip comprising a processor and a data interface, the processor reading instructions stored on a memory via the data interface to carry out the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • Scheduling method, scheduling device and storage medium

    CN114610496A

  • Scheduling method for auxiliary computing power resources of unmanned aerial vehicle in industrial building scene

    CN117762620A

  • Chip comprehensive computing power test method, electronic equipment, storage medium and device

    CN118152237A

  • Power Consumption Control Method and Apparatus

    US20240137870A1