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/stop_task.c | |
| parent | d5cd35f38616a70453da067eda153f5dc5ede3a1 (diff) | |
sched/walt: Re-add code to allow WALT to function
Change-Id: Ieb1067c5e276f872ed4c722b7d1fabecbdad87e7
Diffstat (limited to 'kernel/sched/stop_task.c')
| -rw-r--r-- | kernel/sched/stop_task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c index 3278c81cefb1..0fa11d86599e 100644 --- a/kernel/sched/stop_task.c +++ b/kernel/sched/stop_task.c @@ -1,4 +1,5 @@ #include "sched.h" +#include "walt.h" /* * stop-task scheduling class. @@ -78,6 +79,7 @@ static void enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags) { add_nr_running(rq, 1); + walt_inc_cumulative_runnable_avg(rq, p); inc_hmp_sched_stats_stop(rq, p); } @@ -85,6 +87,7 @@ static void dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags) { sub_nr_running(rq, 1); + walt_dec_cumulative_runnable_avg(rq, p); dec_hmp_sched_stats_stop(rq, p); } |
