17.4 Runqueue Initialization
The code block situated between autogroup_init() and atomic_set(&rq->nr_iowait, 0) is responsible for initializing the primary runqueues, Completely Fair Scheduling (CFS) runqueues, real-time (RT) runqueues, and deadline (DL) runqueues for all CPU cores. It concurrently attaches each individual CPU's runqueue to the default root domain (def_root_domain) by mapping the rd field of each runqueue structure to the address of def_root_domain, performing the final preparatory steps before the CPUs commence task execution.