摘要 |
The present invention discloses a method for controlling a central processing unit CPU, where the method includes: acquiring a usage rate and an operating frequency of one CPU of operating CPUs, where the number of the operating CPUs is M; if the operating frequency of the one CPU is smaller than a core off-line frequency, multiplying the usage rate of the one CPU by a first weight to obtain a CPU power consumption sensitive factor corresponding to the one CPU; if the operating frequency of the one CPU is greater than or equal to the core off-line frequency, multiplying the usage rate of the one CPU by a second weight to obtain a CPU power consumption sensitive factor corresponding to the one CPU; executing the foregoing steps N times for each of M operating CPUs, where N is a positive integer greater than or equal to one; acquiring MxN CPU power consumption sensitive factors after the foregoing steps are executed N times and a mean of the MxN CPU power consumption sensitive factors; and turning off at least one operating CPU if the mean is smaller than a CPU turn-off power consumption sensitive factor threshold. |