Home
last modified time | relevance | path

Searched refs:g_sysClock (Results 1 – 17 of 17) sorted by relevance

/kernel/liteos_m/kernel/src/
Dlos_tick.c45 LITE_OS_SEC_BSS UINT32 g_sysClock; variable
181 g_sysClock = g_sysTickTimer->freq; in OsTickTimerInit()
242 UINT32 oldFreq = g_sysClock; in LOS_SysTickClockFreqAdjust()
255 if ((freq == 0) || (freq == g_sysClock)) { in LOS_SysTickClockFreqAdjust()
271 g_sysClock = g_sysTickTimer->freq; in LOS_SysTickClockFreqAdjust()
353 if (g_sysClock == 0) { in OsCpuTick2MS()
357 temp = tmpCpuTick / ((DOUBLE)g_sysClock / OS_SYS_MS_PER_SECOND); in OsCpuTick2MS()
384 if (g_sysClock == 0) { in OsCpuTick2US()
388 temp = tmpCpuTick / ((DOUBLE)g_sysClock / OS_SYS_US_PER_SECOND); in OsCpuTick2US()
408 …nanos = LOS_SysCycleGet() * (OS_SYS_NS_PER_SECOND / OS_SYS_NS_PER_MS) / (g_sysClock / OS_SYS_NS_PE… in LOS_CurrNanosec()
[all …]
Dlos_sched.c431 … taskCB->timeSlice = (INT32)OsTimeConvertFreq((UINT64)taskCB->timeSlice, oldFreq, g_sysClock); in TaskSchedTimeConvertFreq()
437 taskCB->startTime = OsTimeConvertFreq(taskCB->startTime, oldFreq, g_sysClock); in TaskSchedTimeConvertFreq()
446 g_schedTickMinPeriod = g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND_MINI; in SchedTimeBaseInit()
448 …g_schedTimeSlice = (INT32)(((UINT64)g_sysClock * LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT) / OS_SYS_US_P… in SchedTimeBaseInit()
449 …g_schedTimeSliceMin = (INT32)(((UINT64)g_sysClock * 50) / OS_SYS_US_PER_SECOND); /* Minimum time s… in SchedTimeBaseInit()
585 return OS_SYS_CYCLE_TO_NS(responseTime, g_sysClock); in LOS_SchedTickTimeoutNsGet()
Dlos_sortlink.c122 listSorted->responseTime = OsTimeConvertFreq(listSorted->responseTime, oldFreq, g_sysClock); in SortLinkNodeTimeUpdate()
/kernel/liteos_m/kernel/include/
Dlos_tick.h130 extern UINT32 g_sysClock;
144 #define OS_CYCLE_PER_TICK (g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND)
146 #define OS_NS_PER_CYCLE (OS_SYS_NS_PER_SECOND / g_sysClock)
160 #define OS_SYS_TICK_TO_CYCLE(ticks) (((UINT64)(ticks) * g_sysClock) / LOSCFG_BASE_CORE_TICK_PER_SEC…
162 …e OS_SYS_CYCLE_TO_TICK(cycle) ((((UINT64)(cycle)) * LOSCFG_BASE_CORE_TICK_PER_SECOND) / g_sysClock)
611 return (UINT64)((cycle / (g_sysClock / OS_SYS_MS_PER_SECOND))); in OsCycle2MS()
634 UINT64 tmp = g_sysClock / OS_SYS_US_PER_SECOND; in OsCycle2US()
Dlos_sched.h46 #define OS_SCHED_MINI_PERIOD (g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND_MINI)
/kernel/liteos_a/arch/arm/arm/src/
Dlos_hw_tick.c64 …return (cycle / g_sysClock) * OS_SYS_NS_PER_SECOND + (cycle % g_sysClock) * OS_SYS_NS_PER_SECOND /… in LOS_CurrNanosec()
Darm_generic_timer.c132 g_sysClock = HalClockFreqRead(); in HalClockInit()
151 UINT64 cycles = (UINT64)usecs * g_sysClock / OS_SYS_US_PER_SECOND; in HalDelayUs()
/kernel/liteos_a/kernel/base/core/
Dlos_tick.c40 LITE_OS_SEC_DATA_INIT UINT32 g_sysClock; variable
Dlos_sys.c45 return g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND; in LOS_CyclePerTickGet()
/kernel/liteos_a/kernel/common/
Dlos_config.c75 g_sysClock = OS_SYS_CLOCK; in EarliestInit()
96 ret = OsTickInit(g_sysClock, LOSCFG_BASE_CORE_TICK_PER_SECOND); in ArchEarlyInit()
/kernel/liteos_a/kernel/include/
Dlos_tick.h86 extern UINT32 g_sysClock;
/kernel/liteos_m/components/cpup/
Dlos_cpup.c59 #define OS_CPUP_RECORD_PERIOD (g_sysClock)
61 #define OS_SYS_CYCLE_TO_US(cycle) ((cycle) / (g_sysClock)) * OS_SYS_US_PER_SECOND + \
62 ((cycle) % (g_sysClock) * OS_SYS_US_PER_SECOND / (g_sysClock))
/kernel/liteos_m/components/trace/
Dtrace_online.c46 .clockFreq = g_sysClock, in OsTraceSendHead()
Dtrace_offline.c67 g_traceRecoder.head->baseInfo.clockFreq = g_sysClock; in OsTraceBufInit()
/kernel/liteos_m/kal/posix/src/
Dtime.c284 UINT64 nowNsec = (cycle / g_sysClock) * OS_SYS_NS_PER_SECOND + in OsGetHwTime()
285 (cycle % g_sysClock) * OS_SYS_NS_PER_SECOND / g_sysClock; in OsGetHwTime()
407 tp->tv_nsec = OS_SYS_NS_PER_SECOND / g_sysClock; in clock_getres()
/kernel/liteos_m/components/power/
Dlos_pm.c110 realSleepTime = OS_SYS_NS_TO_CYCLE(realSleepTime, g_sysClock); in OsPmTickTimerStart()
142 sleepCycle = OS_SYS_CYCLE_TO_NS(realSleepTime, g_sysClock); in OsPmTickTimerStop()
/kernel/liteos_m/kal/cmsis/
Dcmsis_liteos2.c242 return g_sysClock; in osKernelGetSysTimerFreq()