File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ const struct cpu_operations cpu_ops_sbi;
1818
1919/*
2020 * Ordered booting via HSM brings one cpu at a time. However, cpu hotplug can
21- * be invoked from multiple threads in parallel. Define a per cpu data
21+ * be invoked from multiple threads in parallel. Define an array of boot data
2222 * to handle that.
2323 */
24- static DEFINE_PER_CPU ( struct sbi_hart_boot_data , boot_data ) ;
24+ static struct sbi_hart_boot_data boot_data [ NR_CPUS ] ;
2525
2626static int sbi_hsm_hart_start (unsigned long hartid , unsigned long saddr ,
2727 unsigned long priv )
@@ -67,7 +67,7 @@ static int sbi_cpu_start(unsigned int cpuid, struct task_struct *tidle)
6767 unsigned long boot_addr = __pa_symbol (secondary_start_sbi );
6868 unsigned long hartid = cpuid_to_hartid_map (cpuid );
6969 unsigned long hsm_data ;
70- struct sbi_hart_boot_data * bdata = & per_cpu ( boot_data , cpuid ) ;
70+ struct sbi_hart_boot_data * bdata = & boot_data [ cpuid ] ;
7171
7272 /* Make sure tidle is updated */
7373 smp_mb ();
You can’t perform that action at this time.
0 commit comments