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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 7795e292f4c9..0ebfd7a29472 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -973,7 +973,7 @@ dequeue_top_rt_rq(struct rt_rq *rt_rq)
973 973
974 BUG_ON(!rq->nr_running); 974 BUG_ON(!rq->nr_running);
975 975
976 rq->nr_running -= rt_rq->rt_nr_running; 976 sub_nr_running(rq, rt_rq->rt_nr_running);
977 rt_rq->rt_queued = 0; 977 rt_rq->rt_queued = 0;
978} 978}
979 979
@@ -989,7 +989,7 @@ enqueue_top_rt_rq(struct rt_rq *rt_rq)
989 if (rt_rq_throttled(rt_rq) || !rt_rq->rt_nr_running) 989 if (rt_rq_throttled(rt_rq) || !rt_rq->rt_nr_running)
990 return; 990 return;
991 991
992 rq->nr_running += rt_rq->rt_nr_running; 992 add_nr_running(rq, rt_rq->rt_nr_running);
993 rt_rq->rt_queued = 1; 993 rt_rq->rt_queued = 1;
994} 994}
995 995