mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
sched/walt: Improve the scheduler
This change is for general scheduler improvement. Change-Id: I42edf6c6df05f0bf72e4c57ee701916860773428 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
This commit is contained in:
parent
ebbfc8d0bf
commit
208b88eff2
1 changed files with 4 additions and 4 deletions
|
|
@ -233,12 +233,12 @@ static void sched_boost_enable(int type)
|
|||
static void sched_boost_disable_all(void)
|
||||
{
|
||||
int i;
|
||||
int prev_boost = sched_boost_type;
|
||||
|
||||
for (i = SCHED_BOOST_START; i < SCHED_BOOST_END; i++) {
|
||||
if (sched_boosts[i].refcount > 0) {
|
||||
sched_boosts[i].exit();
|
||||
if (prev_boost != NO_BOOST) {
|
||||
sched_boosts[prev_boost].exit();
|
||||
for (i = SCHED_BOOST_START; i < SCHED_BOOST_END; i++)
|
||||
sched_boosts[i].refcount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue