!140 3518开源板系统启动后未初始化时钟寄存器CNTFRQ,导致系统延时不准

Merge pull request !140 from zhangfanfan2/master
This commit is contained in:
openharmony_ci 2021-04-14 13:54:06 +08:00 committed by Gitee
commit 08543cea6c
1 changed files with 1 additions and 3 deletions

View File

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