]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/cpufreq: Ensure sd is rebuilt for EAS check
authorChristian Loehle <christian.loehle@arm.com>
Sat, 9 Nov 2024 00:24:14 +0000 (00:24 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Nov 2024 20:36:51 +0000 (21:36 +0100)
commit70d8b6485b0bcd135b6699fc4252d2272818d1fb
tree1003acfd0de904df2f510bbb10bff6ad31d5167b
parent220772691dcee69673a7c2f8204f4d668dadfa19
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: e7a1b32e43b1 ("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>
kernel/sched/cpufreq_schedutil.c