US 12,443,441 B2
Scheduling method, scheduling apparatus and storage medium
Chao Gu, Beijing (CN); and Shuai He, Beijing (CN)
Assigned to BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed by BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed on Jul. 29, 2022, as Appl. No. 17/877,844.
Claims priority of application No. 202210278480.2 (CN), filed on Mar. 21, 2022.
Prior Publication US 2023/0297423 A1, Sep. 21, 2023
Int. Cl. G06F 9/48 (2006.01)
CPC G06F 9/4893 (2013.01) 13 Claims
OG exemplary drawing
 
1. A scheduling method, performed by a terminal device having a multi-core CPU architecture, a temperature sensor, an Energy Aware Scheduling (EAS) scheduler, and a graphics processing unit (GPU), comprising:
acquiring, by the temperature sensor, temperatures of the terminal device in two adjacent monitoring periods;
determining, by the EAS scheduler, a temperature change level based on a first temperature difference between the adjacent monitoring periods, wherein the temperature change level comprises a first level, a second level, and a third level; and
adjusting dynamically, by the EAS scheduler, a corresponding CPU scheduling strategy based on the temperature change level, to maintain a temperature of the terminal device below a temperature warning value, wherein the CPU scheduling strategy comprises at least one of following:
disabling a large core cluster in the CPU, restricting a frequency of a medium core cluster in the CPU, restricting a frequency of the GPU, and clearing preset applications run in a background, in response to that the temperature change level is the first level;
restricting frequencies of a large core cluster and a medium core cluster in the CPU, and reducing a CPU occupancy rate of applications run in a background, in response to that the temperature change level is the second level; or
maintaining a current running state of a CPU core cluster, in response to that the temperature change level is the third level.