| /freebsd-13.1/tools/regression/p1003_1b/ |
| H A D | sched.c | 174 rt_param.sched_priority = fifo_schedmin; in sched() 183 if (shouldbe.sched_priority != fifo_schedmin) in sched() 186 rt_param.sched_priority = fifo_schedmin; in sched() 191 rt_param.sched_priority = fifo_schedmin + 1; in sched() 199 if (shouldbe.sched_priority != fifo_schedmin + 1) in sched() 236 rt_param.sched_priority = fifo_schedmax; in sched() 254 rt_param.sched_priority--; in sched() 263 rt_param.sched_priority--; in sched() 266 if (rt_param.sched_priority < fifo_schedmin) in sched() 277 if (!me || rt_param.sched_priority != 0) in sched() [all …]
|
| H A D | yield.c | 77 set.sched_priority = sched_get_priority_max(SCHED_FIFO); in yield() 78 if (set.sched_priority == -1 && errno) { in yield() 107 if (got.sched_priority != set.sched_priority) { in yield() 124 if (got.sched_priority != set.sched_priority) { in yield()
|
| H A D | fifo.c | 111 fifo_param.sched_priority = 1; in fifo()
|
| /freebsd-13.1/sys/kern/ |
| H A D | ksched.c | 149 param->sched_priority = rtpprio_to_p4prio(rtp.prio); in ksched_getparam() 156 param->sched_priority = PRI_MAX_TIMESHARE - in ksched_getparam() 159 param->sched_priority = tsprio_to_p4prio(rtp.prio); in ksched_getparam() 182 if (param->sched_priority >= P1B_PRIO_MIN && in ksched_setscheduler() 183 param->sched_priority <= P1B_PRIO_MAX) { in ksched_setscheduler() 184 rtp.prio = p4prio_to_rtpprio(param->sched_priority); in ksched_setscheduler() 193 if (param->sched_priority >= 0 && param->sched_priority <= in ksched_setscheduler() 196 rtp.prio = p4prio_to_tsprio(param->sched_priority); in ksched_setscheduler()
|
| H A D | sched_ule.c | 309 static void sched_priority(struct thread *); 1617 sched_priority(struct thread *td) in sched_priority() function 2276 sched_priority(td); in sched_nice() 2350 sched_priority(child); in sched_fork() 2353 sched_priority(td); in sched_fork() 2450 sched_priority(td); in sched_exit_thread() 2547 sched_priority(td); in sched_clock() 2691 sched_priority(td); in sched_add()
|
| H A D | sched_4bsd.c | 135 static void sched_priority(struct thread *td, u_char prio); 839 sched_priority(struct thread *td, u_char prio) in sched_priority() function 872 sched_priority(td, prio); in sched_lend_prio() 917 sched_priority(td, prio); in sched_prio()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/librt/ |
| H A D | t_sched.c | 60 ATF_CHECK_EQ(s1.sched_priority, s2.sched_priority); in ATF_TC_BODY() 69 ATF_TC(sched_priority); 70 ATF_TC_HEAD(sched_priority, tc) in ATF_TC_HEAD() argument 75 ATF_TC_BODY(sched_priority, tc) in ATF_TC_BODY() argument 109 sched.sched_priority = pri; in sched_priority_set() 122 sched.sched_priority = -1; in sched_priority_set() 125 ATF_CHECK_EQ(sched.sched_priority, pri); in sched_priority_set() 245 ATF_TP_ADD_TC(tp, sched_priority); in ATF_TP_ADD_TCS()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
| H A D | t_spawnattr.c | 86 priority = param.sched_priority; in get_different_priority() 128 sp.sched_priority = priority; in ATF_TC_BODY() 153 ATF_REQUIRE_MSG(child_sp.sched_priority == sp.sched_priority, in ATF_TC_BODY() 155 child_sp.sched_priority, sp.sched_priority); in ATF_TC_BODY()
|
| /freebsd-13.1/lib/libthr/thread/ |
| H A D | thr_kern.c | 75 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 79 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 83 param->sched_priority = 0; in _rtp_to_schedparam() 96 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 100 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp()
|
| H A D | thr_setschedparam.c | 66 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam() 67 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() 76 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
|
| H A D | thr_attr.c | 251 param->sched_priority = (*attr)->prio; in _thr_attr_getschedparam() 477 if (param->sched_priority < _thr_priorities[policy-1].pri_min || in _thr_attr_setschedparam() 478 param->sched_priority > _thr_priorities[policy-1].pri_max) in _thr_attr_setschedparam() 488 (*attr)->prio = param->sched_priority; in _thr_attr_setschedparam()
|
| H A D | thr_getprio.c | 50 ret = param.sched_priority; in _pthread_getprio()
|
| H A D | thr_getschedparam.c | 68 param->sched_priority = pthread->attr.prio; in _pthread_getschedparam()
|
| H A D | thr_setprio.c | 50 param.sched_priority = prio; in _pthread_setprio()
|
| H A D | thr_create.c | 172 sched_param.sched_priority = new_thread->attr.prio; in _pthread_create()
|
| H A D | thr_init.c | 427 thread->attr.prio = sched_param.sched_priority; in init_main_thread()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libpthread/ |
| H A D | t_mutex.c | 487 param.sched_priority = min_fifo_prio; in ATF_TC_BODY() 523 param.sched_priority = min_fifo_prio + 10; in high_prio() 529 _sched_protect(-2), param.sched_priority); in high_prio() 531 printf("high prio = %d\n", param.sched_priority); in high_prio() 554 param.sched_priority = min_fifo_prio; in low_prio() 561 param.sched_priority); in low_prio() 563 printf("low prio = %d\n", param.sched_priority); in low_prio() 624 param.sched_priority = min_fifo_prio; in ATF_TC_BODY()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_misc.c | 1517 if (sched_param.sched_priority != 0) in linux_sched_setscheduler() 1520 sched_param.sched_priority = in linux_sched_setscheduler() 1525 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler() 1533 sched_param.sched_priority = in linux_sched_setscheduler() 1534 (sched_param.sched_priority - 1) * in linux_sched_setscheduler() 2100 sched_param.sched_priority = in linux_sched_setparam() 2105 if (sched_param.sched_priority < 1 || in linux_sched_setparam() 2114 sched_param.sched_priority = in linux_sched_setparam() 2153 sched_param.sched_priority = 0; in linux_sched_getparam() 2161 sched_param.sched_priority = in linux_sched_getparam() [all …]
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntpd.c | 493 sched.sched_priority = pmax; in set_process_priority() 497 sched.sched_priority = pmax; in set_process_priority() 499 sched.sched_priority = pmin; in set_process_priority() 501 sched.sched_priority = config_priority; in set_process_priority()
|
| /freebsd-13.1/sys/sys/ |
| H A D | sched.h | 246 int sched_priority; member
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Threading.inc | 255 // For each of the above policies, param->sched_priority must be 0. 256 priority.sched_priority = 0;
|
| /freebsd-13.1/tests/sys/kern/ |
| H A D | ptrace_test.c | 2035 sched_param.sched_priority = in ATF_TC_BODY() 2040 sched_param.sched_priority -= RQ_PPQ; in ATF_TC_BODY() 2138 sched_param.sched_priority = in ATF_TC_BODY() 2143 sched_param.sched_priority -= RQ_PPQ; in ATF_TC_BODY()
|
| /freebsd-13.1/contrib/llvm-project/openmp/runtime/src/ |
| H A D | z_Linux_util.cpp | 591 if (param.sched_priority < max_priority) { in __kmp_launch_monitor() 592 param.sched_priority += 1; in __kmp_launch_monitor()
|
| /freebsd-13.1/tools/tools/netmap/ |
| H A D | nmreplay.c | 666 p.sched_priority = 10; // 99 on linux ? in setaffinity()
|
| /freebsd-13.1/usr.bin/truss/ |
| H A D | syscalls.c | 2752 fprintf(fp, "{ %d }", sp.sched_priority); in print_arg()
|