Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:When switching to -deadline, we may overload the rq, then* we try to push someone off, if possible.

Proto:static void switched_to_dl(struct rq *rq, struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
2373  If hrtimer_try_to_cancel( & * Inactive timer, responsible for decreasing the active utilization * at the "0-lag time". When a -deadline task blocks, it contributes * to GRUB's active utilization until the "0-lag time", hence a * timer is needed to decrease the active utilization at t) == 1 Then put_task_struct(p)
2377  If Not task_on_rq_queued(p) Then
2378  add_rq_bw( & dl, & dl)
2380  Return
2383  If curr != p Then
2388  If dl_task(curr) Then check_preempt_curr_dl(rq, p, 0)
2390  Else 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.