mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![Rafael J. Wysocki](/assets/img/avatar_default.png)
Commit f06147f9fb
(ACPICA: Hardware: Enable firmware waking vector
for both 32-bit and 64-bit FACS) added three functions that aren't
present in upstream ACPICA, acpi_hw_set_firmware_waking_vectors(),
acpi_set_firmware_waking_vectors() and acpi_set_firmware_waking_vector64(),
to allow Linux to use the previously existing API for setting the
platform firmware waking vector.
However, that wasn't necessary, since the ACPI sleep support code
in Linux can be modified to use the upstream ACPICA's API easily
and the additional functions may be dropped which reduces the code
size and puts the kernel's ACPICA code more in line with the upstream.
Make the changes as per the above. While at it, make the relevant
function desctiption comments reflect the upstream ACPICA's ones.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Lv Zheng <lv.zheng@intel.com>
14 lines
412 B
C
14 lines
412 B
C
|
|
extern void acpi_enable_wakeup_devices(u8 sleep_state);
|
|
extern void acpi_disable_wakeup_devices(u8 sleep_state);
|
|
|
|
extern struct list_head acpi_wakeup_device_list;
|
|
extern struct mutex acpi_device_lock;
|
|
|
|
extern void acpi_resume_power_resources(void);
|
|
|
|
static inline acpi_status acpi_set_waking_vector(u32 wakeup_address)
|
|
{
|
|
return acpi_set_firmware_waking_vector(
|
|
(acpi_physical_address)wakeup_address, 0);
|
|
}
|