/kernel/liteos_m/kernel/src/ |
D | los_sched.c | 76 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 …]
|
D | los_swtmr.c | 140 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 …]
|
D | los_sortlink.c | 152 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList) in OsSortLinkGetTargetExpireTime() argument 154 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetTargetExpireTime() 158 return (targetSortList->responseTime - currTime); in OsSortLinkGetTargetExpireTime()
|
D | los_tick.c | 65 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/ |
D | los_schedlimit.c | 74 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()
|
D | los_schedlimit.h | 57 VOID OsSchedLimitUpdateRuntime(LosTaskCB *runTask, UINT64 currTime, INT32 incTime);
|
/kernel/liteos_a/kernel/base/sched/ |
D | los_sortlink.c | 110 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()
|
D | los_deadline.c | 53 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 …]
|
D | los_sched.c | 55 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 …]
|
D | los_idle.c | 43 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()
|
D | los_priority.c | 62 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()
|
D | los_statistics.c | 60 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/ |
D | los_sortlink.h | 70 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);
|
D | los_tick.h | 261 VOID OsTickTimerBaseReset(UINT64 currTime); 266 VOID OsTickSysTimerStartTimeSet(UINT64 currTime);
|
/kernel/liteos_m/kal/posix/src/ |
D | time_internal.h | 119 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/ |
D | los_swtmr.c | 142 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/ |
D | los_sortlink_pri.h | 108 UINT64 OsSortLinkGetTargetExpireTime(UINT64 currTime, const SortLinkList *targetSortList); 109 UINT64 OsSortLinkGetNextExpireTime(UINT64 currTime, const SortLinkAttribute *sortLinkHeader);
|
D | los_sched_pri.h | 289 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/ |
D | los_pm.c | 95 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()
|