Skip to content

Commit d07b5de

Browse files
Joel Fernandespundiramit
authored andcommitted
ANDROID: sched/rt: add schedtune accounting
This patch adds schedtune enqueue/dequeue to RT scheduling class. Change-Id: If416e64319d62191f3aedd675d3e9a21fe2102fb Signed-off-by: Joel Fernandes <joelaf@google.com>
1 parent 0e6c844 commit d07b5de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

kernel/sched/rt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/irq_work.h>
1010

1111
#include "walt.h"
12+
#include "tune.h"
1213

1314
int sched_rr_timeslice = RR_TIMESLICE;
1415

@@ -1321,6 +1322,8 @@ enqueue_task_rt(struct rq *rq, struct task_struct *p, int flags)
13211322

13221323
if (!task_current(rq, p) && p->nr_cpus_allowed > 1)
13231324
enqueue_pushable_task(rq, p);
1325+
1326+
schedtune_enqueue_task(p, cpu_of(rq));
13241327
}
13251328

13261329
static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int flags)
@@ -1332,6 +1335,7 @@ static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int flags)
13321335
walt_dec_cumulative_runnable_avg(rq, p);
13331336

13341337
dequeue_pushable_task(rq, p);
1338+
schedtune_dequeue_task(p, cpu_of(rq));
13351339
}
13361340

13371341
/*

0 commit comments

Comments
 (0)