mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Shaohua Li](/assets/img/avatar_default.png)
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>
10 lines
324 B
C
10 lines
324 B
C
|
|
extern u8 sleep_states[];
|
|
extern int acpi_suspend (u32 state);
|
|
|
|
extern void acpi_enable_wakeup_device_prep(u8 sleep_state);
|
|
extern void acpi_enable_wakeup_device(u8 sleep_state);
|
|
extern void acpi_disable_wakeup_device(u8 sleep_state);
|
|
|
|
extern struct list_head acpi_wakeup_device_list;
|
|
extern struct mutex acpi_device_lock;
|