diff options
Diffstat (limited to 'include/asm-x86/mach-default/mach_apic.h')
| -rw-r--r-- | include/asm-x86/mach-default/mach_apic.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/asm-x86/mach-default/mach_apic.h b/include/asm-x86/mach-default/mach_apic.h index 0a6634f62abe..21003b56ae95 100644 --- a/include/asm-x86/mach-default/mach_apic.h +++ b/include/asm-x86/mach-default/mach_apic.h | |||
| @@ -109,13 +109,8 @@ static inline int cpu_to_logical_apicid(int cpu) | |||
| 109 | 109 | ||
| 110 | static inline int cpu_present_to_apicid(int mps_cpu) | 110 | static inline int cpu_present_to_apicid(int mps_cpu) |
| 111 | { | 111 | { |
| 112 | #ifdef CONFIG_X86_64 | 112 | if (mps_cpu < NR_CPUS && cpu_present(mps_cpu)) |
| 113 | if (cpu_present(mps_cpu)) | ||
| 114 | return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu); | 113 | return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu); |
| 115 | #else | ||
| 116 | if (mps_cpu < get_physical_broadcast()) | ||
| 117 | return mps_cpu; | ||
| 118 | #endif | ||
| 119 | else | 114 | else |
| 120 | return BAD_APICID; | 115 | return BAD_APICID; |
| 121 | } | 116 | } |
