| /freebsd-12.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-12.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 | 305 static void sched_priority(struct thread *); 1544 sched_priority(struct thread *td) in sched_priority() function 2151 sched_priority(td); in sched_nice() 2222 sched_priority(child); in sched_fork() 2225 sched_priority(td); in sched_fork() 2322 sched_priority(td); in sched_exit_thread() 2414 sched_priority(td); in sched_clock() 2554 sched_priority(td); in sched_add()
|
| H A D | sched_4bsd.c | 135 static void sched_priority(struct thread *td, u_char prio); 820 sched_priority(struct thread *td, u_char prio) in sched_priority() function 854 sched_priority(td, prio); in sched_lend_prio() 899 sched_priority(td, prio); in sched_prio()
|
| /freebsd-12.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-12.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-12.1/lib/libthr/thread/ |
| H A D | thr_kern.c | 79 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 83 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 87 param->sched_priority = 0; in _rtp_to_schedparam() 100 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 104 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 | 173 sched_param.sched_priority = new_thread->attr.prio; in _pthread_create()
|
| H A D | thr_init.c | 426 thread->attr.prio = sched_param.sched_priority; in init_main_thread()
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libpthread/ |
| H A D | t_mutex.c | 402 param.sched_priority = min_fifo_prio; in ATF_TC_BODY() 438 param.sched_priority = min_fifo_prio + 10; in high_prio() 444 _sched_protect(-2), param.sched_priority); in high_prio() 446 printf("high prio = %d\n", param.sched_priority); in high_prio() 469 param.sched_priority = min_fifo_prio; in low_prio() 476 param.sched_priority); in low_prio() 478 printf("low prio = %d\n", param.sched_priority); in low_prio() 539 param.sched_priority = min_fifo_prio; in ATF_TC_BODY()
|
| /freebsd-12.1/contrib/gcc/ |
| H A D | gthr-posix.h | 324 params.sched_priority = priority; in __gthread_objc_thread_set_priority() 352 return params.sched_priority; in __gthread_objc_thread_get_priority()
|
| H A D | gthr-posix95.h | 290 params.sched_priority = priority; in __gthread_objc_thread_set_priority() 318 return params.sched_priority; in __gthread_objc_thread_get_priority()
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | ntpd.c | 516 sched.sched_priority = pmax; in set_process_priority() 520 sched.sched_priority = pmax; in set_process_priority() 522 sched.sched_priority = pmin; in set_process_priority() 524 sched.sched_priority = config_priority; in set_process_priority()
|
| /freebsd-12.1/sys/sys/ |
| H A D | sched.h | 238 int sched_priority; member
|
| /freebsd-12.1/contrib/openmp/runtime/src/ |
| H A D | z_Linux_util.cpp | 631 if (param.sched_priority < max_priority) { in __kmp_launch_monitor() 632 param.sched_priority += 1; in __kmp_launch_monitor()
|
| /freebsd-12.1/tests/sys/kern/ |
| H A D | ptrace_test.c | 2001 sched_param.sched_priority = in ATF_TC_BODY() 2006 sched_param.sched_priority -= RQ_PPQ; in ATF_TC_BODY() 2104 sched_param.sched_priority = in ATF_TC_BODY() 2109 sched_param.sched_priority -= RQ_PPQ; in ATF_TC_BODY()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/ |
| H A D | NativeProcessDarwin.cpp | 948 thread_param.sched_priority = 47; in MaybeRaiseThreadPriority()
|
| /freebsd-12.1/tools/tools/netmap/ |
| H A D | nmreplay.c | 672 p.sched_priority = 10; // 99 on linux ? in setaffinity()
|