Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:37:12
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_init

Proto:void __init sched_init(void)

Type:void

Parameter:Nothing

6574  ptr = 0
6577  wait_bit_init()
6585  If ptr Then
6586  ptr = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
6614  init_rt_bandwidth( & def_rt_bandwidth, global_rt_period(), global_rt_runtime())
6615  init_dl_bandwidth( & def_dl_bandwidth, global_rt_period(), global_rt_runtime())
6635  for_each_possible_cpu(i)
6638  rq = cpu_rq(i)
6639  raw_spin_lock_init( & runqueue lock: )
6640  * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. = 0
6641  calc_load_active = 0
6642  calc_load related fields = jiffies + 5 sec intervals
6643  init_cfs_rq( & cfs)
6644  init_rt_rq( & rt)
6645  init_dl_rq( & dl)
6673  rt_runtime = rt_runtime
6700  hrtick_rq_init(rq)
6701  atomic_set( & nr_iowait, 0)
6704  set_load_weight( & init_task, false)
6709  mmgrab() - Pin a &struct mm_struct
6710  enter_lazy_tlb( & init_mm, current process)
6718  _idle - set up an idle thread for a given CPU*@idle: task in question*@cpu: CPU the idle task belongs to* NOTE: this function does not set the idle thread's NEED_RESCHED* flag, to make booting more robust.
6720  calc_load_update = jiffies + 5 sec intervals
6725  init_sched_fair_class()
6727  init_schedstats()
6729  psi_init()
6731  init_uclamp()
6733  scheduler_running = 1