Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e67573b authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Improve the scheduler"

parents 7194f63f 1eb5d78d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -735,6 +735,7 @@ static inline void enqueue_task(struct rq *rq, struct task_struct *p, int flags)
		sched_info_queued(rq, p);

	p->sched_class->enqueue_task(rq, p, flags);
	walt_update_last_enqueue(p);
	trace_sched_enq_deq_task(p, 1, cpumask_bits(&p->cpus_allowed)[0]);
}

@@ -747,6 +748,10 @@ static inline void dequeue_task(struct rq *rq, struct task_struct *p, int flags)
		sched_info_dequeued(rq, p);

	p->sched_class->dequeue_task(rq, p, flags);
#ifdef CONFIG_SCHED_WALT
	if (p == rq->ed_task)
		early_detection_notify(rq, sched_ktime_clock());
#endif
	trace_sched_enq_deq_task(p, 0, cpumask_bits(&p->cpus_allowed)[0]);
}