IssueNo:#I3IK07

Description:LOS_SysCycleGet replace HalCpuCycleGet
Sig:kernel
Feature or Bugfix:Feature
Binary Source:No

Change-Id: Ife3a4d351818f718f58d3624b5ee6dd127113378
This commit is contained in:
zhushengle
2021-04-17 16:07:51 +08:00
parent c5f517667a
commit bad8c3d53b
14 changed files with 19 additions and 149 deletions

View File

@@ -44,7 +44,6 @@ extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
WEAK UINT32 HalTickStart(OS_TICK_HANDLER handler)
{
g_sysClock = OS_SYS_CLOCK;
@@ -82,20 +81,6 @@ WEAK UINT64 HalGetTickCycle(UINT32 *period)
return OS_COMBINED_64(timerH, timerL);
}
WEAK VOID HalGetCpuCycle(UINT32 *cntHi, UINT32 *cntLo)
{
UINT64 cycle;
if ((cntHi == NULL) || (cntLo == NULL)) {
return;
}
cycle = OsGetCurrSchedTimeCycle();
*cntHi = cycle >> SHIFT_32_BIT;
*cntLo = cycle & CYCLE_CHECK;
return;
}
VOID HalEnterSleep(LOS_SysSleepEnum sleep)
{
#if (LOSCFG_BASE_CORE_SCHED_SLEEP == 1)