Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/sched_ext: scx_central: Remove unused '-p' option

The '-p' option is defined in getopt() but not handled in the switch
statement or documented in the help text. Providing '-p' currently
triggers the default error path.

Remove it to sync the optstring with the actual implementation.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Cheng-Yang Chou and committed by
Tejun Heo
0c36a6f6 1f063860

+1 -1
+1 -1
tools/sched_ext/scx_central.c
··· 66 66 assert(skel->rodata->nr_cpu_ids > 0); 67 67 assert(skel->rodata->nr_cpu_ids <= INT32_MAX); 68 68 69 - while ((opt = getopt(argc, argv, "s:c:pvh")) != -1) { 69 + while ((opt = getopt(argc, argv, "s:c:vh")) != -1) { 70 70 switch (opt) { 71 71 case 's': 72 72 skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000;