Home
last modified time | relevance | path

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

/kernel/liteos_a/kernel/base/sched/
Dlos_priority.c96 taskCB->timeSlice -= incTime; in HPFTimeSliceUpdate()
103 if (taskCB->timeSlice <= OS_TIME_SLICE_MIN) { in HPFTimeSliceUpdate()
115 INT32 timeSlice = taskCB->timeSlice; in HPFTimeSliceGet() local
117 timeSlice = (timeSlice <= OS_TIME_SLICE_MIN) ? sched->initTimeSlice : timeSlice; in HPFTimeSliceGet()
118 return (taskCB->startTime + timeSlice); in HPFTimeSliceGet()
209 if (taskCB->timeSlice > OS_TIME_SLICE_MIN) { in PriQueInsert()
213 taskCB->timeSlice = sched->initTimeSlice; in PriQueInsert()
224 … if ((taskCB->timeSlice > OS_TIME_SLICE_MIN) && (taskCB->taskStatus & OS_TASK_STATUS_RUNNING)) { in PriQueInsert()
228 taskCB->timeSlice = sched->initTimeSlice; in PriQueInsert()
285 runTask->timeSlice = 0; in HPFYield()
[all …]
Dlos_statistics.c102 STATIC VOID SchedDataGet(const LosTaskCB *taskCB, UINT64 *runTime, UINT64 *timeSlice, in SchedDataGet() argument
112 *timeSlice = (averTimeSlice * OS_NS_PER_CYCLE) / OS_SYS_NS_PER_US; in SchedDataGet()
Dlos_idle.c153 param->timeSlice = 0; in IdleSchedParamGet()
184 taskCB->timeSlice = sched->initTimeSlice; in IdleTaskSchedParamInit()
/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.c711 taskCB->timeSlice = 0; in OsNewTaskInit()
/kernel/liteos_a/syscall/
Dprocess_syscall.c257 time_t timeSlice = 0; in SysSchedRRGetInterval() local
287 timeSlice += param.timeSlice; in SysSchedRRGetInterval()
294 timeSlice = timeSlice * OS_NS_PER_CYCLE; in SysSchedRRGetInterval()
295 tv.tv_sec = timeSlice / OS_SYS_NS_PER_SECOND; in SysSchedRRGetInterval()
296 tv.tv_nsec = timeSlice % OS_SYS_NS_PER_SECOND; in SysSchedRRGetInterval()
/kernel/liteos_a/kernel/base/include/
Dlos_sched_pri.h221 UINT32 timeSlice; member
367 INT32 timeSlice; /**< Task remaining time slice */ member
/kernel/liteos_m/kernel/include/
Dlos_task.h1479 INT32 timeSlice; member