Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:37
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:switched_from, switched_to and prio_changed must _NOT_ drop rq->lock,* use the balance_callback list if you want balancing.* this means any call to check_class_changed() must be followed by a call to* balance_callback().

Proto:static inline void check_class_changed(struct rq *rq, struct task_struct *p, const struct sched_class *prev_class, int oldprio)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
const struct sched_class *prev_class
intoldprio
1409  If prev_class != sched_class Then
1410  If switched_from Then switched_from(rq, p)
1413  switched_to(rq, p)
1414  Else if oldprio != prio || dl_task(p) Then prio_changed(rq, p, oldprio)
Caller
NameDescribe
__sched_setscheduler