summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-02-18 19:22:35 +0000
committerTejun Heo <tj@kernel.org>2026-02-20 17:17:38 -1000
commit640c9dc72f21f325700a4b0f839ad568ff21c697 (patch)
treefff0d9135f60b2fc5cf70b8763002d01ba697d39 /include/linux
parentf892f9f99464bead942a75d2b00dda6be07de97f (diff)
tools/sched_ext: fix getopt not re-parsed on restart
After goto restart, optind retains its advanced position from the previous getopt loop, causing getopt() to immediately return -1. This silently drops all command-line options on the restarted skeleton. Reset optind to 1 at the restart label so options are re-parsed. Affected schedulers: scx_simple, scx_central, scx_flatcg, scx_pair, scx_sdt, scx_cpu0. Signed-off-by: David Carlier <devnexen@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions