Home
last modified time | relevance | path

Searched refs:timeSlice (Results 1 – 10 of 10) sorted by relevance

/kernel/liteos_a/kernel/base/sched/
Dlos_priority.c98 taskCB->timeSlice -= incTime; in HPFTimeSliceUpdate()
108 if (taskCB->timeSlice <= OS_TIME_SLICE_MIN) { in HPFTimeSliceUpdate()
120 INT32 timeSlice = taskCB->timeSlice; in HPFTimeSliceGet() local
122 timeSlice = (timeSlice <= OS_TIME_SLICE_MIN) ? sched->initTimeSlice : timeSlice; in HPFTimeSliceGet()
123 return (taskCB->startTime + timeSlice); in HPFTimeSliceGet()
214 if (taskCB->timeSlice > OS_TIME_SLICE_MIN) { in PriQueInsert()
218 taskCB->timeSlice = sched->initTimeSlice; in PriQueInsert()
229 … if ((taskCB->timeSlice > OS_TIME_SLICE_MIN) && (taskCB->taskStatus & OS_TASK_STATUS_RUNNING)) { in PriQueInsert()
233 taskCB->timeSlice = sched->initTimeSlice; in PriQueInsert()
290 runTask->timeSlice = 0; in HPFYield()
[all …]
Dlos_deadline.c85 if (taskCB->timeSlice <= 0) { in EDFTimeSliceUpdate()
98 taskCB->timeSlice -= incTime; in EDFTimeSliceUpdate()
102 if ((sched->finishTime > currTime) && (taskCB->timeSlice > 0)) { in EDFTimeSliceUpdate()
112 taskCB->timeSlice = 0; in EDFTimeSliceUpdate()
121 UINT64 endTime = taskCB->startTime + taskCB->timeSlice; in EDFTimeSliceGet()
152 if (taskCB->timeSlice <= 0) { in EDFEnqueue()
197 taskCB->timeSlice = sched->runTime; in EDFEnqueue()
230 runTask->timeSlice = 0; in EDFYield()
302 taskCB->timeSlice = 0; in EDFSchedParamModify()
379 taskCB->timeSlice = 0; in EDFTaskSchedParamInit()
Dlos_statistics.c103 STATIC VOID SchedDataGet(const LosTaskCB *taskCB, UINT64 *runTime, UINT64 *timeSlice, in SchedDataGet() argument
113 *timeSlice = (averTimeSlice * OS_NS_PER_CYCLE) / OS_SYS_NS_PER_US; in SchedDataGet()
217 if (taskCB->timeSlice <= 0) { in EDFDebugRecord()
221 g_edfNode[g_edfNodePointer].timeSliceUnused = taskCB->timeSlice; in EDFDebugRecord()
241 UINT64 timeSlice; in EDFInfoPrint() local
250 timeSlice = OS_SYS_CYCLE_TO_US(g_edfNode[idx].timeSliceUnused); in EDFInfoPrint()
260 if (timeSlice > 0) { in EDFInfoPrint()
271 timeSlice, pendTime, status); in EDFInfoPrint()
Dlos_idle.c154 param->timeSlice = 0; in IdleSchedParamGet()
185 taskCB->timeSlice = sched->initTimeSlice; in IdleTaskSchedParamInit()
Dlos_sched.c109 if (taskCB->timeSlice >= 0) { in SchedTimeoutTaskWake()
113 taskCB->timeSlice = 0; in SchedTimeoutTaskWake()
/kernel/liteos_m/kernel/src/
Dlos_sched.c82 taskCB->timeSlice -= incTime; in OsTimeSliceUpdate()
133 …INT32 timeSlice = (runTask->timeSlice <= g_schedTimeSliceMin) ? g_schedTimeSlice : runTask->timeSl… in OsSchedUpdateExpireTime() local
134 endTime = runTask->startTime + timeSlice; in OsSchedUpdateExpireTime()
229 if (taskCB->timeSlice > g_schedTimeSliceMin) { in OsSchedTaskEnQueue()
232 taskCB->timeSlice = g_schedTimeSlice; in OsSchedTaskEnQueue()
275 runTask->timeSlice = 0; in OsSchedYield()
430 if (taskCB->timeSlice > 0) { in TaskSchedTimeConvertFreq()
431 … taskCB->timeSlice = (INT32)OsTimeConvertFreq((UINT64)taskCB->timeSlice, oldFreq, g_sysClock); in TaskSchedTimeConvertFreq()
433 taskCB->timeSlice = 0; in TaskSchedTimeConvertFreq()
518 OsSchedSetNextExpireTime(newTask->taskID, newTask->startTime + newTask->timeSlice); in OsSchedStart()
[all …]
Dlos_task.c725 taskCB->timeSlice = 0; in OsNewTaskInit()
/kernel/liteos_a/syscall/
Dprocess_syscall.c357 time_t timeSlice = 0; in SysSchedRRGetInterval() local
387 timeSlice += param.timeSlice; in SysSchedRRGetInterval()
394 timeSlice = timeSlice * OS_NS_PER_CYCLE; in SysSchedRRGetInterval()
395 tv.tv_sec = timeSlice / OS_SYS_NS_PER_SECOND; in SysSchedRRGetInterval()
396 tv.tv_nsec = timeSlice % OS_SYS_NS_PER_SECOND; in SysSchedRRGetInterval()
/kernel/liteos_a/kernel/base/include/
Dlos_sched_pri.h237 UINT32 timeSlice; member
404 INT32 timeSlice; /**< Task remaining time slice */ member
/kernel/liteos_m/kernel/include/
Dlos_task.h1479 INT32 timeSlice; member