Skip to content

Commit 70d8b64

Browse files
cloehlerafaeljw
authored andcommitted
sched/cpufreq: Ensure sd is rebuilt for EAS check
Ensure sugov_eas_rebuild_sd() is always called when sugov_init() succeeds. The out goto initialized sugov without forcing the rebuild. Previously the missing call to sugov_eas_rebuild_sd() could lead to EAS not being enabled on boot when it should have been, because it requires all policies to be controlled by schedutil while they might not have been initialized yet. Fixes: e7a1b32 ("cpufreq: Rebuild sched-domains when removing cpufreq driver") Signed-off-by: Christian Loehle <christian.loehle@arm.com> Link: https://patch.msgid.link/35e572d9-1152-406a-9e34-2525f7548af9@arm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 2207726 commit 70d8b64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/sched/cpufreq_schedutil.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,9 +783,8 @@ static int sugov_init(struct cpufreq_policy *policy)
783783
if (ret)
784784
goto fail;
785785

786-
sugov_eas_rebuild_sd();
787-
788786
out:
787+
sugov_eas_rebuild_sd();
789788
mutex_unlock(&global_tunables_lock);
790789
return 0;
791790

0 commit comments

Comments
 (0)