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

Commit 68d7a1a7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Improve the scheduler"

parents 69475f37 7b4422b5
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line 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,
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;
	int i = 0;


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


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


@@ -7023,7 +7022,7 @@ int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
	if (unlikely(!cpu_array))
	if (unlikely(!cpu_array))
		goto eas_not_ready;
		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]);
	start_cpu = cpumask_first(&cpu_array[order_index][0]);


	is_rtg = task_in_related_thread_group(p);
	is_rtg = task_in_related_thread_group(p);