ARMv7-A/i.MX6 SMP: Move SMP coherernt cache setup to earlier in initialization of CPUn, n>0

This commit is contained in:
Gregory Nutt 2016-11-27 11:28:24 -06:00
parent b5bfe8af17
commit 21e42d18c1
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,6 @@
#include "up_internal.h" #include "up_internal.h"
#include "cp15_cacheops.h" #include "cp15_cacheops.h"
#include "gic.h" #include "gic.h"
#include "scu.h"
#include "sched/sched.h" #include "sched/sched.h"
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
@ -110,10 +109,6 @@ int arm_start_handler(int irq, FAR void *context)
sinfo("CPU%d Started\n", cpu); sinfo("CPU%d Started\n", cpu);
/* Enable SMP cache coherency for the CPU */
arm_enable_smp(cpu);
/* Reset scheduler parameters */ /* Reset scheduler parameters */
tcb = this_task(); tcb = this_task();

View File

@ -51,6 +51,7 @@
#include "chip/imx_src.h" #include "chip/imx_src.h"
#include "sctlr.h" #include "sctlr.h"
#include "smp.h" #include "smp.h"
#include "scu.h"
#include "fpu.h" #include "fpu.h"
#include "gic.h" #include "gic.h"
@ -259,6 +260,10 @@ void imx_cpu_enable(void)
void arm_cpu_boot(int cpu) void arm_cpu_boot(int cpu)
{ {
/* Enable SMP cache coherency for the CPU */
arm_enable_smp(cpu);
#ifdef CONFIG_ARCH_FPU #ifdef CONFIG_ARCH_FPU
/* Initialize the FPU */ /* Initialize the FPU */