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;
18
18
19
19
/*
20
20
* 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
22
22
* to handle that.
23
23
*/
24
- static DEFINE_PER_CPU ( struct sbi_hart_boot_data , boot_data ) ;
24
+ static struct sbi_hart_boot_data boot_data [ NR_CPUS ] ;
25
25
26
26
static int sbi_hsm_hart_start (unsigned long hartid , unsigned long saddr ,
27
27
unsigned long priv )
@@ -67,7 +67,7 @@ static int sbi_cpu_start(unsigned int cpuid, struct task_struct *tidle)
67
67
unsigned long boot_addr = __pa_symbol (secondary_start_sbi );
68
68
unsigned long hartid = cpuid_to_hartid_map (cpuid );
69
69
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 ] ;
71
71
72
72
/* Make sure tidle is updated */
73
73
smp_mb ();
You can’t perform that action at this time.
0 commit comments