mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
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:
parent
36183d4ec4
commit
03504cab3c
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user