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

Commit 7b4422b5 authored by Shaleen Agrawal's avatar Shaleen Agrawal
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I4d4a3ca2068be977f8d6d06cd5c7be576abb629a
Signed-off-by: default avatarShaleen Agrawal <shalagra@codeaurora.org>
parent d8534164
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -6505,7 +6505,7 @@ static inline bool walt_target_ok(int target_cpu, int order_index)
}

static void walt_get_indicies(struct task_struct *p, int *order_index,
		int *end_index, int task_boost)
		int *end_index, int task_boost, bool boosted)
{
	int i = 0;

@@ -6528,8 +6528,7 @@ static void walt_get_indicies(struct task_struct *p, int *order_index,
		return;
	}

	if (task_boost == TASK_BOOST_ON_MID ||
		task_boost_policy(p) == SCHED_BOOST_ON_BIG ||
	if (boosted || task_boost_policy(p) == SCHED_BOOST_ON_BIG ||
		walt_task_skip_min_cpu(p))
		*order_index = 1;

@@ -7023,7 +7022,7 @@ int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
	if (unlikely(!cpu_array))
		goto eas_not_ready;

	walt_get_indicies(p, &order_index, &end_index, task_boost);
	walt_get_indicies(p, &order_index, &end_index, task_boost, boosted);
	start_cpu = cpumask_first(&cpu_array[order_index][0]);

	is_rtg = task_in_related_thread_group(p);