Patent ID: 8166324

Claim:
A method of transitioning to a nap mode in a processor, comprising: monitoring a load on the processor while the processor is operating; determining if the processor is to be needed soon by: determining a power usage during a current execution pattern; determining a cost in power usage of entering and recovering from a nap mode; and determining if the cost is greater than the power usage during the current execution pattern, wherein the processor is to be needed soon when the cost is greater; when the processor is to be needed soon, resuming monitoring the load on the processor without transitioning the processor to a nap mode; and when the processor is not to be needed soon, determining if the processor has been taking long naps recently; if not, transitioning the processor to a normal nap mode, which comprises halting a clock signal to a core power area of the processor without reducing an input voltage to the processor; otherwise, transitioning the processor to a deep nap mode, which comprises saving state information from the core power area, halting the clock signal to the core power area of the processor, and reducing a voltage supplied to the core power area.