Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

SCX: Synchronize boot CPU's online state with SCX_RQ_ONLINE #214

Merged
merged 1 commit into from
May 28, 2024

Conversation

htejun
Copy link
Collaborator

@htejun htejun commented May 28, 2024

We weren't synchronizing the boot CPU's online state with scx_rq's online state. This however was getting hidden through the RQ_ONOFF_TOPOLOGY update calls. 3a44769 ("scx: Replace scx_cpu_online percpu var with SCX_RQ_ONLINE flag") masked RQ_ONOFF_TOPOLOGY calls leaving the boot CPU marked offline from SCX's POV always forcing the CPU into local bypass mode, likely leading to reported interactivity problems on scx_rusty.

Fix it by synchronizing SCX_RQ_ONLINE with CPU's online states in init_sched_ext_class().

We weren't synchronizing the boot CPU's online state with scx_rq's online
state. This however was getting hidden through the RQ_ONOFF_TOPOLOGY update
calls. 3a44769 ("scx: Replace scx_cpu_online percpu var with
SCX_RQ_ONLINE flag") masked RQ_ONOFF_TOPOLOGY calls leaving the boot CPU
marked offline from SCX's POV always forcing the CPU into local bypass mode,
likely leading to reported interactivity problems on scx_rusty.

Fix it by synchronizing SCX_RQ_ONLINE with CPU's online states in
init_sched_ext_class().
@htejun htejun merged commit 2c4bceb into sched_ext May 28, 2024
1 check failed
@htejun htejun deleted the htejun/fix-RQ_ONLINE-on-cpu0 branch May 28, 2024 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant