函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pudl_set - update the cpudl max-heap*@cp: the cpudl max-heap context*@cpu: the target CPU*@dl: the new earliest deadline for this CPU* Notes: assumes cpu_rq(cpu)->lock is locked* Returns: (void)

函数原型:void cpudl_set(struct cpudl *cp, int cpu, u64 dl)

返回类型:void

参数:

类型参数名称
struct cpudl *cp
intcpu
u64dl
195  WARN_ON(!cpu_present(cpu))
197  raw_spin_lock_irqsave( & lock, flags)
199  old_idx等于idx
200  如果old_idx恒等于SPDX-License-Identifier: GPL-2.0
201  new_idx等于size自加
203  dl等于dl
204  cpu等于cpu
205  idx等于new_idx
206  cpudl_heapify_up(cp, new_idx)
207  清空CPU信息
208  否则
209  dl等于dl
210  cpudl_heapify(cp, old_idx)
213  raw_spin_unlock_irqrestore( & lock, flags)