Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:psi_avgs_work

Proto:static void psi_avgs_work(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
418  dwork = to_delayed_work(work)
419  group = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(dwork, structpsi_group, avgs_work)
421  mutex_lock( & avgs_lock)
423  now = Scheduler clock - returns current time in nanosec units.* This is default implementation.* Architectures and sub-architectures can override this.
425  collect_percpu_times(group, PSI_AVGS, & changed_states)
426  nonidle = changed_states & 1 << PSI_NONIDLE
434  If now >= avg_next_update Then avg_next_update = update_averages(group, now)
437  If nonidle Then
438  schedule_delayed_work - put work task in global workqueue after delay*@dwork: job to be done*@delay: number of jiffies to wait or 0 for immediate execution* After waiting for a given time this puts a job in the kernel-global* workqueue.
442  mutex_unlock( & avgs_lock)