Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\flex_proportions.c Create Date:2022-07-28 06:14:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fprop_reflect_period_single

Proto:static void fprop_reflect_period_single(struct fprop_global *p, struct fprop_local_single *pl)

Type:void

Parameter:

TypeParameterName
struct fprop_global *p
struct fprop_local_single *pl
109  period = Current period
113  If Period in which we last updated events == period Then Return
115  raw_spin_lock_irqsave( & Protect period and numerator , flags)
117  If Period in which we last updated events >= period Then
118  raw_spin_unlock_irqrestore( & Protect period and numerator , flags)
119  Return
122  If period - Period in which we last updated events < BITS_PER_LONG Then he local events counter >>= period - Period in which we last updated events
124  Else he local events counter = 0
126  Period in which we last updated events = period
127  raw_spin_unlock_irqrestore( & Protect period and numerator , flags)
Caller
NameDescribe
__fprop_inc_singleEvent of type pl happened
fprop_fraction_singleReturn fraction of events of type pl