File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,6 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)
201
201
return ret ;
202
202
}
203
203
204
- static void smp_store_cpu_info (unsigned int cpuid )
205
- {
206
- store_cpu_topology (cpuid );
207
- numa_store_cpu_info (cpuid );
208
- }
209
-
210
204
/*
211
205
* This is the secondary CPU boot entry. We're using this CPUs
212
206
* idle thread stack, but a set of temporary page tables.
@@ -254,7 +248,7 @@ asmlinkage void secondary_start_kernel(void)
254
248
*/
255
249
notify_cpu_starting (cpu );
256
250
257
- smp_store_cpu_info (cpu );
251
+ store_cpu_topology (cpu );
258
252
259
253
/*
260
254
* OK, now it's safe to let the boot CPU continue. Wait for
@@ -689,10 +683,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
689
683
{
690
684
int err ;
691
685
unsigned int cpu ;
686
+ unsigned int this_cpu ;
692
687
693
688
init_cpu_topology ();
694
689
695
- smp_store_cpu_info (smp_processor_id ());
690
+ this_cpu = smp_processor_id ();
691
+ store_cpu_topology (this_cpu );
692
+ numa_store_cpu_info (this_cpu );
696
693
697
694
/*
698
695
* If UP is mandated by "nosmp" (which implies "maxcpus=0"), don't set
@@ -719,6 +716,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
719
716
continue ;
720
717
721
718
set_cpu_present (cpu , true);
719
+ numa_store_cpu_info (cpu );
722
720
}
723
721
}
724
722
You can’t perform that action at this time.
0 commit comments