]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Pass locked CPU parameter to scx_hardlockup() and add docs
authorTejun Heo <tj@kernel.org>
Fri, 14 Nov 2025 01:33:41 +0000 (15:33 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 14 Nov 2025 21:11:08 +0000 (11:11 -1000)
commit1dcb98bbb7538d4b9015d47c934acdf5ea86045c
treecd4da847a8bd58897113dcfcd6335030e0c338a1
parent67932f691895294a95861571b0ca69a38e0a4894
sched_ext: Pass locked CPU parameter to scx_hardlockup() and add docs

With the buddy lockup detector, smp_processor_id() returns the detecting CPU,
not the locked CPU, making scx_hardlockup()'s printouts confusing. Pass the
locked CPU number from watchdog_hardlockup_check() as a parameter instead.

Also add kerneldoc comments to handle_lockup(), scx_hardlockup(), and
scx_rcu_cpu_stall() documenting their return value semantics.

Suggested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/sched/ext.h
kernel/sched/ext.c
kernel/watchdog.c