Home
last modified time | relevance | path

Searched refs:currTime (Results 1 – 19 of 19) sorted by relevance

/kernel/liteos_m/kernel/src/
Dlos_sched.c76 STATIC INLINE VOID OsTimeSliceUpdate(LosTaskCB *taskCB, UINT64 currTime) in OsTimeSliceUpdate() argument
78 LOS_ASSERT(currTime >= taskCB->startTime); in OsTimeSliceUpdate()
80 INT32 incTime = currTime - taskCB->startTime; in OsTimeSliceUpdate()
84 taskCB->startTime = currTime; in OsTimeSliceUpdate()
92 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsSchedSetNextExpireTime() local
93 UINT64 nextExpireTime = OsGetNextExpireTime(currTime, g_tickResponsePrecision); in OsSchedSetNextExpireTime()
112 nextResponseTime = nextExpireTime - currTime; in OsSchedSetNextExpireTime()
116 g_schedResponseTime = currTime + OsTickTimerReload(nextResponseTime); in OsSchedSetNextExpireTime()
209 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsSchedScanTimerList() local
210 while (sortList->responseTime <= currTime) { in OsSchedScanTimerList()
[all …]
Dlos_swtmr.c140 STATIC UINT64 OsSwtmrCalcStartTime(UINT64 currTime, SWTMR_CTRL_S *swtmr, const SWTMR_CTRL_S *alignS… in OsSwtmrCalcStartTime() argument
145 UINT64 remainTime = OsSortLinkGetRemainTime(currTime, &alignSwtmr->stSortList); in OsSwtmrCalcStartTime()
156 UINT64 OsSwtmrFindAlignPos(UINT64 currTime, SWTMR_CTRL_S *swtmr) in OsSwtmrFindAlignPos() argument
182 return OsSwtmrCalcStartTime(currTime, swtmr, swtmrListNode); in OsSwtmrFindAlignPos()
210 return OsSwtmrCalcStartTime(currTime, swtmr, minInLarge); in OsSwtmrFindAlignPos()
212 return OsSwtmrCalcStartTime(currTime, swtmr, maxInLittle); in OsSwtmrFindAlignPos()
216 return currTime; in OsSwtmrFindAlignPos()
228 LITE_OS_SEC_TEXT VOID OsSwtmrStart(UINT64 currTime, SWTMR_CTRL_S *swtmr) in OsSwtmrStart() argument
236 swtmr->startTime = OsSwtmrFindAlignPos(currTime, swtmr); in OsSwtmrStart()
282 STATIC VOID OsSwtmrTimeoutHandle(UINT64 currTime, SWTMR_CTRL_S *swtmr) in OsSwtmrTimeoutHandle() argument
[all …]
Dlos_sortlink.c152 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList) in OsSortLinkGetTargetExpireTime() argument
154 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetTargetExpireTime()
158 return (targetSortList->responseTime - currTime); in OsSortLinkGetTargetExpireTime()
Dlos_tick.c65 LITE_OS_SEC_TEXT VOID OsTickTimerBaseReset(UINT64 currTime) in OsTickTimerBaseReset() argument
67 LOS_ASSERT(currTime >= g_tickTimerBase); in OsTickTimerBaseReset()
69 g_tickTimerBase = currTime; in OsTickTimerBaseReset()
279 LITE_OS_SEC_TEXT_MINOR VOID OsTickSysTimerStartTimeSet(UINT64 currTime) in OsTickSysTimerStartTimeSet() argument
281 g_tickTimerStartTime = currTime; in OsTickSysTimerStartTimeSet()
/kernel/liteos_a/kernel/extended/plimit/
Dlos_schedlimit.c74 VOID OsSchedLimitUpdateRuntime(LosTaskCB *runTask, UINT64 currTime, INT32 incTime) in OsSchedLimitUpdateRuntime() argument
88 if ((schedLimit->startTime <= currTime) && (schedLimit->allRuntime < schedLimit->quota)) { in OsSchedLimitUpdateRuntime()
93 if (schedLimit->startTime <= currTime) { in OsSchedLimitUpdateRuntime()
94 schedLimit->startTime = currTime + schedLimit->period; in OsSchedLimitUpdateRuntime()
101 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsSchedLimitCheckTime() local
107 if (schedLimit->startTime >= currTime) { in OsSchedLimitCheckTime()
Dlos_schedlimit.h57 VOID OsSchedLimitUpdateRuntime(LosTaskCB *runTask, UINT64 currTime, INT32 incTime);
/kernel/liteos_a/kernel/base/sched/
Dlos_sortlink.c110 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList) in OsSortLinkGetTargetExpireTime() argument
112 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetTargetExpireTime()
116 return (UINT32)(targetSortList->responseTime - currTime); in OsSortLinkGetTargetExpireTime()
119 UINT64 OsSortLinkGetNextExpireTime(UINT64 currTime, const SortLinkAttribute *sortLinkHeader) in OsSortLinkGetNextExpireTime() argument
128 return OsSortLinkGetTargetExpireTime(currTime, listSorted); in OsSortLinkGetNextExpireTime()
Dlos_deadline.c53 STATIC VOID EDFTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime);
79 STATIC VOID EDFTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime) in EDFTimeSliceUpdate() argument
83 LOS_ASSERT(currTime >= taskCB->startTime); in EDFTimeSliceUpdate()
90 INT32 incTime = (currTime - taskCB->startTime - taskCB->irqUsedTime); in EDFTimeSliceUpdate()
95 taskCB->schedStat.allRuntime += (currTime - taskCB->startTime); in EDFTimeSliceUpdate()
100 taskCB->startTime = currTime; in EDFTimeSliceUpdate()
102 if ((sched->finishTime > currTime) && (taskCB->timeSlice > 0)) { in EDFTimeSliceUpdate()
107 if (sched->finishTime <= currTime) { in EDFTimeSliceUpdate()
156 UINT64 currTime = OsGetCurrSchedTimeCycle(); in EDFEnqueue() local
158 sched->finishTime = currTime; in EDFEnqueue()
[all …]
Dlos_sched.c55 UINT64 currTime = OsGetCurrSchedTimeCycle(); in SchedNextExpireTimeSet() local
56 …UINT64 nextExpireTime = OsGetSortLinkNextExpireTime(&rq->timeoutQueue, currTime, OS_TICK_RESPONSE_… in SchedNextExpireTimeSet()
84 UINT64 nextResponseTime = nextExpireTime - currTime; in SchedNextExpireTimeSet()
85 rq->responseTime = currTime + HalClockTickTimerReload(nextResponseTime); in SchedNextExpireTimeSet()
103 STATIC INLINE VOID SchedTimeoutTaskWake(SchedRunqueue *rq, UINT64 currTime, LosTaskCB *taskCB, BOOL… in SchedTimeoutTaskWake() argument
108 if (sched->finishTime <= currTime) { in SchedTimeoutTaskWake()
111 … taskCB->taskID, taskCB->taskName, OS_SYS_CYCLE_TO_US(currTime - sched->finishTime)); in SchedTimeoutTaskWake()
133 taskCB->schedStat.pendTime += currTime - taskCB->startTime; in SchedTimeoutTaskWake()
165 UINT64 currTime = OsGetCurrSchedTimeCycle(); in SchedTimeoutQueueScan() local
166 while (sortList->responseTime <= currTime) { in SchedTimeoutQueueScan()
[all …]
Dlos_idle.c43 STATIC VOID IdleTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime);
69 STATIC VOID IdleTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime) in IdleTimeSliceUpdate() argument
73 taskCB->startTime = currTime; in IdleTimeSliceUpdate()
Dlos_priority.c62 STATIC VOID HPFTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime);
88 STATIC VOID HPFTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime) in HPFTimeSliceUpdate() argument
91 LOS_ASSERT(currTime >= taskCB->startTime); in HPFTimeSliceUpdate()
93 INT32 incTime = (currTime - taskCB->startTime - taskCB->irqUsedTime); in HPFTimeSliceUpdate()
104 OsSchedLimitUpdateRuntime(taskCB, currTime, incTime); in HPFTimeSliceUpdate()
107 taskCB->startTime = currTime; in HPFTimeSliceUpdate()
Dlos_statistics.c60 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsSchedDebugRecordData() local
61 LOS_ASSERT(currTime >= rq->responseTime); in OsSchedDebugRecordData()
62 UINT64 usedTime = currTime - rq->responseTime; in OsSchedDebugRecordData()
/kernel/liteos_m/kernel/include/
Dlos_sortlink.h70 STATIC INLINE UINT64 OsSortLinkGetRemainTime(UINT64 currTime, const SortLinkList *targetSortList) in OsSortLinkGetRemainTime() argument
72 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetRemainTime()
75 return (targetSortList->responseTime - currTime); in OsSortLinkGetRemainTime()
116 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList);
Dlos_tick.h261 VOID OsTickTimerBaseReset(UINT64 currTime);
266 VOID OsTickSysTimerStartTimeSet(UINT64 currTime);
/kernel/liteos_m/kal/posix/src/
Dtime_internal.h119 UINT64 currTime; in OsGetTickTimeFromNow() local
127 currTime = (UINT64)tp.tv_sec * OS_SYS_NS_PER_SECOND + tp.tv_nsec; in OsGetTickTimeFromNow()
129 if (currTime >= nseconds) { in OsGetTickTimeFromNow()
132 *absTicks = ((nseconds - currTime) + nsPerTick - 1) / nsPerTick + 1; in OsGetTickTimeFromNow()
/kernel/liteos_a/kernel/base/core/
Dlos_swtmr.c142 UINT64 currTime = OsGetCurrSchedTimeCycle(); in SwtmrDebugWaitTimeCalculate() local
143 UINT64 waitTime = currTime - data->startTime; in SwtmrDebugWaitTimeCalculate()
148 data->readyStartTime = currTime; in SwtmrDebugWaitTimeCalculate()
237 UINT64 currTime = OsGetCurrSchedTimeCycle(); in ScanSwtmrTimeList() local
238 while (sortList->responseTime <= currTime) { in ScanSwtmrTimeList()
486 UINT64 currTime = OsGetCurrSchedTimeCycle(); in SwtmrToStart() local
487 if (responseTime < currTime) { in SwtmrToStart()
488 times = (UINT32)((currTime - swtmr->startTime) / period); in SwtmrToStart()
610 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsSwtmrGetNextTimeout() local
612 UINT64 time = (OsSortLinkGetNextExpireTime(currTime, &srq->swtmrSortLink) / OS_CYCLE_PER_TICK); in OsSwtmrGetNextTimeout()
[all …]
/kernel/liteos_a/kernel/base/include/
Dlos_sortlink_pri.h108 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList);
109 UINT64 OsSortLinkGetNextExpireTime(UINT64 currTime, const SortLinkAttribute *sortLinkHeader);
Dlos_sched_pri.h289 VOID (*timeSliceUpdate)(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime);
628 UINT64 currTime, responseTime; in SchedTaskUnfreeze() local
635 currTime = OsGetCurrSchedTimeCycle(); in SchedTaskUnfreeze()
637 if (responseTime > currTime) { in SchedTaskUnfreeze()
/kernel/liteos_m/components/power/
Dlos_pm.c95 UINT64 currTime, sleepTime, realSleepTime; in OsPmTickTimerStart() local
112 currTime = pm->enterSleepTime + realSleepTime; in OsPmTickTimerStart()
115 OsTickTimerBaseReset(currTime); in OsPmTickTimerStart()
133 UINT64 currTime = OsGetCurrSchedTimeCycle(); in OsPmTickTimerStop() local
134 UINT64 expireTime = OsSchedGetNextExpireTime(currTime); in OsPmTickTimerStop()
145 LOS_ASSERT(expireTime > currTime); in OsPmTickTimerStop()
147 realSleepTime = expireTime - currTime; in OsPmTickTimerStop()