Method for power management of central processing unit and system thereof

Information

  • Patent Application
  • 20070204180
  • Publication Number
    20070204180
  • Date Filed
    November 28, 2006
    18 years ago
  • Date Published
    August 30, 2007
    17 years ago
Abstract
A method for power management of CPU and a system thereof which drive the CPU enter a most efficient power saving state is disclosed. A chip of the present invention sends a first control signal to drive the CPU to wake from the non-snooping sleep state and enter a normally executing instruction state as well as a system management mode to execute a system management interrupt routine. Then the chip enables an arbiter to transmit the bus master request to the CPU for processing. After completing processing the bus master request, the chip disables the arbiter and the CPU drives the chip sends a second control signal to drive the CPU return to the non-snooping sleep state according the system management interrupt routine.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The structure and the technical means adopted by the present invention to achieve the above and other objects can be best understood by referring to the following detailed description of the preferred embodiments and the accompanying drawings, wherein



FIG. 1 is a schematic drawing showing CPU state of the conventional ACPI;



FIG. 2 is a block diagram showing the power management system according to an embodiment of the present invention; and



FIG. 3 is a flow chart showing the method for power management of a CPU according to an embodiment of the present invention.


Claims
  • 1. A method for power management of a central processing unit (CPU) in a non-snooping sleep state while a peripheral device sends a bus master request, the method comprising: sending a first control signal and a system management interrupt signal to the CPU for driving the CPU to wake from the non-snooping sleep state and enter a normally executing instruction state as well as a system management mode;enabling an arbiter for transmitting the bus master request to the CPU for processing; anddisabling the arbiter and sending a second control signal to the CPU for driving the CPU return to the non-snooping sleep state according to a system management interrupt routine after the bus master request is processed by the CPU.
  • 2. The method according to claim 1, the step of sending a first control signal and a system management interrupt signal to the CPU, further comprising: writing a first predetermined value into a first register for recording the bus master request.
  • 3. The method according to claim 2, the first predetermined value is deleted when the bus master request is processed by the CPU.
  • 4. The method according to claim 3, the system management interrupt routine is executed after the first predetermined value has been deleted.
  • 5. The method according to claim 1, after the CPU returns to the non-snooping sleep state, further comprising: driving the CPU to leave the system management mode when the peripheral device sends an interrupt event;sending the first control signal to the CPU for driving the CPU wake from the non-snooping sleep state and enter the normally executing instruction state; andenabling the arbiter for transmitting the interrupt event to the CPU.
  • 6. The method according to claim 1, after the CPU returns to the non-snooping sleep state, further comprising: writing a second predetermined value into a second register when the peripheral device sends an interrupt event;detecting the second register by the CPU and leaving the system management mode according to the second predetermined value; anddeleting the second predetermined value.
  • 7. The method according to claim 1, wherein the system management interrupt routine is stored in a memory.
  • 8. The method according to claim 1, wherein the non-snooping sleep state is a C3 state, and the normally executing instruction state is a C0 state.
  • 9. A power management system for a CPU at a non-snooping sleep state, the power management system electronically connected with a peripheral device which sends a bus master request, comprising: a chip, for sending a first control signal and a system management interrupt signal to the CPU for driving the CPU to wake from the non-snooping sleep state and enter a normally executing instruction state as well as a system management mode;an arbiter, for transmitting the bus master request to the CPU; anda memory, for storing a system management interrupt routine executed by the CPU;wherein when the CPU enters the normally executing instruction state, the chip enables the arbiter for transmitting the bus master request to the CPU for processing, and after the CPU completes processing the bus master request, the chip disables the arbiter and sends a second control signal to the CPU for driving the CPU return to the non-snooping sleep state according to the system management interrupt routine.
  • 10. The system according to claim 9, further comprising: a first register, for storing a first predetermined value, wherein when the chip sends the system management interrupt signal, the chip writes the first predetermined value into the first register.
  • 11. The system according to claim 10, wherein the first predetermined value is deleted after the CPU completing processing of the bus master request.
  • 12. The system according to claim 11, wherein the CPU executes the system management interrupt routine to drive the chip to send the second control signal after the first predetermined value has been deleted.
  • 13. The system according to claim 10, wherein the first register is disposed on the chip.
  • 14. The system according to claim 9, wherein after the CPU returns to the non-snooping sleep state, the CPU leaves the system management mode when the peripheral device sends an interrupt event.
  • 15. The system according to claim 14, wherein the chip sends the first control signal to the CPU for driving the CPU wake from the non-snooping sleep state and enter the normal state as well as enables the arbiter to transmit the interrupt event to the CPU.
  • 16. The system according to claim 9, further comprising: a second register, for storing a second predetermined value, wherein the second predetermined value is wrote into the second register by the chip when the peripheral device sends an interrupt event after the CPU returns to the non-snooping sleep state.
  • 17. The system according to claim 16, wherein the CPU detects the second register and leaves the system management mode according to the second predetermined value and then deletes the second predetermined value.
  • 18. The system according to claim 16, wherein the second register is disposed on the chip.
  • 19. The system according to claim 9, wherein the arbiter is disposed on the chip.
  • 20. The system according to claim 9, wherein the non-snooping sleep state is a C3 state, and the normally executing instruction state is a C0 state.
Priority Claims (1)
Number Date Country Kind
095106339 Feb 2006 TW national