Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_next_entity

Proto:static void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *se
4173  If on_rq Then
4179  update_stats_wait_end(cfs_rq, se)
4180  __dequeue_entity(cfs_rq, se)
4181  update_load_avg(cfs_rq, se, UPDATE_TG)
4184  We are picking a new current task - update its stats:
4185  'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running). = se
4192  If schedstat_enabled() && weight >= 2 * weight Then
4194  schedstat_set(slice_max, max - return maximum of two values of the same or compatible types*@x: first value*@y: second value((u64)schedstat_val(slice_max), sum_exec_runtime - prev_sum_exec_runtime))
4199  prev_sum_exec_runtime = sum_exec_runtime
Caller
NameDescribe
pick_next_task_fair
set_next_task_fairAccount for a task changing its policy or group.* This routine is mostly called to set cfs_rq->curr field when a task* migrates between groups/classes.