/kernel/liteos_a/kernel/base/sched/ |
D | los_sortlink.c | 41 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()
|
D | los_sched.c | 164 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/ |
D | los_sortlink_pri.h | 60 #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()
|
D | los_sched_pri.h | 405 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/ |
D | los_sortlink.h | 65 #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()
|
D | los_task.h | 1481 SortLinkList sortList; member
|
/kernel/liteos_m/kernel/src/ |
D | los_sortlink.c | 48 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()
|
D | los_sched.c | 208 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 …]
|
D | los_swtmr.c | 171 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 …]
|
D | los_task.c | 736 SET_SORTLIST_VALUE(&taskCB->sortList, OS_SORT_LINK_INVALID_TIME); in OsNewTaskInit()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_swtmr.c | 185 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 …]
|
D | los_task.c | 535 SET_SORTLIST_VALUE(&taskCB->sortList, OS_SORT_LINK_INVALID_TIME); in TaskCBBaseInit()
|