Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Preempt the current task with a newly woken task if needed:

Proto:static void check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *curr
4139  ideal_runtime = We calculate the wall-time slice from the period by taking a part* proportional to the weight.* s = p*P[w/rw]
4140  delta_exec = sum_exec_runtime - prev_sum_exec_runtime
4141  If delta_exec > ideal_runtime Then
4142  sched_curr - mark rq's current task 'to be rescheduled now'.* On UP this means the setting of the need_resched flag, on SMP it* might also involve a cross-CPU call to trigger the scheduler on* the target CPU.
4147  clear_buddies(cfs_rq, curr)
4148  Return
4156  If delta_exec < Minimal preemption granularity for CPU-bound tasks:* (default: 0.75 msec * (1 + ilog(ncpus)), units: nanoseconds) Then Return
4159  se = __pick_first_entity(cfs_rq)
4160  delta = vruntime - vruntime
4162  If delta < 0 Then Return
4165  If delta > ideal_runtime Then sched_curr - mark rq's current task 'to be rescheduled now'.* On UP this means the setting of the need_resched flag, on SMP it* might also involve a cross-CPU call to trigger the scheduler on* the target CPU.
Caller
NameDescribe
entity_tick