diff options
Diffstat (limited to 'arch/x86/mm/amdtopology.c')
-rw-r--r-- | arch/x86/mm/amdtopology.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/x86/mm/amdtopology.c b/arch/x86/mm/amdtopology.c index ba47524f56e8..d1c7de095808 100644 --- a/arch/x86/mm/amdtopology.c +++ b/arch/x86/mm/amdtopology.c | |||
@@ -52,21 +52,6 @@ static __init int find_northbridge(void) | |||
52 | return -ENOENT; | 52 | return -ENOENT; |
53 | } | 53 | } |
54 | 54 | ||
55 | static __init void early_get_boot_cpu_id(void) | ||
56 | { | ||
57 | /* | ||
58 | * need to get the APIC ID of the BSP so can use that to | ||
59 | * create apicid_to_node in amd_scan_nodes() | ||
60 | */ | ||
61 | #ifdef CONFIG_X86_MPPARSE | ||
62 | /* | ||
63 | * get boot-time SMP configuration: | ||
64 | */ | ||
65 | if (smp_found_config) | ||
66 | early_get_smp_config(); | ||
67 | #endif | ||
68 | } | ||
69 | |||
70 | int __init amd_numa_init(void) | 55 | int __init amd_numa_init(void) |
71 | { | 56 | { |
72 | u64 start = PFN_PHYS(0); | 57 | u64 start = PFN_PHYS(0); |
@@ -180,8 +165,11 @@ int __init amd_numa_init(void) | |||
180 | cores = 1 << bits; | 165 | cores = 1 << bits; |
181 | apicid_base = 0; | 166 | apicid_base = 0; |
182 | 167 | ||
183 | /* get the APIC ID of the BSP early for systems with apicid lifting */ | 168 | /* |
184 | early_get_boot_cpu_id(); | 169 | * get boot-time SMP configuration: |
170 | */ | ||
171 | early_get_smp_config(); | ||
172 | |||
185 | if (boot_cpu_physical_apicid > 0) { | 173 | if (boot_cpu_physical_apicid > 0) { |
186 | pr_info("BSP APIC ID: %02x\n", boot_cpu_physical_apicid); | 174 | pr_info("BSP APIC ID: %02x\n", boot_cpu_physical_apicid); |
187 | apicid_base = boot_cpu_physical_apicid; | 175 | apicid_base = boot_cpu_physical_apicid; |