Skip to content

Commit

Permalink
sched/tune: Remove redundant condition checks for restore_cgroup_boost
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh <santhosh.user.why.red@gmail.com>
  • Loading branch information
user-why-red committed Jun 12, 2024
1 parent af7bc30 commit eb770b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions kernel/sched/tune.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,8 @@ void update_cgroup_boost_settings(void) {
}
}

void restore_cgroup_boost_settings(void)
{
int i;

for (i = 0; i < BOOSTGROUPS_COUNT; i++) {
if (!allocated_group[i])
break;

void restore_cgroup_boost_settings(void) {
for (int i = 0; i < BOOSTGROUPS_COUNT && allocated_group[i]; ++i) {
allocated_group[i]->sched_boost_enabled = true;
}
}
Expand Down

0 comments on commit eb770b8

Please sign in to comment.