From 5ce70a50c3733b6ec8cc4b444837e366ec837f69 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Wed, 10 Nov 2021 19:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20smp=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AD?= =?UTF-8?q?=E5=89=AF=E6=A0=B8=E5=86=97=E4=BD=99=E7=9A=84=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close: #I4F8A5 Signed-off-by: arvinzzz Change-Id: I9a863d3265fd18051d8bfcaab51ad59216630e91 --- arch/arm/arm/src/smp.c | 2 -- kernel/base/core/los_smp.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/arch/arm/arm/src/smp.c b/arch/arm/arm/src/smp.c index a747a744..b124b2f0 100644 --- a/arch/arm/arm/src/smp.c +++ b/arch/arm/arm/src/smp.c @@ -35,7 +35,6 @@ #include "los_hw.h" #include "los_atomic.h" #include "los_arch_mmu.h" -#include "los_init_pri.h" #include "gic_common.h" #include "los_task_pri.h" @@ -94,7 +93,6 @@ VOID HalSecondaryCpuStart(VOID) /* store each core's hwid */ CPU_MAP_SET(cpuid, OsHwIDGet()); HalIrqInitPercpu(); - OsInitCall(LOS_INIT_LEVEL_ARCH); cpuInit->cpuStart(cpuInit->arg); diff --git a/kernel/base/core/los_smp.c b/kernel/base/core/los_smp.c index 15002274..d92c7f55 100644 --- a/kernel/base/core/los_smp.c +++ b/kernel/base/core/los_smp.c @@ -44,17 +44,13 @@ STATIC struct SmpOps *g_smpOps = NULL; STATIC VOID OsSmpSecondaryInit(VOID *arg) { UNUSED(arg); - OsInitCall(LOS_INIT_LEVEL_PLATFORM); OsCurrProcessSet(OS_PCB_FROM_PID(OsGetKernelInitProcessID())); - OsInitCall(LOS_INIT_LEVEL_KMOD_BASIC); #ifdef LOSCFG_BASE_CORE_SWTMR_ENABLE OsSwtmrInit(); #endif - OsInitCall(LOS_INIT_LEVEL_KMOD_EXTENDED); - OsIdleTaskCreate(); OsInitCall(LOS_INIT_LEVEL_KMOD_TASK); -- GitLab