Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:scheduler tick hitting a task of our scheduling class

Proto:static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
intqueued
2314  rt_se = rt
2316  Update the current task's runtime statistics. Skip current tasks that* are not in our scheduling class.
2317  update_rt_rq_load_avg(rq_clock_pelt(rq), rq, 1)
2319  watchdog(rq, p)
2325  If policy != SCHED_RR Then Return
2328  If --time_slice Then Return
2331  time_slice = sched_rr_timeslice
2338  If prev != next Then
2339  requeue_task_rt(rq, p, 0)
2340  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.
2341  Return