diff options
author | Ethan Chen <intervigil@gmail.com> | 2018-01-20 16:35:53 -0800 |
---|---|---|
committer | Georg Veichtlbauer <georg@vware.at> | 2023-07-16 12:47:43 +0200 |
commit | c0fa7577022c4169e1aaaf1bd9e04f63d285beb2 (patch) | |
tree | 83a03fba1d3744ec0903770bacfa0a56cea68cc5 /kernel/sched/rt.c | |
parent | d5cd35f38616a70453da067eda153f5dc5ede3a1 (diff) |
sched/walt: Re-add code to allow WALT to function
Change-Id: Ieb1067c5e276f872ed4c722b7d1fabecbdad87e7
Diffstat (limited to 'kernel/sched/rt.c')
-rw-r--r-- | kernel/sched/rt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 391ec29c71c0..2083a54cdd49 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -12,6 +12,7 @@ #include <linux/hrtimer.h> #include "tune.h" +#include "walt.h" int sched_rr_timeslice = RR_TIMESLICE; int sysctl_sched_rr_timeslice = (MSEC_PER_SEC / HZ) * RR_TIMESLICE; @@ -1449,6 +1450,7 @@ enqueue_task_rt(struct rq *rq, struct task_struct *p, int flags) rt_se->timeout = 0; enqueue_rt_entity(rt_se, flags); + walt_inc_cumulative_runnable_avg(rq, p); inc_hmp_sched_stats_rt(rq, p); if (!task_current(rq, p) && p->nr_cpus_allowed > 1) @@ -1488,6 +1490,7 @@ static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int flags) update_curr_rt(rq); dequeue_rt_entity(rt_se, flags); + walt_dec_cumulative_runnable_avg(rq, p); dec_hmp_sched_stats_rt(rq, p); dequeue_pushable_task(rq, p); |