Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sched_dl_global_validate

Proto:int sched_dl_global_validate(void)

Type:int

Parameter:Nothing

2465  runtime = global_rt_runtime()
2466  period = global_rt_period()
2467  new_bw = to_ratio(period, runtime)
2469  ret = 0
2481  for_each_possible_cpu(cpu)
2482  _read_lock_sched() - mark the beginning of a RCU-sched critical section* This is equivalent of rcu_read_lock(), but disables preemption.* Read-side critical sections can also be introduced by anything else
2483  dl_b = dl_bw_of(cpu)
2485  raw_spin_lock_irqsave( & lock, flags)
2486  If new_bw < total_bw Then ret = -EBUSY
2488  raw_spin_unlock_irqrestore( & lock, flags)
2490  _read_unlock_sched - marks the end of a RCU-classic critical section* See rcu_read_lock_sched for more information.
2492  If ret Then Break
2496  Return ret
Caller
NameDescribe
sched_rt_handler