ACPI: convert acpi_device_lock spinlock to mutex
authorShaohua Li <shaohua.li@intel.com>
Tue, 7 Apr 2009 02:24:29 +0000 (10:24 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 7 Apr 2009 04:02:40 +0000 (00:02 -0400)
commit9090589d87506c578ea1523ffd7ae7fd9424fb28
tree215163d13dbfa514a4121594cd4c6e27fde9b911
parentd508afb437daee7cf07da085b635c44a4ebf9b38
ACPI: convert acpi_device_lock spinlock to mutex

Convert acpi_device_lock to a mutex to avoid
a potential race upon access to /proc/acpi/wakeup

Delete the lock entirely in wakeup.c
since it is not necessary (and can not sleep)

Found-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/proc.c
drivers/acpi/scan.c
drivers/acpi/sleep.h
drivers/acpi/wakeup.c