Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree_exp.h Create Date:2022-07-28 10:28:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Reset the ->expmaskinit values in the rcu_node tree to reflect any* recent CPU-online activity. Note that these masks are not cleared* when CPUs go offline, so they reflect the union of all CPUs that have* ever been online

Proto:static void sync_exp_reset_tree_hotplug(void)

Type:void

Parameter:Nothing

77  ncpus = smp_load_acquire( & # CPUs seen so far. )
82  If Value is more likely to compile time(ncpus == # CPUs seen last time. ) Then Return
84  # CPUs seen last time. = ncpus
91  raw_spin_lock_irqsave_rcu_node(rnp, flags)
92  If complete. == ginning of each expedited GP. Then
93  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
94  Continue
98  oldmask = complete.
99  complete. = ginning of each expedited GP.
100  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
103  If oldmask Then Continue
107  mask = Mask to apply to parent qsmask.
108  rnp_up = cu_node tree?
109  done = false
110  When rnp_up cycle
111  raw_spin_lock_irqsave_rcu_node(rnp_up, flags)
112  If complete. Then done = true
114  complete. |= mask
115  raw_spin_unlock_irqrestore_rcu_node(rnp_up, flags)
116  If done Then Break
118  mask = Mask to apply to parent qsmask.
119  rnp_up = cu_node tree?