summaryrefslogtreecommitdiff
path: root/tools/lib/python/abi/helpers.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2025-11-11 09:18:10 -1000
committerTejun Heo <tj@kernel.org>2025-11-12 06:43:44 -1000
commit4ba54a6cbd4ddde805b769b4be04623a2ce1668c (patch)
tree253371dc233c3098d11c1ef914d0f739e82ffd76 /tools/lib/python/abi/helpers.py
parentf2fe382e1f9e568e6702f4ee416de587e9d6b671 (diff)
sched_ext: Refactor lockup handlers into handle_lockup()
scx_rcu_cpu_stall() and scx_softlockup() share the same pattern: check if the scheduler is enabled under RCU read lock and trigger an error if so. Extract the common pattern into handle_lockup() helper. Add scx_verror() macro and use guard(rcu)(). This simplifies both handlers, reduces code duplication, and prepares for hardlockup handling. Reviewed-by: Dan Schatzberg <schatzberg.dan@gmail.com> Reviewed-by: Andrea Righi <arighi@nvidia.com> Cc: Emil Tsalapatis <etsal@meta.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions