Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:32
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_load_weight

Proto:static void set_load_weight(struct task_struct *p, bool update_load)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
boolupdate_load
750  prio = static_prio - MAX_RT_PRIO
751  load = For load-balancing:
756  If task_has_idle_policy(p) Then
757  weight = scale_load(To aid in avoiding the subversion of "niceness" due to uneven distribution* of tasks with abnormal "nice" values across CPUs the contribution that* each task makes to its run queue's load is weighted according to its* scheduling class and "nice" value)
758  inv_weight = WMULT_IDLEPRIO
759  runnable_weight = weight
760  Return
767  If update_load && sched_class == fair_sched_class Then
768  reweight_task(p, prio)
769  Else
770  weight = scale_load(sched_prio_to_weight[prio])
771  inv_weight = sched_prio_to_wmult[prio]
772  runnable_weight = weight
Caller
NameDescribe
sched_forkrk()/clone()-time setup:
set_user_nice
__setscheduler_params
sched_init