主权项 |
1. An electronic device with a power management mechanism, comprising:
a multi-core processor, having a plurality of processor cores; a temperature sensor, coupled to the multi-core processor, wherein the temperature sensor detects a temperature of the multi-core processor and determines whether the electronic device enters an underclocking mode from a performance priority mode according to the temperature of the multi-core processor, wherein when the temperature of the multi-core processor is greater than a first temperature threshold, the multi-core processor activates a first underclocking mode to dynamically adjust an enabled core number, wherein the enabled core number is a number of enabled processor cores among the processor cores, wherein when the temperature of the multi-core processor is greater than a second temperature threshold, the multi-core processor activates a second underclocking mode to fixate the enabled core number, wherein the first temperature threshold is smaller than the second temperature threshold; and a power control unit, coupled to the multi-core processor, wherein the power control unit sets a switching frequency, wherein the power control unit determines whether a current frame rate variation is smaller than a predetermined frame rate variation, wherein when the current frame rate variation is smaller than the predetermined frame rate variation, the power control unit updates the switching frequency and the multi-core processor periodically switches the enabled core number according to the updated switching frequency; and the power control unit repeats determining whether a current frame rate variation is smaller than a predetermined frame rate variation and repeats updating the switching frequency until the current frame rate variation is greater than or equal to the predetermined frame rate variation. |