sched/walt: Improve the scheduler

This change is for general scheduler improvement.

Change-Id: I4ccf43485d46451837d3114de370b5ea9bc1f824
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
Abhijeet Dharmapurikar 2021-08-20 14:16:35 -07:00 committed by Rishabh Bhatnagar
parent 36183d4ec4
commit 03504cab3c

View File

@ -174,7 +174,7 @@ static int sched_effective_boost(void)
static void sched_boost_disable(int type)
{
struct sched_boost_data *sb = &sched_boosts[type];
int next_boost;
int next_boost, prev_boost = sched_boost_type;
if (sb->refcount <= 0)
return;
@ -192,6 +192,9 @@ static void sched_boost_disable(int type)
sb->exit();
next_boost = sched_effective_boost();
if (next_boost == prev_boost)
return;
sched_boosts[next_boost].enter();
}