···124124125125static inline int rt_policy(int policy)126126{127127- if (unlikely(policy == SCHED_FIFO || policy == SCHED_RR))127127+ if (policy == SCHED_FIFO || policy == SCHED_RR)128128 return 1;129129 return 0;130130}···24862486 if (p->sched_class->task_woken)24872487 p->sched_class->task_woken(rq, p);2488248824892489- if (unlikely(rq->idle_stamp)) {24892489+ if (rq->idle_stamp) {24902490 u64 delta = rq->clock - rq->idle_stamp;24912491 u64 max = 2*sysctl_sched_migration_cost;24922492
+2-2
kernel/sched_rt.c
···1126112611271127 rt_rq = &rq->rt;1128112811291129- if (unlikely(!rt_rq->rt_nr_running))11291129+ if (!rt_rq->rt_nr_running)11301130 return NULL;1131113111321132 if (rt_rq_throttled(rt_rq))···15441544static void pre_schedule_rt(struct rq *rq, struct task_struct *prev)15451545{15461546 /* Try to pull RT tasks here if we lower this rq's prio */15471547- if (unlikely(rt_task(prev)) && rq->rt.highest_prio.curr > prev->prio)15471547+ if (rq->rt.highest_prio.curr > prev->prio)15481548 pull_rt_task(rq);15491549}15501550