Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-28 09:46:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:update_triggers

Proto:static u64 update_triggers(struct psi_group *group, u64 now)

Type:u64

Parameter:

TypeParameterName
struct psi_group *group
u64now
506  bool new_stall = false
507  total = total[PSI_POLL]
517  If polling_total[state] == total[state] Then Continue
526  new_stall = true
529  growth = PSI growth tracking window update and growth calculation routine.* This approximates a sliding tracking window by interpolating* partially elapsed windows using historical growth data from the* previous intervals
530  If growth < threshold Then Continue
534  If now < last_event_time + size Then Continue
538  If cmpxchg( & event, 0, 1) == 0 Then wake_up_interruptible( & event_wait)
540  last_event_time = now
543  If new_stall Then No 3D Now!(polling_total, total, size of polling_total )
547  Return now + poll_min_period
Caller
NameDescribe
psi_poll_work