Home
last modified time | relevance | path

Searched refs:new_priority (Results 1 – 5 of 5) sorted by relevance

/xnu-11215/osfmk/kern/
H A Dpriority.c342 sched_set_kernel_thread_priority(thread_t thread, int new_priority) in sched_set_kernel_thread_priority() argument
351 if (new_priority > thread->max_priority) { in sched_set_kernel_thread_priority()
352 new_priority = thread->max_priority; in sched_set_kernel_thread_priority()
355 if (new_priority < MAXPRI_THROTTLE) { in sched_set_kernel_thread_priority()
356 new_priority = MAXPRI_THROTTLE; in sched_set_kernel_thread_priority()
360 thread->importance = new_priority - thread->task_priority; in sched_set_kernel_thread_priority()
362 sched_set_thread_base_priority(thread, new_priority); in sched_set_kernel_thread_priority()
H A Dthread.c1521 int new_priority = (priority < 0) ? parent_task->priority: priority; in thread_create_internal() local
1522 new_priority = (priority < 0)? parent_task->priority: priority; in thread_create_internal()
1523 if (new_priority > new_thread->max_priority) { in thread_create_internal()
1524 new_priority = new_thread->max_priority; in thread_create_internal()
1527 if (new_priority < MAXPRI_THROTTLE) { in thread_create_internal()
1528 new_priority = MAXPRI_THROTTLE; in thread_create_internal()
1532 new_thread->importance = new_priority - new_thread->task_priority; in thread_create_internal()
1534 sched_set_thread_base_priority(new_thread, new_priority); in thread_create_internal()
H A Dturnstile.c2429 int new_priority; in turnstile_recompute_priority_locked() local
2462 new_priority = max(thread_max_pri, turnstile_max_pri); in turnstile_recompute_priority_locked()
2463 turnstile->ts_priority = (uint8_t)new_priority; in turnstile_recompute_priority_locked()
2465 if (old_priority != new_priority) { in turnstile_recompute_priority_locked()
2470 new_priority, in turnstile_recompute_priority_locked()
2474 needs_priority_update = (!(old_priority == new_priority)) && in turnstile_recompute_priority_locked()
H A Dsched_prim.c6362 int16_t new_priority, in set_sched_pri() argument
6372 if (new_priority == old_priority) { in set_sched_pri()
6395 thread->sched_pri = new_priority; in set_sched_pri()
6430 if (!lazy_update && new_priority < old_priority) { in set_sched_pri()
/xnu-11215/bsd/kern/
H A Dkern_memorystatus.c2517 _memstat_record_idle_transition(proc_t p, int new_priority) in _memstat_record_idle_transition() argument
2519 if (p->p_memstat_effectivepriority == new_priority) { in _memstat_record_idle_transition()
2541 } else if (new_priority == JETSAM_PRIORITY_IDLE) { in _memstat_record_idle_transition()
7322 int32_t new_priority; local
7429 new_priority = JETSAM_PRIORITY_IDLE;
7432 new_priority = table[i].priority;
7440 memstat_update_priority_locked(p, new_priority, priority_options);