Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:When switching a task to RT, we may overload the runqueue* with RT tasks. In this case we try to push them off to* other runqueues.

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

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
2225  If task_on_rq_queued(p) && curr != p Then
2230  If prio < prio && cpu_online(cpu_of(rq)) 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.