函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree.c Create Date:2022-07-27 11:25:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Make sure that we give the grace-period kthread time to detect any* idle CPUs before taking active measures to force quiescent states.* However, don't go below 100 milliseconds, adjusted upwards for really* large systems.

函数原型:static void adjust_jiffies_till_sched_qs(void)

返回类型:void

参数:

448  如果How long the grace period must be before we start recruiting* quiescent-state help from rcu_note_context_switch().不等于ULONG_MAX
449  WRITE_ONCE(See adjust_jiffies_till_sched_qs(). , How long the grace period must be before we start recruiting* quiescent-state help from rcu_note_context_switch().)
450  返回
453  j等于READ_ONCE(jiffies_till_first_fqs)加2乘READ_ONCE(jiffies_till_next_fqs)
455  如果j小于HZ除10加nr_cpu_idsVery large systems need more j等于HZ除10加nr_cpu_idsVery large systems need more
457  打印信息("RCU calculated value of scheduler-enlistment delay is %ld jiffies.\n", j)
458  WRITE_ONCE(See adjust_jiffies_till_sched_qs(). , j)
调用者
名称描述
param_set_first_fqs_jiffies
param_set_next_fqs_jiffies
rcu_init_geometryCompute the rcu_node tree geometry from kernel parameters. This cannot* replace the definitions in tree.h because those are needed to size* the ->node array in the rcu_state structure.