Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:psi_group_change

Proto:static unsigned int psi_group_change(struct psi_group *group, int cpu, unsigned int clear, unsigned int set)

Type:unsigned int

Parameter:

TypeParameterName
struct psi_group *group
intcpu
unsigned intclear
unsigned intset
678  state_mask = 0
680  groupc = per_cpu_ptr(pcpu, cpu)
690  write_seqcount_begin( & seq)
692  record_times(groupc, cpu, false)
694  When m cycle
695  If Not (m & 1 << t ) Then Continue
697  If tasks[t] == 0 && Not psi_bug Then
702  psi_bug = 1
704  tasks[t]--
707  When set cycle If set & 1 << t Then
709  tasks[t]++
712  When s < NR_PSI_STATES cycle
713  If test_state(tasks, s) Then state_mask |= 1 << s
716  state_mask = state_mask
718  write_seqcount_end( & seq)
720  Return state_mask
Caller
NameDescribe
psi_task_change