Home
last modified time | relevance | path

Searched refs:responseTime (Results 1 – 11 of 11) sorted by relevance

/kernel/liteos_a/kernel/base/sched/
Dlos_sortlink.c52 if (listSorted->responseTime > sortList->responseTime) { in AddNode2SortLink()
56 } else if (listSorted->responseTime == sortList->responseTime) { in AddNode2SortLink()
65 if (listSorted->responseTime <= sortList->responseTime) { in AddNode2SortLink()
75 VOID OsAdd2SortLink(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime, UINT16 idleCp… in OsAdd2SortLink() argument
78 SET_SORTLIST_VALUE(node, responseTime); in OsAdd2SortLink()
89 if (node->responseTime != OS_SORT_LINK_INVALID_TIME) { in OsDeleteFromSortLink()
95 … OsSortLinkAdjustNodeResponseTime(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime) in OsSortLinkAdjustNodeResponseTime() argument
100 if (node->responseTime != OS_SORT_LINK_INVALID_TIME) { in OsSortLinkAdjustNodeResponseTime()
102 SET_SORTLIST_VALUE(node, responseTime); in OsSortLinkAdjustNodeResponseTime()
112 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetTargetExpireTime()
[all …]
Dlos_sched.c61 rq->responseTime = OS_SCHED_MAX_RESPONSE_TIME; in SchedNextExpireTimeSet()
72 if ((rq->responseTime <= nextExpireTime) || in SchedNextExpireTimeSet()
73 ((rq->responseTime - nextExpireTime) < OS_TICK_RESPONSE_PRECISION)) { in SchedNextExpireTimeSet()
85 rq->responseTime = currTime + HalClockTickTimerReload(nextResponseTime); in SchedNextExpireTimeSet()
166 while (sortList->responseTime <= currTime) { in SchedTimeoutQueueScan()
197 rq->responseTime = OS_SCHED_MAX_RESPONSE_TIME; in OsSchedTick()
200 VOID OsSchedResponseTimeReset(UINT64 responseTime) in OsSchedResponseTimeReset() argument
202 OsSchedRunqueue()->responseTime = responseTime; in OsSchedResponseTimeReset()
214 rq->responseTime = OS_SCHED_MAX_RESPONSE_TIME; in OsSchedRunqueueInit()
Dlos_statistics.c38 UINT64 responseTime; member
61 LOS_ASSERT(currTime >= rq->responseTime); in OsSchedDebugRecordData()
62 UINT64 usedTime = currTime - rq->responseTime; in OsSchedDebugRecordData()
63 schedDebug->responseTime += usedTime; in OsSchedDebugRecordData()
90 averTime = schedData->responseTime / schedData->count; in OsShellShowTickResponse()
/kernel/liteos_m/kernel/src/
Dlos_sortlink.c58 if (listSorted->responseTime > sortList->responseTime) { in OsAddNode2SortLink()
61 } else if (listSorted->responseTime == sortList->responseTime) { in OsAddNode2SortLink()
69 if (listSorted->responseTime <= sortList->responseTime) { in OsAddNode2SortLink()
104 if (node->responseTime != OS_SORT_LINK_INVALID_TIME) { in OsDeleteSortLink()
105 OsSchedResetSchedResponseTime(node->responseTime); in OsDeleteSortLink()
122 listSorted->responseTime = OsTimeConvertFreq(listSorted->responseTime, oldFreq, g_sysClock); in SortLinkNodeTimeUpdate()
154 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetTargetExpireTime()
158 return (targetSortList->responseTime - currTime); in OsSortLinkGetTargetExpireTime()
Dlos_sched.c69 VOID OsSchedResetSchedResponseTime(UINT64 responseTime) in OsSchedResetSchedResponseTime() argument
71 if (responseTime <= g_schedResponseTime) { in OsSchedResetSchedResponseTime()
210 while (sortList->responseTime <= currTime) { in OsSchedScanTimerList()
315 UINT64 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in OsSchedFreezeTask() local
317 SET_SORTLIST_VALUE(&taskCB->sortList, responseTime); in OsSchedFreezeTask()
324 UINT64 currTime, responseTime; in OsSchedUnfreezeTask() local
329 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in OsSchedUnfreezeTask()
330 if (responseTime > currTime) { in OsSchedUnfreezeTask()
331 remainTick = ((responseTime - currTime) + OS_CYCLE_PER_TICK - 1) / OS_CYCLE_PER_TICK; in OsSchedUnfreezeTask()
571 UINT64 responseTime; in LOS_SchedTickTimeoutNsGet() local
[all …]
Dlos_swtmr.c310 while (sortList->responseTime <= currTime) { in OsSwtmrScan()
/kernel/liteos_a/kernel/base/include/
Dlos_sortlink_pri.h47 UINT64 responseTime; member
60 #define SET_SORTLIST_VALUE(sortList, value) (((SortLinkList *)(sortList))->responseTime = (value))
61 #define GET_SORTLIST_VALUE(sortList) (((SortLinkList *)(sortList))->responseTime)
82 if (listSorted->responseTime <= (startTime + tickPrecision)) { in OsGetSortLinkNextExpireTime()
88 return listSorted->responseTime; in OsGetSortLinkNextExpireTime()
106 VOID OsAdd2SortLink(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime, UINT16 idleCp…
110 …OsSortLinkAdjustNodeResponseTime(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime);
Dlos_sched_pri.h115 UINT64 responseTime; /* Response time for current CPU tick interrupts */ member
551 STATIC INLINE VOID OsSchedTimeoutQueueAdd(LosTaskCB *taskCB, UINT64 responseTime) in OsSchedTimeoutQueueAdd() argument
564 OsAdd2SortLink(&rq->timeoutQueue, &taskCB->sortList, responseTime, cpuid); in OsSchedTimeoutQueueAdd()
566 if ((cpuid != ArchCurrCpuid()) && (responseTime < rq->responseTime)) { in OsSchedTimeoutQueueAdd()
583 if (oldResponseTime <= rq->responseTime) { in OsSchedTimeoutQueueDelete()
584 rq->responseTime = OS_SCHED_MAX_RESPONSE_TIME; in OsSchedTimeoutQueueDelete()
588 STATIC INLINE UINT32 OsSchedTimeoutQueueAdjust(LosTaskCB *taskCB, UINT64 responseTime) in OsSchedTimeoutQueueAdjust() argument
598 ret = OsSortLinkAdjustNodeResponseTime(&rq->timeoutQueue, node, responseTime); in OsSchedTimeoutQueueAdjust()
607 UINT64 responseTime; in SchedTaskFreeze() local
619 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in SchedTaskFreeze()
[all …]
/kernel/liteos_m/kernel/include/
Dlos_sortlink.h51 UINT64 responseTime; member
65 #define SET_SORTLIST_VALUE(sortList, value) (((SortLinkList *)(sortList))->responseTime = (value))
66 #define GET_SORTLIST_VALUE(sortList) (((SortLinkList *)(sortList))->responseTime)
72 if (currTime >= targetSortList->responseTime) { in OsSortLinkGetRemainTime()
75 return (targetSortList->responseTime - currTime); in OsSortLinkGetRemainTime()
94 if (listSorted->responseTime <= (startTime + tickPrecision)) { in GetSortLinkNextExpireTime()
98 return listSorted->responseTime; in GetSortLinkNextExpireTime()
Dlos_sched.h52 VOID OsSchedResetSchedResponseTime(UINT64 responseTime);
/kernel/liteos_a/kernel/base/core/
Dlos_swtmr.c238 while (sortList->responseTime <= currTime) { in ScanSwtmrTimeList()
423 STATIC INLINE VOID AddSwtmr2TimeList(SortLinkList *node, UINT64 responseTime, UINT16 cpuid) in AddSwtmr2TimeList() argument
426 OsAdd2SortLink(&srq->swtmrSortLink, node, responseTime, cpuid); in AddSwtmr2TimeList()
441 STATIC VOID SwtmrAdjustCheck(UINT16 cpuid, UINT64 responseTime) in SwtmrAdjustCheck() argument
452 if (responseTime >= GET_SORTLIST_VALUE(&srq->swtmrTask->sortList)) { in SwtmrAdjustCheck()
457 ret = OsSchedTimeoutQueueAdjust(srq->swtmrTask, responseTime); in SwtmrAdjustCheck()
485 UINT64 responseTime = swtmr->startTime + period; in SwtmrToStart() local
487 if (responseTime < currTime) { in SwtmrToStart()
490 responseTime = swtmr->startTime + period; in SwtmrToStart()
494 AddSwtmr2TimeList(&swtmr->stSortList, responseTime, cpuid); in SwtmrToStart()
[all …]