diff options
Diffstat (limited to 'arch/x86/include/asm/smp.h')
-rw-r--r-- | arch/x86/include/asm/smp.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index d4ac4de4bcec..47d0e21f2b9e 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h | |||
@@ -173,8 +173,6 @@ extern int safe_smp_processor_id(void); | |||
173 | 173 | ||
174 | #endif | 174 | #endif |
175 | 175 | ||
176 | #include <asm/genapic.h> | ||
177 | |||
178 | #ifdef CONFIG_X86_LOCAL_APIC | 176 | #ifdef CONFIG_X86_LOCAL_APIC |
179 | 177 | ||
180 | #ifndef CONFIG_X86_64 | 178 | #ifndef CONFIG_X86_64 |
@@ -184,26 +182,9 @@ static inline int logical_smp_processor_id(void) | |||
184 | return GET_APIC_LOGICAL_ID(*(u32 *)(APIC_BASE + APIC_LDR)); | 182 | return GET_APIC_LOGICAL_ID(*(u32 *)(APIC_BASE + APIC_LDR)); |
185 | } | 183 | } |
186 | 184 | ||
187 | static inline unsigned int read_apic_id(void) | ||
188 | { | ||
189 | unsigned int reg; | ||
190 | |||
191 | reg = *(u32 *)(APIC_BASE + APIC_ID); | ||
192 | |||
193 | return apic->get_apic_id(reg); | ||
194 | } | ||
195 | #endif | 185 | #endif |
196 | 186 | ||
197 | |||
198 | # if defined(APIC_DEFINITION) || defined(CONFIG_X86_64) | ||
199 | extern int hard_smp_processor_id(void); | 187 | extern int hard_smp_processor_id(void); |
200 | # else | ||
201 | static inline int hard_smp_processor_id(void) | ||
202 | { | ||
203 | /* we don't want to mark this access volatile - bad code generation */ | ||
204 | return read_apic_id(); | ||
205 | } | ||
206 | # endif /* APIC_DEFINITION */ | ||
207 | 188 | ||
208 | #else /* CONFIG_X86_LOCAL_APIC */ | 189 | #else /* CONFIG_X86_LOCAL_APIC */ |
209 | 190 | ||