40bce100ca
Add an asmlinkage wrapper around acpi_enter_sleep_state() to prevent an empty stub from being called by assmebly code for ACPI_REDUCED_HARDWARE set. As arch/x86/kernel/acpi/wakeup_xx.S is only compiled when CONFIG_ACPI=y and there are no users of ACPI_HARDWARE_REDUCED, currently this is in fact not a real issue, but a cleanup to reduce source code differences between Linux and ACPICA upstream. [rjw: Changelog] Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
21 lines
459 B
C
21 lines
459 B
C
/*
|
|
* Variables and functions used by the code in sleep.c
|
|
*/
|
|
|
|
#include <asm/realmode.h>
|
|
|
|
extern unsigned long saved_video_mode;
|
|
extern long saved_magic;
|
|
|
|
extern int wakeup_pmode_return;
|
|
|
|
extern u8 wake_sleep_flags;
|
|
|
|
extern unsigned long acpi_copy_wakeup_routine(unsigned long);
|
|
extern void wakeup_long64(void);
|
|
|
|
extern void do_suspend_lowlevel(void);
|
|
|
|
extern int x86_acpi_suspend_lowlevel(void);
|
|
|
|
acpi_status asmlinkage x86_acpi_enter_sleep_state(u8 state);
|