Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dl_change_utilization

Proto:void dl_change_utilization(struct task_struct *p, u64 new_bw)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
u64new_bw
160  BUG_ON( Specifying the scheduler behaviour & !! For sched_setattr_nocheck() (kernel) only !!* This is actually gross. :(* It is used to make schedutil kworker(s) higher priority than SCHED_DEADLINE* tasks, but still be able to sleep. We need this on platforms that cannot)
162  If task_on_rq_queued(p) Then Return
165  rq = task_rq(p)
166  If dl_non_contending Then
167  sub_running_bw( & dl, & dl)
168  dl_non_contending = 0
176  If 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 Then put_task_struct(p)
179  __sub_rq_bw( dl_runtime / dl_period , & dl)
180  __add_rq_bw(new_bw, & dl)
Caller
NameDescribe
sched_dl_overflowWe must be sure that accepting a new task (or allowing changing the* parameters of an existing one) is consistent with the bandwidth* constraints. If yes, this function also accordingly updates the currently