Searched refs:g_sysClock (Results 1 – 17 of 17) sorted by relevance
/kernel/liteos_m/kernel/src/ |
D | los_tick.c | 45 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 …]
|
D | los_sched.c | 431 … 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()
|
D | los_sortlink.c | 122 listSorted->responseTime = OsTimeConvertFreq(listSorted->responseTime, oldFreq, g_sysClock); in SortLinkNodeTimeUpdate()
|
/kernel/liteos_m/kernel/include/ |
D | los_tick.h | 130 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()
|
D | los_sched.h | 46 #define OS_SCHED_MINI_PERIOD (g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND_MINI)
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_hw_tick.c | 64 …return (cycle / g_sysClock) * OS_SYS_NS_PER_SECOND + (cycle % g_sysClock) * OS_SYS_NS_PER_SECOND /… in LOS_CurrNanosec()
|
D | arm_generic_timer.c | 132 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/ |
D | los_tick.c | 40 LITE_OS_SEC_DATA_INIT UINT32 g_sysClock; variable
|
D | los_sys.c | 45 return g_sysClock / LOSCFG_BASE_CORE_TICK_PER_SECOND; in LOS_CyclePerTickGet()
|
/kernel/liteos_a/kernel/common/ |
D | los_config.c | 75 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/ |
D | los_tick.h | 86 extern UINT32 g_sysClock;
|
/kernel/liteos_m/components/cpup/ |
D | los_cpup.c | 59 #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/ |
D | trace_online.c | 46 .clockFreq = g_sysClock, in OsTraceSendHead()
|
D | trace_offline.c | 67 g_traceRecoder.head->baseInfo.clockFreq = g_sysClock; in OsTraceBufInit()
|
/kernel/liteos_m/kal/posix/src/ |
D | time.c | 284 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/ |
D | los_pm.c | 110 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/ |
D | cmsis_liteos2.c | 242 return g_sysClock; in osKernelGetSysTimerFreq()
|