Home
last modified time | relevance | path

Searched refs:sortList (Results 1 – 12 of 12) sorted by relevance

/kernel/liteos_a/kernel/base/sched/
Dlos_sortlink.c41 STATIC INLINE VOID AddNode2SortLink(SortLinkAttribute *sortLinkHeader, SortLinkList *sortList) in AddNode2SortLink() argument
46 LOS_ListHeadInsert(head, &sortList->sortLinkNode); in AddNode2SortLink()
52 if (listSorted->responseTime > sortList->responseTime) { in AddNode2SortLink()
53 LOS_ListAdd(head, &sortList->sortLinkNode); in AddNode2SortLink()
56 } else if (listSorted->responseTime == sortList->responseTime) { in AddNode2SortLink()
57 LOS_ListAdd(head->pstNext, &sortList->sortLinkNode); in AddNode2SortLink()
65 if (listSorted->responseTime <= sortList->responseTime) { in AddNode2SortLink()
66 LOS_ListAdd(prevNode, &sortList->sortLinkNode); in AddNode2SortLink()
Dlos_sched.c164 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in SchedTimeoutQueueScan() local
166 while (sortList->responseTime <= currTime) { in SchedTimeoutQueueScan()
167 LosTaskCB *taskCB = LOS_DL_LIST_ENTRY(sortList, LosTaskCB, sortList); in SchedTimeoutQueueScan()
168 OsDeleteNodeSortLink(timeoutQueue, &taskCB->sortList); in SchedTimeoutQueueScan()
178 sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in SchedTimeoutQueueScan()
/kernel/liteos_a/kernel/base/include/
Dlos_sortlink_pri.h60 #define SET_SORTLIST_VALUE(sortList, value) (((SortLinkList *)(sortList))->responseTime = (value)) argument
61 #define GET_SORTLIST_VALUE(sortList) (((SortLinkList *)(sortList))->responseTime) argument
63 STATIC INLINE VOID OsDeleteNodeSortLink(SortLinkAttribute *sortLinkHeader, SortLinkList *sortList) in OsDeleteNodeSortLink() argument
65 LOS_ListDelete(&sortList->sortLinkNode); in OsDeleteNodeSortLink()
66 SET_SORTLIST_VALUE(sortList, OS_SORT_LINK_INVALID_TIME); in OsDeleteNodeSortLink()
Dlos_sched_pri.h405 SortLinkList sortList; /**< Task sortlink node */ member
564 OsAdd2SortLink(&rq->timeoutQueue, &taskCB->sortList, responseTime, cpuid); in OsSchedTimeoutQueueAdd()
575 SortLinkList *node = &taskCB->sortList; in OsSchedTimeoutQueueDelete()
591 SortLinkList *node = &taskCB->sortList; in OsSchedTimeoutQueueAdjust()
619 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in SchedTaskFreeze()
621 SET_SORTLIST_VALUE(&taskCB->sortList, responseTime); in SchedTaskFreeze()
636 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in SchedTaskUnfreeze()
642 SET_SORTLIST_VALUE(&taskCB->sortList, OS_SORT_LINK_INVALID_TIME); in SchedTaskUnfreeze()
/kernel/liteos_m/kernel/include/
Dlos_sortlink.h65 #define SET_SORTLIST_VALUE(sortList, value) (((SortLinkList *)(sortList))->responseTime = (value)) argument
66 #define GET_SORTLIST_VALUE(sortList) (((SortLinkList *)(sortList))->responseTime) argument
78 STATIC INLINE VOID OsDeleteNodeSortLink(SortLinkList *sortList) in OsDeleteNodeSortLink() argument
80 LOS_ListDelete(&sortList->sortLinkNode); in OsDeleteNodeSortLink()
81 SET_SORTLIST_VALUE(sortList, OS_SORT_LINK_INVALID_TIME); in OsDeleteNodeSortLink()
Dlos_task.h1481 SortLinkList sortList; member
/kernel/liteos_m/kernel/src/
Dlos_sortlink.c48 STATIC INLINE VOID OsAddNode2SortLink(SortLinkAttribute *sortLinkHead, SortLinkList *sortList) in OsAddNode2SortLink() argument
53 LOS_ListAdd(head, &sortList->sortLinkNode); in OsAddNode2SortLink()
58 if (listSorted->responseTime > sortList->responseTime) { in OsAddNode2SortLink()
59 LOS_ListAdd(head, &sortList->sortLinkNode); in OsAddNode2SortLink()
61 } else if (listSorted->responseTime == sortList->responseTime) { in OsAddNode2SortLink()
62 LOS_ListAdd(head->pstNext, &sortList->sortLinkNode); in OsAddNode2SortLink()
69 if (listSorted->responseTime <= sortList->responseTime) { in OsAddNode2SortLink()
70 LOS_ListAdd(prevNode, &sortList->sortLinkNode); in OsAddNode2SortLink()
Dlos_sched.c208 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in OsSchedScanTimerList() local
210 while (sortList->responseTime <= currTime) { in OsSchedScanTimerList()
211 LosTaskCB *taskCB = LOS_DL_LIST_ENTRY(sortList, LosTaskCB, sortList); in OsSchedScanTimerList()
212 OsDeleteNodeSortLink(&taskCB->sortList); in OsSchedScanTimerList()
218 sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in OsSchedScanTimerList()
265 OsDeleteSortLink(&taskCB->sortList); in OsSchedTaskExit()
303 OsDeleteSortLink(&resumedTask->sortList); in OsSchedTaskWake()
315 UINT64 responseTime = GET_SORTLIST_VALUE(&taskCB->sortList); in OsSchedFreezeTask()
316 OsDeleteSortLink(&taskCB->sortList); in OsSchedFreezeTask()
317 SET_SORTLIST_VALUE(&taskCB->sortList, responseTime); in OsSchedFreezeTask()
[all …]
Dlos_swtmr.c171 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listObject, SortLinkList, sortLinkNode); in OsSwtmrFindAlignPos() local
172 SWTMR_CTRL_S *swtmrListNode = LOS_DL_LIST_ENTRY(sortList, SWTMR_CTRL_S, stSortList); in OsSwtmrFindAlignPos()
308 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in OsSwtmrScan() local
310 while (sortList->responseTime <= currTime) { in OsSwtmrScan()
311 SWTMR_CTRL_S *swtmr = LOS_DL_LIST_ENTRY(sortList, SWTMR_CTRL_S, stSortList); in OsSwtmrScan()
312 swtmr->startTime = GET_SORTLIST_VALUE(sortList); in OsSwtmrScan()
314 OsDeleteNodeSortLink(sortList); in OsSwtmrScan()
323 sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in OsSwtmrScan()
335 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listNext, SortLinkList, sortLinkNode); in OsSwtmrResponseTimeReset() local
336 SWTMR_CTRL_S *swtmr = LOS_DL_LIST_ENTRY(sortList, SWTMR_CTRL_S, stSortList); in OsSwtmrResponseTimeReset()
[all …]
Dlos_task.c736 SET_SORTLIST_VALUE(&taskCB->sortList, OS_SORT_LINK_INVALID_TIME); in OsNewTaskInit()
/kernel/liteos_a/kernel/base/core/
Dlos_swtmr.c185 STATIC INLINE VOID SwtmrWake(SwtmrRunqueue *srq, UINT64 startTime, SortLinkList *sortList) in SwtmrWake() argument
188 SWTMR_CTRL_S *swtmr = LOS_DL_LIST_ENTRY(sortList, SWTMR_CTRL_S, stSortList); in SwtmrWake()
235 SortLinkList *sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in ScanSwtmrTimeList() local
238 while (sortList->responseTime <= currTime) { in ScanSwtmrTimeList()
239 sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in ScanSwtmrTimeList()
240 UINT64 startTime = GET_SORTLIST_VALUE(sortList); in ScanSwtmrTimeList()
241 OsDeleteNodeSortLink(swtmrSortLink, sortList); in ScanSwtmrTimeList()
244 SwtmrWake(srq, startTime, sortList); in ScanSwtmrTimeList()
251 sortList = LOS_DL_LIST_ENTRY(listObject->pstNext, SortLinkList, sortLinkNode); in ScanSwtmrTimeList()
452 if (responseTime >= GET_SORTLIST_VALUE(&srq->swtmrTask->sortList)) { in SwtmrAdjustCheck()
[all …]
Dlos_task.c535 SET_SORTLIST_VALUE(&taskCB->sortList, OS_SORT_LINK_INVALID_TIME); in TaskCBBaseInit()