aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/rt.c')
-rw-r--r--kernel/sched/rt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 0ebfd7a29472..43406db306af 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -924,7 +924,6 @@ static void update_curr_rt(struct rq *rq)
924{ 924{
925 struct task_struct *curr = rq->curr; 925 struct task_struct *curr = rq->curr;
926 struct sched_rt_entity *rt_se = &curr->rt; 926 struct sched_rt_entity *rt_se = &curr->rt;
927 struct rt_rq *rt_rq = rt_rq_of_se(rt_se);
928 u64 delta_exec; 927 u64 delta_exec;
929 928
930 if (curr->sched_class != &rt_sched_class) 929 if (curr->sched_class != &rt_sched_class)
@@ -949,7 +948,7 @@ static void update_curr_rt(struct rq *rq)
949 return; 948 return;
950 949
951 for_each_sched_rt_entity(rt_se) { 950 for_each_sched_rt_entity(rt_se) {
952 rt_rq = rt_rq_of_se(rt_se); 951 struct rt_rq *rt_rq = rt_rq_of_se(rt_se);
953 952
954 if (sched_rt_runtime(rt_rq) != RUNTIME_INF) { 953 if (sched_rt_runtime(rt_rq) != RUNTIME_INF) {
955 raw_spin_lock(&rt_rq->rt_runtime_lock); 954 raw_spin_lock(&rt_rq->rt_runtime_lock);