Searched refs:NRQS (Results 1 – 7 of 7) sorted by relevance
| /xnu-8020.140.41/osfmk/kern/ |
| H A D | sched.h | 177 #define NRQS (BASEPRI_REALTIME) /* Non-realtime levels for runqs */ macro 181 _Static_assert((NRQS == (MAXPRI_PROMOTE + 1)), "Runqueues are too small to hold all non-realtime th… 227 bitmap_t bitmap[BITMAP_LEN(NRQS)]; /* run queue bitmap array */ 230 circle_queue_head_t queues[NRQS]; /* one for each priority */ 238 assert(n < NRQS); in rq_bitmap_set() 245 assert(n < NRQS); in rq_bitmap_clear() 405 #define MAX_LOAD (NRQS - 1) 409 extern int8_t sched_load_shifts[NRQS];
|
| H A D | sched_multiq.c | 192 struct sched_entry entries[NRQS]; 411 for (size_t i = 0; i < NRQS; i++) { in sched_group_create() 435 for (int i = 0; i < NRQS; i++) { in sched_group_destroy() 641 rq->highq = bitmap_first(rq->bitmap, NRQS); in entry_queue_dequeue_entry() 717 rq->highq = bitmap_first(rq->bitmap, NRQS); in entry_queue_remove_entry() 774 rq->highq = bitmap_first(rq->bitmap, NRQS); in group_run_queue_dequeue_thread() 851 rq->highq = bitmap_first(rq->bitmap, NRQS); in group_run_queue_remove_thread() 1404 for (queue_index = bitmap_first(runq->bitmap, NRQS); in group_scan()
|
| H A D | sched_traditional.c | 374 rq->highq = bitmap_first(rq->bitmap, NRQS); in sched_traditional_choose_thread_from_runq() 557 rq->highq = bitmap_first(rq->bitmap, NRQS); in sched_traditional_processor_queue_shutdown() 680 rq->highq = bitmap_first(rq->bitmap, NRQS); in sched_traditional_steal_processor_thread()
|
| H A D | sched_proto.c | 350 rq->highq = bitmap_first(rq->bitmap, NRQS); in sched_proto_choose_thread()
|
| H A D | sched_prim.c | 378 int8_t sched_load_shifts[NRQS]; 703 for (i = 0; i < NRQS; i++) { in load_shift_init() 718 for (i = 2, j = 1 << sched_decay_penalty, k = 1; i < NRQS; ++k) { in load_shift_init() 719 for (j <<= 1; (i < j) && (i < NRQS); ++i) { in load_shift_init() 3872 for (u_int i = 0; i < BITMAP_LEN(NRQS); i++) { in run_queue_init() 3876 for (int i = 0; i < NRQS; i++) { in run_queue_init() 3915 rq->highq = bitmap_first(rq->bitmap, NRQS); in run_queue_dequeue() 3991 rq->highq = bitmap_first(rq->bitmap, NRQS); in run_queue_remove() 6760 for (queue_index = bitmap_first(runq->bitmap, NRQS); in runq_scan()
|
| H A D | sched_grrr.c | 94 static grrr_proportional_priority_t grrr_priority_mapping[NRQS];
|
| H A D | sched_clutch.c | 376 for (uint8_t i = 0; i < BITMAP_LEN(NRQS); i++) { in sched_clutch_bucket_runq_init() 380 for (int i = 0; i < NRQS; i++) { in sched_clutch_bucket_runq_init() 462 clutch_buckets_rq->scbrq_highq = bitmap_first(clutch_buckets_rq->scbrq_bitmap, NRQS); in sched_clutch_bucket_runq_remove() 1772 bucket_group_load = MIN(bucket_group_load, NRQS - 1); in sched_clutch_bucket_group_timeshare_update()
|