Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reweight_entity

Proto:static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight, unsigned long runnable)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *se
unsigned longweight
unsigned longrunnable
2883  If on_rq Then
2885  If 'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running). == se Then Update the current task's runtime statistics.
2887  account_entity_dequeue(cfs_rq, se)
2888  dequeue_runnable_load_avg(cfs_rq, se)
2890  dequeue_load_avg(cfs_rq, se)
2892  runnable_weight = runnable
2893  update_load_set( & For load-balancing: , weight)
2905  enqueue_load_avg(cfs_rq, se)
2906  If on_rq Then
2907  account_entity_enqueue(cfs_rq, se)
2908  enqueue_runnable_load_avg(cfs_rq, se)
Caller
NameDescribe
reweight_task