diff options
| author | Len Brown <len.brown@intel.com> | 2007-07-25 01:35:25 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2007-07-25 01:35:25 -0400 |
| commit | 1e1f3f24cdbc53e67acd7b2e37e6cf0cb11bd13c (patch) | |
| tree | f2f8e838d36722d39d62eb7eec7a1b3ad29d0d5a /include | |
| parent | c30c620ee1cc351bcc149c4280e1166998df0064 (diff) | |
| parent | e8b2fd01228f690c3e0cb3f14facfa8d93d4adae (diff) | |
Pull kconfig into release branch
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/acpi_drivers.h | 4 | ||||
| -rw-r--r-- | include/asm-i386/acpi.h | 23 | ||||
| -rw-r--r-- | include/asm-i386/suspend.h | 2 | ||||
| -rw-r--r-- | include/asm-ia64/acpi.h | 5 | ||||
| -rw-r--r-- | include/asm-x86_64/acpi.h | 22 | ||||
| -rw-r--r-- | include/asm-x86_64/suspend.h | 2 |
6 files changed, 24 insertions, 34 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 553515912c0b..07b5d76b92cc 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
| @@ -142,10 +142,6 @@ static inline void unregister_hotplug_dock_device(acpi_handle handle) | |||
| 142 | /*-------------------------------------------------------------------------- | 142 | /*-------------------------------------------------------------------------- |
| 143 | Suspend/Resume | 143 | Suspend/Resume |
| 144 | -------------------------------------------------------------------------- */ | 144 | -------------------------------------------------------------------------- */ |
| 145 | #ifdef CONFIG_ACPI_SLEEP | ||
| 146 | extern int acpi_sleep_init(void); | 145 | extern int acpi_sleep_init(void); |
| 147 | #else | ||
| 148 | #define acpi_sleep_init() do {} while (0) | ||
| 149 | #endif | ||
| 150 | 146 | ||
| 151 | #endif /*__ACPI_DRIVERS_H__*/ | 147 | #endif /*__ACPI_DRIVERS_H__*/ |
diff --git a/include/asm-i386/acpi.h b/include/asm-i386/acpi.h index 449f3f272e07..125179adf044 100644 --- a/include/asm-i386/acpi.h +++ b/include/asm-i386/acpi.h | |||
| @@ -121,19 +121,6 @@ static inline void acpi_disable_pci(void) | |||
| 121 | } | 121 | } |
| 122 | extern int acpi_irq_balance_set(char *str); | 122 | extern int acpi_irq_balance_set(char *str); |
| 123 | 123 | ||
| 124 | #else /* !CONFIG_ACPI */ | ||
| 125 | |||
| 126 | #define acpi_lapic 0 | ||
| 127 | #define acpi_ioapic 0 | ||
| 128 | static inline void acpi_noirq_set(void) { } | ||
| 129 | static inline void acpi_disable_pci(void) { } | ||
| 130 | static inline void disable_acpi(void) { } | ||
| 131 | |||
| 132 | #endif /* !CONFIG_ACPI */ | ||
| 133 | |||
| 134 | |||
| 135 | #ifdef CONFIG_ACPI_SLEEP | ||
| 136 | |||
| 137 | /* routines for saving/restoring kernel state */ | 124 | /* routines for saving/restoring kernel state */ |
| 138 | extern int acpi_save_state_mem(void); | 125 | extern int acpi_save_state_mem(void); |
| 139 | extern void acpi_restore_state_mem(void); | 126 | extern void acpi_restore_state_mem(void); |
| @@ -143,7 +130,15 @@ extern unsigned long acpi_wakeup_address; | |||
| 143 | /* early initialization routine */ | 130 | /* early initialization routine */ |
| 144 | extern void acpi_reserve_bootmem(void); | 131 | extern void acpi_reserve_bootmem(void); |
| 145 | 132 | ||
| 146 | #endif /*CONFIG_ACPI_SLEEP*/ | 133 | #else /* !CONFIG_ACPI */ |
| 134 | |||
| 135 | #define acpi_lapic 0 | ||
| 136 | #define acpi_ioapic 0 | ||
| 137 | static inline void acpi_noirq_set(void) { } | ||
| 138 | static inline void acpi_disable_pci(void) { } | ||
| 139 | static inline void disable_acpi(void) { } | ||
| 140 | |||
| 141 | #endif /* !CONFIG_ACPI */ | ||
| 147 | 142 | ||
| 148 | #define ARCH_HAS_POWER_INIT 1 | 143 | #define ARCH_HAS_POWER_INIT 1 |
| 149 | 144 | ||
diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h index 8dbaafe611ff..a2520732ffd6 100644 --- a/include/asm-i386/suspend.h +++ b/include/asm-i386/suspend.h | |||
| @@ -21,7 +21,7 @@ struct saved_context { | |||
| 21 | unsigned long return_address; | 21 | unsigned long return_address; |
| 22 | } __attribute__((packed)); | 22 | } __attribute__((packed)); |
| 23 | 23 | ||
| 24 | #ifdef CONFIG_ACPI_SLEEP | 24 | #ifdef CONFIG_ACPI |
| 25 | extern unsigned long saved_eip; | 25 | extern unsigned long saved_eip; |
| 26 | extern unsigned long saved_esp; | 26 | extern unsigned long saved_esp; |
| 27 | extern unsigned long saved_ebp; | 27 | extern unsigned long saved_ebp; |
diff --git a/include/asm-ia64/acpi.h b/include/asm-ia64/acpi.h index 5b526357d178..49730ffbbae4 100644 --- a/include/asm-ia64/acpi.h +++ b/include/asm-ia64/acpi.h | |||
| @@ -100,6 +100,11 @@ const char *acpi_get_sysname (void); | |||
| 100 | int acpi_request_vector (u32 int_type); | 100 | int acpi_request_vector (u32 int_type); |
| 101 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); | 101 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); |
| 102 | 102 | ||
| 103 | /* routines for saving/restoring kernel state */ | ||
| 104 | extern int acpi_save_state_mem(void); | ||
| 105 | extern void acpi_restore_state_mem(void); | ||
| 106 | extern unsigned long acpi_wakeup_address; | ||
| 107 | |||
| 103 | /* | 108 | /* |
| 104 | * Record the cpei override flag and current logical cpu. This is | 109 | * Record the cpei override flag and current logical cpu. This is |
| 105 | * useful for CPU removal. | 110 | * useful for CPU removal. |
diff --git a/include/asm-x86_64/acpi.h b/include/asm-x86_64/acpi.h index 1da8f49c0fe2..98173357dd89 100644 --- a/include/asm-x86_64/acpi.h +++ b/include/asm-x86_64/acpi.h | |||
| @@ -108,6 +108,15 @@ static inline void acpi_disable_pci(void) | |||
| 108 | } | 108 | } |
| 109 | extern int acpi_irq_balance_set(char *str); | 109 | extern int acpi_irq_balance_set(char *str); |
| 110 | 110 | ||
| 111 | /* routines for saving/restoring kernel state */ | ||
| 112 | extern int acpi_save_state_mem(void); | ||
| 113 | extern void acpi_restore_state_mem(void); | ||
| 114 | |||
| 115 | extern unsigned long acpi_wakeup_address; | ||
| 116 | |||
| 117 | /* early initialization routine */ | ||
| 118 | extern void acpi_reserve_bootmem(void); | ||
| 119 | |||
| 111 | #else /* !CONFIG_ACPI */ | 120 | #else /* !CONFIG_ACPI */ |
| 112 | 121 | ||
| 113 | #define acpi_lapic 0 | 122 | #define acpi_lapic 0 |
| @@ -121,19 +130,6 @@ extern int acpi_numa; | |||
| 121 | extern int acpi_scan_nodes(unsigned long start, unsigned long end); | 130 | extern int acpi_scan_nodes(unsigned long start, unsigned long end); |
| 122 | #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) | 131 | #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) |
| 123 | 132 | ||
| 124 | #ifdef CONFIG_ACPI_SLEEP | ||
| 125 | |||
| 126 | /* routines for saving/restoring kernel state */ | ||
| 127 | extern int acpi_save_state_mem(void); | ||
| 128 | extern void acpi_restore_state_mem(void); | ||
| 129 | |||
| 130 | extern unsigned long acpi_wakeup_address; | ||
| 131 | |||
| 132 | /* early initialization routine */ | ||
| 133 | extern void acpi_reserve_bootmem(void); | ||
| 134 | |||
| 135 | #endif /*CONFIG_ACPI_SLEEP*/ | ||
| 136 | |||
| 137 | extern int acpi_disabled; | 133 | extern int acpi_disabled; |
| 138 | extern int acpi_pci_disabled; | 134 | extern int acpi_pci_disabled; |
| 139 | 135 | ||
diff --git a/include/asm-x86_64/suspend.h b/include/asm-x86_64/suspend.h index 9c3f8de90d2d..b897e8cb55fb 100644 --- a/include/asm-x86_64/suspend.h +++ b/include/asm-x86_64/suspend.h | |||
| @@ -44,7 +44,6 @@ extern unsigned long saved_context_eflags; | |||
| 44 | 44 | ||
| 45 | extern void fix_processor_context(void); | 45 | extern void fix_processor_context(void); |
| 46 | 46 | ||
| 47 | #ifdef CONFIG_ACPI_SLEEP | ||
| 48 | extern unsigned long saved_rip; | 47 | extern unsigned long saved_rip; |
| 49 | extern unsigned long saved_rsp; | 48 | extern unsigned long saved_rsp; |
| 50 | extern unsigned long saved_rbp; | 49 | extern unsigned long saved_rbp; |
| @@ -54,4 +53,3 @@ extern unsigned long saved_rdi; | |||
| 54 | 53 | ||
| 55 | /* routines for saving/restoring kernel state */ | 54 | /* routines for saving/restoring kernel state */ |
| 56 | extern int acpi_save_state_mem(void); | 55 | extern int acpi_save_state_mem(void); |
| 57 | #endif | ||
