mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
fef9867119
Some code in drivers/acpi/sleep.c (which is regarded as a generic file) related to suspend-to-idle support has grown direct dependencies on x86, but in fact it has been specific to x86 (which is the only user of it) anyway for a long time. For this reason, move that code to a separate file under acpi/x86/ and make it build and run as before under the right conditions. While at it, rename a vendor checking function in that code and consistently use acpi_handle_debug() for printing debug-related information in it. No expected functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
34 lines
972 B
C
34 lines
972 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
extern void acpi_enable_wakeup_devices(u8 sleep_state);
|
|
extern void acpi_disable_wakeup_devices(u8 sleep_state);
|
|
extern bool acpi_check_wakeup_handlers(void);
|
|
|
|
extern struct list_head acpi_wakeup_device_list;
|
|
extern struct mutex acpi_device_lock;
|
|
|
|
extern void acpi_resume_power_resources(void);
|
|
extern void acpi_turn_off_unused_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);
|
|
}
|
|
|
|
extern int acpi_s2idle_begin(void);
|
|
extern int acpi_s2idle_prepare(void);
|
|
extern int acpi_s2idle_prepare_late(void);
|
|
extern bool acpi_s2idle_wake(void);
|
|
extern void acpi_s2idle_restore_early(void);
|
|
extern void acpi_s2idle_restore(void);
|
|
extern void acpi_s2idle_end(void);
|
|
|
|
extern void acpi_s2idle_setup(void);
|
|
|
|
#ifdef CONFIG_ACPI_SLEEP
|
|
extern bool acpi_sleep_default_s3;
|
|
#else
|
|
#define acpi_sleep_default_s3 (1)
|
|
#endif
|