Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:inactive_task_timer

Proto:static enum hrtimer_restart inactive_task_timer(struct hrtimer *timer)

Type:enum hrtimer_restart

Parameter:

TypeParameterName
struct hrtimer *timer
1284  dl_se = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(timer, structsched_dl_entity, inactive_timer)
1287  p = dl_task_of(dl_se)
1291  rq = ask_rq_lock - lock p->pi_lock and lock the rq @p resides on.
1293  sched_clock_tick()
1294  update_rq_clock(rq)
1296  If Not dl_task(p) || run state == TASK_DEAD Then
1297  dl_b = dl_bw_of(task_cpu(p))
1299  If run state == TASK_DEAD && dl_non_contending Then
1300  sub_running_bw( & dl, dl_rq_of_se( & dl))
1301  sub_rq_bw( & dl, dl_rq_of_se( & dl))
1302  dl_non_contending = 0
1305  raw_spin_lock( & lock)
1306  __dl_sub(dl_b, dl_runtime / dl_period , dl_bw_cpus(task_cpu(p)))
1307  raw_spin_unlock( & lock)
1308  This function clears the sched_dl_entity static params.
1310  Go to unlock
1312  If dl_non_contending == 0 Then Go to unlock
1315  sub_running_bw(dl_se, & dl)
1316  dl_non_contending = 0
1317  unlock :
1318  task_rq_unlock(rq, p, & rf)
1319  put_task_struct(p)
1321  Return Timer is not restarted