函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\deadline.c Create Date:2022-07-27 10:41:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static void switched_to_dl(struct rq *rq, struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
2373  如果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则put_task_struct(p)
2377  如果非进程处于任务队列
2378  add_rq_bw( & dl, & dl)
2380  返回
2383  如果当前任务不等于p
2388  如果dl_task(当前任务)则check_preempt_curr_dl(rq, p, 0)
2390  否则标记当前进程需要被调度出去