1. 25 2月, 2011 3 次提交
    • R
      ACPI / PM: Drop acpi_restore_state_mem() · c41b93fb
      Rafael J. Wysocki 提交于
      The function acpi_restore_state_mem() has never been and most likely
      never will be used, so remove it.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      c41b93fb
    • R
      ACPI / Button: Avoid disabling wakeup unnecessarily on remove · c19f9a84
      Rafael J. Wysocki 提交于
      If a button device had already been enabled to wake up the system
      from sleep states before the button driver saw it, the driver
      shouldn't disable the device's wakeup capability when being detached
      from the device.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      c19f9a84
    • R
      ACPI: Remove the wakeup.run_wake_count device field · 51907267
      Rafael J. Wysocki 提交于
      The wakeup.run_wake_count ACPI device field is only used by the PCI
      runtime PM code to "protect" devices from being prepared for
      generating wakeup signals more than once in a row.  However, it
      really doesn't provide any protection, because (1) all of the
      functions it is supposed to protect use their own reference counters
      effectively ensuring that the device will be set up for generating
      wakeup signals just once and (2) the PCI runtime PM code uses
      wakeup.run_wake_count in a racy way, since nothing prevents
      acpi_dev_run_wake() from being called concurrently from two different
      threads for the same device.
      
      Remove the wakeup.run_wake_count ACPI device field which is
      unnecessary, confusing and used in a wrong way.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      51907267
  2. 24 2月, 2011 17 次提交
  3. 23 2月, 2011 20 次提交