Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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)

Proto:void cpudl_set(struct cpudl *cp, int cpu, u64 dl)

Type:void

Parameter:

TypeParameterName
struct cpudl *cp
intcpu
u64dl
195  WARN_ON(!cpu_present(cpu))
197  raw_spin_lock_irqsave( & lock, flags)
199  old_idx = idx
200  If old_idx == SPDX-License-Identifier: GPL-2.0 Then
201  new_idx = size++
203  dl = dl
204  cpu = cpu
205  idx = new_idx
206  cpudl_heapify_up(cp, new_idx)
207  pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
208  Else
209  dl = dl
210  cpudl_heapify(cp, old_idx)
213  raw_spin_unlock_irqrestore( & lock, flags)