Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity.

Proto:static void yield_task_fair(struct rq *rq)

Type:void

Parameter:

TypeParameterName
struct rq *rq
6816  curr = curr
6817  cfs_rq = task_cfs_rq(curr)
6818  se = se
6823  If Value for the false possibility is greater at compile time(* nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. == 1) Then Return
6826  clear_buddies(cfs_rq, se)
6828  If policy != SCHED_BATCH Then
6829  update_rq_clock(rq)
6833  Update the current task's runtime statistics.
6839  rq_clock_skip_update(rq)
6842  set_skip_buddy(se)
Caller
NameDescribe
yield_to_task_fair