diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/x86/include/asm/acpi.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'arch/x86/include/asm/acpi.h')
-rw-r--r-- | arch/x86/include/asm/acpi.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index 92091de11113..610001d385dd 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/trampoline.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 |
@@ -88,11 +89,15 @@ extern int acpi_disabled; | |||
88 | extern int acpi_pci_disabled; | 89 | extern int acpi_pci_disabled; |
89 | extern int acpi_skip_timer_override; | 90 | extern int acpi_skip_timer_override; |
90 | extern int acpi_use_timer_override; | 91 | extern int acpi_use_timer_override; |
92 | extern int acpi_fix_pin2_polarity; | ||
91 | 93 | ||
92 | extern u8 acpi_sci_flags; | 94 | extern u8 acpi_sci_flags; |
93 | extern int acpi_sci_override_gsi; | 95 | extern int acpi_sci_override_gsi; |
94 | void acpi_pic_sci_set_trigger(unsigned int, u16); | 96 | void acpi_pic_sci_set_trigger(unsigned int, u16); |
95 | 97 | ||
98 | extern int (*__acpi_register_gsi)(struct device *dev, u32 gsi, | ||
99 | int trigger, int polarity); | ||
100 | |||
96 | static inline void disable_acpi(void) | 101 | static inline void disable_acpi(void) |
97 | { | 102 | { |
98 | acpi_disabled = 1; | 103 | acpi_disabled = 1; |
@@ -109,11 +114,11 @@ static inline void acpi_disable_pci(void) | |||
109 | acpi_noirq_set(); | 114 | acpi_noirq_set(); |
110 | } | 115 | } |
111 | 116 | ||
112 | /* routines for saving/restoring kernel state */ | 117 | /* Low-level suspend routine. */ |
113 | extern int acpi_save_state_mem(void); | 118 | extern int acpi_suspend_lowlevel(void); |
114 | extern void acpi_restore_state_mem(void); | ||
115 | 119 | ||
116 | extern unsigned long acpi_wakeup_address; | 120 | extern const unsigned char acpi_wakeup_code[]; |
121 | #define acpi_wakeup_address (__pa(TRAMPOLINE_SYM(acpi_wakeup_code))) | ||
117 | 122 | ||
118 | /* early initialization routine */ | 123 | /* early initialization routine */ |
119 | extern void acpi_reserve_wakeup_memory(void); | 124 | extern void acpi_reserve_wakeup_memory(void); |
@@ -134,7 +139,7 @@ static inline unsigned int acpi_processor_cstate_check(unsigned int max_cstate) | |||
134 | boot_cpu_data.x86_model <= 0x05 && | 139 | boot_cpu_data.x86_model <= 0x05 && |
135 | boot_cpu_data.x86_mask < 0x0A) | 140 | boot_cpu_data.x86_mask < 0x0A) |
136 | return 1; | 141 | return 1; |
137 | else if (c1e_detected) | 142 | else if (amd_e400_c1e_detected) |
138 | return 1; | 143 | return 1; |
139 | else | 144 | else |
140 | return max_cstate; | 145 | return max_cstate; |
@@ -178,21 +183,10 @@ static inline void disable_acpi(void) { } | |||
178 | 183 | ||
179 | #define ARCH_HAS_POWER_INIT 1 | 184 | #define ARCH_HAS_POWER_INIT 1 |
180 | 185 | ||
181 | struct bootnode; | ||
182 | |||
183 | #ifdef CONFIG_ACPI_NUMA | 186 | #ifdef CONFIG_ACPI_NUMA |
184 | extern int acpi_numa; | 187 | extern int acpi_numa; |
185 | extern int acpi_get_nodes(struct bootnode *physnodes); | 188 | extern int x86_acpi_numa_init(void); |
186 | extern int acpi_scan_nodes(unsigned long start, unsigned long end); | 189 | #endif /* CONFIG_ACPI_NUMA */ |
187 | #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) | ||
188 | extern void acpi_fake_nodes(const struct bootnode *fake_nodes, | ||
189 | int num_nodes); | ||
190 | #else | ||
191 | static inline void acpi_fake_nodes(const struct bootnode *fake_nodes, | ||
192 | int num_nodes) | ||
193 | { | ||
194 | } | ||
195 | #endif | ||
196 | 190 | ||
197 | #define acpi_unlazy_tlb(x) leave_mm(x) | 191 | #define acpi_unlazy_tlb(x) leave_mm(x) |
198 | 192 | ||