sched/smp: flush dcache before start other cpus
core0 may write the data used by other cpu, this will cause cache inconsistency. so need fulsh dcache before start other cpus. Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
5b7267bf66
commit
fb12e7530d
|
@ -111,6 +111,10 @@ int nx_smp_start(void)
|
|||
int ret;
|
||||
int cpu;
|
||||
|
||||
/* Flush dcache before start other CPUs. */
|
||||
|
||||
up_flush_dcache_all();
|
||||
|
||||
/* Start all of the other CPUs. CPU0 is already running. */
|
||||
|
||||
for (cpu = 1; cpu < CONFIG_SMP_NCPUS; cpu++)
|
||||
|
|
Loading…
Reference in New Issue