diff options
-rw-r--r-- | arch/x86/kernel/apic/bigsmp_32.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index dd32a9b78a87..bc7ed040bb0e 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c | |||
@@ -45,6 +45,12 @@ static unsigned long bigsmp_check_apicid_present(int bit) | |||
45 | return 1; | 45 | return 1; |
46 | } | 46 | } |
47 | 47 | ||
48 | static int bigsmp_early_logical_apicid(int cpu) | ||
49 | { | ||
50 | /* on bigsmp, logical apicid is the same as physical */ | ||
51 | return early_per_cpu(x86_cpu_to_apicid, cpu); | ||
52 | } | ||
53 | |||
48 | static inline unsigned long calculate_ldr(int cpu) | 54 | static inline unsigned long calculate_ldr(int cpu) |
49 | { | 55 | { |
50 | unsigned long val, id; | 56 | unsigned long val, id; |
@@ -252,5 +258,5 @@ struct apic apic_bigsmp = { | |||
252 | .wait_icr_idle = native_apic_wait_icr_idle, | 258 | .wait_icr_idle = native_apic_wait_icr_idle, |
253 | .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, | 259 | .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, |
254 | 260 | ||
255 | .x86_32_early_logical_apicid = noop_x86_32_early_logical_apicid, | 261 | .x86_32_early_logical_apicid = bigsmp_early_logical_apicid, |
256 | }; | 262 | }; |