mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
9090589d87
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>
11 lines
324 B
C
11 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;
|