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

Commit 2c22ab72 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I6ce4c5c962125bea62e3843ce4e220827ab65a7a
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 9ae54a8e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2044,6 +2044,7 @@ static inline void walt_try_to_wake_up(struct task_struct *p)
	wallclock = sched_ktime_clock();
	update_task_ravg(rq->curr, rq, TASK_UPDATE, wallclock, 0);
	update_task_ravg(p, rq, TASK_WAKE, wallclock, 0);
	note_task_waking(p, wallclock);
	rq_unlock_irqrestore(rq, &rf);

	rcu_read_lock();
@@ -2081,9 +2082,6 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags,
{
	unsigned long flags;
	int cpu, success = 0;
#ifdef CONFIG_SMP
	u64 wallclock;
#endif

	/*
	 * If we are going to wake up a thread waiting for CONDITION we
@@ -2175,8 +2173,6 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags,
		set_task_cpu(p, cpu);
	}

	wallclock = sched_ktime_clock();
	note_task_waking(p, wallclock);
#else /* CONFIG_SMP */

	if (p->in_iowait) {