初始化系统时钟

This commit is contained in:
zhangfanfan2 2021-04-14 11:27:40 +08:00 committed by Gitee
parent 8ba225700b
commit 2026102cdf
1 changed files with 1 additions and 3 deletions

View File

@ -156,11 +156,9 @@ LITE_OS_SEC_TEXT_INIT INT32 main(VOID)
OsSetMainTask(); OsSetMainTask();
OsCurrTaskSet(OsGetMainTask()); OsCurrTaskSet(OsGetMainTask());
/* set smp system counter freq */ /* set system counter freq */
#if (LOSCFG_KERNEL_SMP == YES)
#ifndef LOSCFG_TEE_ENABLE #ifndef LOSCFG_TEE_ENABLE
HalClockFreqWrite(OS_SYS_CLOCK); HalClockFreqWrite(OS_SYS_CLOCK);
#endif
#endif #endif
/* system and chip info */ /* system and chip info */