Home
last modified time | relevance | path

Searched refs:SCHED (Results 1 – 17 of 17) sorted by relevance

/xnu-10063.101.15/osfmk/kern/
H A Dsyscall_subr.c110 result = SCHED(thread_should_yield)(myprocessor, current_thread()); in swtch_continue()
127 if (!SCHED(thread_should_yield)(myprocessor, current_thread())) { in swtch()
147 result = SCHED(thread_should_yield)(myprocessor, current_thread()); in swtch_pri_continue()
164 if (!SCHED(thread_should_yield)(myprocessor, current_thread())) { in swtch_pri()
306 bool should_yield = SCHED(thread_should_yield)(current_processor(), current_thread()); in thread_switch()
607 if (!SCHED(thread_should_yield)(myprocessor, self)) { in thread_yield_internal()
H A Dsched_prim.c147 return os_atomic_load(&SCHED(rt_runq)(pset)->count, relaxed); in rt_runq_count()
153 return os_atomic_load_wide(&SCHED(rt_runq)(pset)->earliest_deadline, relaxed); in rt_runq_earliest_deadline()
160 rt_queue_t rt_run_queue = SCHED(rt_runq)(pset); in rt_runq_priority()
244 return os_atomic_load(&SCHED(rt_runq)(pset)->constraint, relaxed) <= rt_constraint_threshold; in rt_runq_is_low_latency()
441 kprintf("Scheduler: Default of %s\n", SCHED(sched_name)); in sched_init()
458 strlcpy(sched_string, SCHED(sched_name), sizeof(sched_string)); in sched_init()
464 SCHED(init)(); in sched_init()
465 SCHED(rt_init)(&pset0); in sched_init()
468 SCHED(pset_init)(&pset0); in sched_init()
469 SCHED(processor_init)(master_processor); in sched_init()
[all …]
H A Dpriority.c201 if (SCHED(can_update_priority)(thread)) { in thread_quantum_expire()
202 SCHED(update_priority)(thread); in thread_quantum_expire()
204 SCHED(lightweight_update_priority)(thread); in thread_quantum_expire()
208 SCHED(quantum_expire)(thread); in thread_quantum_expire()
327 SCHED(update_thread_bucket)(thread); in sched_set_thread_base_priority()
392 priority = (int16_t)SCHED(compute_timeshare_priority)(thread); in thread_recompute_sched_pri()
969 SCHED(update_thread_bucket)(thread); in sched_set_thread_mode()
H A Dsched_multiq.c403 if (!SCHED(sched_groups_enabled)) { in sched_group_create()
427 if (!SCHED(sched_groups_enabled)) { in sched_group_destroy()
636 if (SCHED(priority_is_urgent)(rq->highq)) { in entry_queue_dequeue_entry()
679 if (SCHED(priority_is_urgent)(sched_pri)) { in entry_queue_enqueue_entry()
710 if (SCHED(priority_is_urgent)(sched_pri)) { in entry_queue_remove_entry()
769 if (SCHED(priority_is_urgent)(rq->highq)) { in group_run_queue_dequeue_thread()
815 if (SCHED(priority_is_urgent)(thread_pri)) { in group_run_queue_enqueue_thread()
844 if (SCHED(priority_is_urgent)(thread_pri)) { in group_run_queue_remove_thread()
H A Dsched_prim.h834 #define SCHED(f) (sched_edge_dispatch.f) macro
837 #define SCHED(f) (sched_amp_dispatch.f) macro
844 #define SCHED(f) (sched_clutch_dispatch.f) macro
847 #define SCHED(f) (sched_dualq_dispatch.f) macro
H A Dsched_traditional.c369 if (SCHED(priority_is_urgent)(pri)) { in sched_traditional_choose_thread_from_runq()
552 if (SCHED(priority_is_urgent)(pri)) { in sched_traditional_processor_queue_shutdown()
644 if (SCHED(priority_is_urgent)(pri)) { in sched_traditional_steal_processor_thread()
H A Dprocessor.c255 SCHED(processor_init)(processor); in processor_init()
510 if (SCHED(multiple_psets_enabled) == FALSE) { in pset_create()
625 SCHED(pset_init)(pset); in pset_init()
626 SCHED(rt_init)(pset); in pset_init()
H A Dhost.c259 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in host_info()
984 out->ps_runq_count_sum = SCHED(processor_runq_stats_count_sum)(processor); in get_sched_statistics()
999 out->ps_runq_count_sum = SCHED(rt_runq_count_sum)(); in get_sched_statistics()
H A Dmachine.c213 SCHED(pset_made_schedulable)(processor, pset, false); in processor_up()
477 SCHED(processor_queue_shutdown)(processor); in processor_doshutdown()
479 SCHED(rt_queue_shutdown)(processor); in processor_doshutdown()
H A Dstartup.c949 SCHED(run_count_incr)(thread); in load_context()
H A Dthread.c1511 new_thread->sched_mode = SCHED(initial_thread_sched_mode)(parent_task); in thread_create_internal()
1972 if (SCHED(can_update_priority)(thread)) { in retrieve_thread_basic_info()
1973 SCHED(update_priority)(thread); in retrieve_thread_basic_info()
2153 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal()
3663 return (uint64_t) (SCHED(initial_quantum_size)(thread) / 2); in thread_workq_quantum_size()
H A Dthread_group.c1360 SCHED(thread_group_recommendation_change)(tg, new_recommendation); in sched_perfcontrol_thread_group_recommend()
H A Dsched_clutch.c996 if (SCHED(priority_is_urgent)(thread->sched_pri)) { in sched_clutch_root_urgency_inc()
1016 if (SCHED(priority_is_urgent)(thread->sched_pri)) { in sched_clutch_root_urgency_dec()
H A Dthread_policy.c1266 sched_mode_t newmode = SCHED(initial_thread_sched_mode)(get_threadtask(thread)); in thread_policy_reset()
H A Dtask.c5606 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in task_info()
/xnu-10063.101.15/doc/scheduler/
H A Dsched_clutch_edge.md248SCHED(steal_thread)` scheduler callout is invoked when the processor does not find any thread for …
262 …turn THREAD_NULL for the steal callout and perform rebalancing as part of SCHED(processor_balance)…
269 If `SCHED(steal_thread)` did not return a thread for the processor, it indicates that the processor…
/xnu-10063.101.15/osfmk/arm64/
H A Dmachine_routines.c713 if (SCHED(cpu_init_completed) != NULL) { in ml_cpu_init_completed()
714 SCHED(cpu_init_completed)(); in ml_cpu_init_completed()