1. 25 Jun, 2009 2 commits
    • Bjorn Helgaas's avatar
      ACPICA: Clear GPEs and power button events during wakeup · ea47439b
      Bjorn Helgaas authored
      Per spec section 4.7.2.2.1.1, OSPM should clear power button status when
      waking the system.  This must be done before enabling interrupts to prevent
      spurious power button events.
      
      Linux currently clears these events in acpi_suspend_enter() just after
      calling acpi_leave_sleep_state_prep().  Other OSes should be doing
      something similar.  But it seems more robust to do this in the CA.
      
      The clear in acpi_leave_sleep_state() should be unnecessary.
      
      Thanks to Zhao Yakui for patiently educating me about this.
      
      This patch may be used under either the GPL v2 or the BSD-style license
      used for the Intel ACPICA.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      CC: Zhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      ea47439b
    • Bjorn Helgaas's avatar
      ACPICA: Use fixed event wrappers to enable/disable/clear · 97730430
      Bjorn Helgaas authored
      Use acpi_enable_event(), acpi_disable_event(), and acpi_clear_event()
      instead of writing the register directly.
      
      This patch may be used under either the GPL v2 or the BSD-style license
      used for the Intel ACPICA.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      CC: Zhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      97730430
  2. 24 Jun, 2009 38 commits