mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
sched: Improve the scheduler
This change is for general scheduler improvement. Change-Id: I4d4a3ca2068be977f8d6d06cd5c7be576abb629a Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
parent
d8534164bb
commit
7b4422b5a6
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue