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:sub_nr_running

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

Type:void

Parameter:

TypeParameterName
struct rq *rq
unsignedcount
1931  * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. -= count
1933  sched_update_tick_dependency(rq)
Caller
NameDescribe
dequeue_task_fairThe dequeue_task method is called before nr_running is* decreased. We remove the task from the rbtree and* update the fair scheduling stats:
dequeue_top_rt_rq
dec_dl_tasks
dequeue_task_stop