Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\sched.h Create Date:2022-07-28 05:59:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_nr_running

Proto:static inline void add_nr_running(struct rq *rq, unsigned count)

Type:void

Parameter:

TypeParameterName
struct rq *rq
unsignedcount
1915  prev_nr = * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation.
1917  * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. = prev_nr + count
1926  sched_update_tick_dependency(rq)
Caller
NameDescribe
enqueue_task_fairThe enqueue_task method is called before nr_running is* increased. Here we update the fair scheduling stats and* then put the task into the rbtree:
enqueue_top_rt_rq
inc_dl_tasks
enqueue_task_stop