Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_prev_task_stop

Proto:static void put_prev_task_stop(struct rq *rq, struct task_struct *prev)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *prev
65  curr = curr
68  delta_exec = rq_clock_task(rq) - exec_start
69  If Value for the false possibility is greater at compile time((s64)delta_exec < 0) Then delta_exec = 0
72  schedstat_set(exec_max, max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(exec_max, delta_exec))
75  sum_exec_runtime += delta_exec
76  account_group_exec_runtime - Maintain exec runtime for a thread group
78  exec_start = rq_clock_task(rq)
79  cgroup_account_cputime(curr, delta_exec)