diff options
-rw-r--r-- | arch/x86/include/asm/acpi.h | 7 | ||||
-rw-r--r-- | drivers/acpi/sleep.c | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index 724aa441de7d..0c44630d1789 100644 --- a/arch/x86/include/asm/acpi.h +++ b/arch/x86/include/asm/acpi.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/processor.h> | 29 | #include <asm/processor.h> |
30 | #include <asm/mmu.h> | 30 | #include <asm/mmu.h> |
31 | #include <asm/mpspec.h> | 31 | #include <asm/mpspec.h> |
32 | #include <asm/realmode.h> | ||
32 | 33 | ||
33 | #define COMPILER_DEPENDENT_INT64 long long | 34 | #define COMPILER_DEPENDENT_INT64 long long |
34 | #define COMPILER_DEPENDENT_UINT64 unsigned long long | 35 | #define COMPILER_DEPENDENT_UINT64 unsigned long long |
@@ -116,10 +117,8 @@ static inline void acpi_disable_pci(void) | |||
116 | /* Low-level suspend routine. */ | 117 | /* Low-level suspend routine. */ |
117 | extern int acpi_suspend_lowlevel(void); | 118 | extern int acpi_suspend_lowlevel(void); |
118 | 119 | ||
119 | extern const unsigned char acpi_wakeup_code[]; | 120 | /* Physical address to resume after wakeup */ |
120 | 121 | #define acpi_wakeup_address ((unsigned long)(real_mode_header->wakeup_start)) | |
121 | /* early initialization routine */ | ||
122 | extern void acpi_reserve_wakeup_memory(void); | ||
123 | 122 | ||
124 | /* | 123 | /* |
125 | * Check if the CPU can handle C2 and deeper | 124 | * Check if the CPU can handle C2 and deeper |
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index ebaa04593236..74ee4ab577b6 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #include <acpi/acpi_bus.h> | 25 | #include <acpi/acpi_bus.h> |
26 | #include <acpi/acpi_drivers.h> | 26 | #include <acpi/acpi_drivers.h> |
27 | 27 | ||
28 | #include <asm/realmode.h> | ||
29 | |||
30 | #include "internal.h" | 28 | #include "internal.h" |
31 | #include "sleep.h" | 29 | #include "sleep.h" |
32 | 30 | ||
@@ -93,13 +91,11 @@ static struct notifier_block tts_notifier = { | |||
93 | static int acpi_sleep_prepare(u32 acpi_state) | 91 | static int acpi_sleep_prepare(u32 acpi_state) |
94 | { | 92 | { |
95 | #ifdef CONFIG_ACPI_SLEEP | 93 | #ifdef CONFIG_ACPI_SLEEP |
96 | unsigned long wakeup_pa = real_mode_header->wakeup_start; | ||
97 | /* do we have a wakeup address for S2 and S3? */ | 94 | /* do we have a wakeup address for S2 and S3? */ |
98 | if (acpi_state == ACPI_STATE_S3) { | 95 | if (acpi_state == ACPI_STATE_S3) { |
99 | if (!wakeup_pa) | 96 | if (!acpi_wakeup_address) |
100 | return -EFAULT; | 97 | return -EFAULT; |
101 | acpi_set_firmware_waking_vector( | 98 | acpi_set_firmware_waking_vector(acpi_wakeup_address); |
102 | (acpi_physical_address)wakeup_pa); | ||
103 | 99 | ||
104 | } | 100 | } |
105 | ACPI_FLUSH_CPU_CACHE(); | 101 | ACPI_FLUSH_CPU_CACHE(); |