Patent ID: 7822999

Claim:
A method for controlling a processor, comprising: the processor or another processor programming a processor management unit (PMU) according to a change of the operating condition of the processor; the processor entering a standby mode and sending a notification signal to the PMU; the PMU starting adjusting the operating condition of the processor according to the change upon receiving the notification signal; and the PMU sending a completion signal to the processor after the change of the operating condition of the processor is stabilized, wherein the processor enters the standby mode by executing a standby instruction, the standby instruction has three option modes, and in the first option mode, the processor enters the standby mode, sends the notification signal to the PMU, and starts monitoring wakeup events upon receiving the completion signal from the PMU; in the second option mode, the processor enters the standby mode, sends the notification signal to the PMU, and wakes up upon receiving the completion signal from the PMU; in the third option mode, the processor enters the standby mode without sending the notification signal, and then starts monitoring wakeup events.