ACPI: Remove the wakeup.run_wake_count device field
commit5190726765b40774c069e187a958e10ccd970e65
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Feb 2011 22:40:37 +0000 (8 23:40 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 24 Feb 2011 18:58:53 +0000 (24 19:58 +0100)
tree6cdfc76171e907232f91e4a094ee8ffbcc8e9797
parent2aa15890f3c191326678f1bd68af61ec6b8753ec
ACPI: Remove the wakeup.run_wake_count device field

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: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/button.c
drivers/acpi/scan.c
drivers/pci/pci-acpi.c
include/acpi/acpi_bus.h