/kernel/liteos_m/testsuites/sample/posix/ |
H A D | pthread_func_test.c | 75 struct sched_param schedParam = { 0 }; variable 87 schedParam.sched_priority = TASK_PRIO_TEST; 88 ret = pthread_attr_setschedparam(&attr, &schedParam); 120 struct sched_param schedParam = { 0 }; variable 132 schedParam.sched_priority = TASK_PRIO_TEST; 133 ret = pthread_attr_setschedparam(&attr, &schedParam); 168 struct sched_param schedParam = { 0 }; variable 179 schedParam.sched_priority = TASK_PRIO_TEST + 1; 180 ret = pthread_attr_setschedparam(&attr, &schedParam); 215 struct sched_param schedParam variable 263 struct sched_param schedParam = { 0 }; global() variable 324 struct sched_param schedParam = { 0 }; PthreadFunc06() local 381 struct sched_param schedParam = { 0 }; global() variable 442 struct sched_param schedParam = { 0 }; PthreadFunc07() local 493 struct sched_param schedParam = { 0 }; global() variable 587 struct sched_param schedParam = { 0 }; global() variable 648 struct sched_param schedParam = { 0 }; global() variable 698 struct sched_param schedParam = { 0 }; global() variable 748 struct sched_param schedParam = { 0 }; global() variable 808 struct sched_param schedParam = { 0 }; global() variable 1036 struct sched_param schedParam = { 0 }; PthreadFuncTestSuite() local [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/pthread/ |
H A D | pthread_cond_func_test.c | 92 struct sched_param schedParam = { 0 }; variable 104 schedParam.sched_priority = TASK_PRIO_TEST; 105 ret = pthread_attr_setschedparam(&attr, &schedParam); 137 struct sched_param schedParam = { 0 }; variable 149 schedParam.sched_priority = TASK_PRIO_TEST; 150 ret = pthread_attr_setschedparam(&attr, &schedParam); 185 struct sched_param schedParam = { 0 }; variable 196 schedParam.sched_priority = TASK_PRIO_TEST + 1; 197 ret = pthread_attr_setschedparam(&attr, &schedParam); 232 struct sched_param schedParam variable 280 struct sched_param schedParam = { 0 }; global() variable 341 struct sched_param schedParam = { 0 }; pthread_f06() local 398 struct sched_param schedParam = { 0 }; global() variable 460 struct sched_param schedParam = { 0 }; pthread_f07() local 508 struct sched_param schedParam = { 0 }; global() variable 605 struct sched_param schedParam = { 0 }; global() variable 666 struct sched_param schedParam = { 0 }; global() variable 716 struct sched_param schedParam = { 0 }; global() variable 765 struct sched_param schedParam = { 0 }; global() variable 824 struct sched_param schedParam = { 0 }; global() variable [all...] |
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
H A D | pthread_cond_test_003.cpp | 66 struct sched_param schedParam = { 0 }; in pthread_f06() local 74 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in pthread_f06() 77 schedParam.sched_priority -= 1; in pthread_f06() 78 ret = pthread_attr_setschedparam(&attr, &schedParam); in pthread_f06() 117 struct sched_param schedParam = { 0 }; in TestCase() local 129 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in TestCase() 132 schedParam.sched_priority -= 1; in TestCase() 133 ret = pthread_attr_setschedparam(&attr, &schedParam); in TestCase()
|
H A D | pthread_cond_test_004.cpp | 66 struct sched_param schedParam = { 0 }; in pthread_f07() local 74 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in pthread_f07() 77 schedParam.sched_priority -= 1; in pthread_f07() 78 ret = pthread_attr_setschedparam(&attr, &schedParam); in pthread_f07() 109 struct sched_param schedParam = { 0 }; in TestCase() local 121 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in TestCase() 124 schedParam.sched_priority -= 1; in TestCase() 125 ret = pthread_attr_setschedparam(&attr, &schedParam); in TestCase()
|
/kernel/liteos_a/syscall/ |
H A D | process_syscall.c | 63 static int UserTaskSchedulerCheck(unsigned int tid, int policy, const LosSchedParam *schedParam, bool policyFlag) in UserTaskSchedulerCheck() argument 72 ret = OsSchedulerParamCheck(policy, TRUE, schedParam); in UserTaskSchedulerCheck() 91 static int OsUserTaskSchedulerSet(unsigned int tid, int policy, const LosSchedParam *schedParam, bool policyFlag) in OsUserTaskSchedulerSet() argument 98 ret = UserTaskSchedulerCheck(tid, policy, schedParam, policyFlag); in OsUserTaskSchedulerSet() 114 param.priority = schedParam->priority; in OsUserTaskSchedulerSet() 123 param.runTimeUs = schedParam->runTimeUs; in OsUserTaskSchedulerSet() 124 param.deadlineUs = schedParam->deadlineUs; in OsUserTaskSchedulerSet() 125 param.periodUs = schedParam->periodUs; in OsUserTaskSchedulerSet() 223 LosSchedParam schedParam = {0}; in SysSchedGetParam() local 244 schedParam in SysSchedGetParam() [all...] |
/kernel/liteos_a/kernel/include/ |
H A D | los_process.h | 54 extern INT32 LOS_GetProcessScheduler(INT32 pid, INT32 *policy, LosSchedParam *schedParam); 56 extern INT32 LOS_SetProcessScheduler(INT32 pid, UINT16 policy, const LosSchedParam *schedParam);
|
/kernel/liteos_a/kernel/base/core/ |
H A D | los_task.c | 96 SchedParam schedParam = { 0 }; in OsSetMainTask() local 98 schedParam.policy = LOS_SCHED_RR; in OsSetMainTask() 99 schedParam.basePrio = OS_PROCESS_PRIORITY_HIGHEST; in OsSetMainTask() 100 schedParam.priority = OS_TASK_PRIORITY_LOWEST; in OsSetMainTask() 112 (VOID)OsSchedParamInit(&g_mainTask[i], schedParam.policy, &schedParam, NULL); in OsSetMainTask() 545 SchedParam schedParam = { 0 }; in TaskCBInit() local 551 schedParam.policy = policy; in TaskCBInit() 552 ret = OsProcessAddNewTask(initParam->processID, taskCB, &schedParam, &numCount); in TaskCBInit() 564 ret = OsSchedParamInit(taskCB, policy, &schedParam, in TaskCBInit() [all...] |
H A D | los_process.c | 1008 LITE_OS_SEC_TEXT INT32 OsSetProcessScheduler(INT32 which, INT32 pid, UINT16 policy, const LosSchedParam *schedParam) in OsSetProcessScheduler() argument 1014 INT32 ret = ProcessSchedulerParamCheck(which, pid, policy, schedParam); in OsSetProcessScheduler() 1030 if (!OsProcessCapPermitCheck(processCB, ¶m, policy, schedParam->priority)) { in OsSetProcessScheduler() 1042 OsSchedParamInit(taskCB, policy, NULL, schedParam); in OsSetProcessScheduler() 1052 param.runTimeUs = schedParam->runTimeUs; in OsSetProcessScheduler() 1053 param.deadlineUs = schedParam->deadlineUs; in OsSetProcessScheduler() 1054 param.periodUs = schedParam->periodUs; in OsSetProcessScheduler() 1056 param.basePrio = schedParam->priority; in OsSetProcessScheduler() 1070 LITE_OS_SEC_TEXT INT32 LOS_SetProcessScheduler(INT32 pid, UINT16 policy, const LosSchedParam *schedParam) in LOS_SetProcessScheduler() argument 1072 return OsSetProcessScheduler(LOS_PRIO_PROCESS, pid, policy, schedParam); in LOS_SetProcessScheduler() 1075 LOS_GetProcessScheduler(INT32 pid, INT32 *policy, LosSchedParam *schedParam) LOS_GetProcessScheduler() argument [all...] |
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread.c | 100 struct sched_param schedParam = { 0 }; in PthreadAttrCheck() local 117 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in PthreadAttrCheck() 121 taskInitParam->usTaskPrio = (UINT16)schedParam.sched_priority; in PthreadAttrCheck()
|