--- 84121b333c75066892119806ad6f6cfc74bb55d4 +++ b8657eb0f8312bd09c4eb6eea0ab18d210bfb777 @@ -128,7 +128,7 @@ static inline int rt_policy(int policy) { - if (policy == SCHED_FIFO || policy == SCHED_RR) + if (unlikely(policy == SCHED_FIFO || policy == SCHED_RR)) return 1; return 0; } @@ -2501,7 +2501,7 @@ ttwu_do_wakeup(struct rq *rq, struct tas if (p->sched_class->task_woken) p->sched_class->task_woken(rq, p); - if (rq->idle_stamp) { + if (unlikely(rq->idle_stamp)) { u64 delta = rq->clock - rq->idle_stamp; u64 max = 2*sysctl_sched_migration_cost; @@ -9449,4 +9449,3 @@ struct cgroup_subsys cpuacct_subsys = { .subsys_id = cpuacct_subsys_id, }; #endif /* CONFIG_CGROUP_CPUACCT */ -