diff options
| author | Cheng-Yang Chou <yphbchou0911@gmail.com> | 2026-04-21 08:31:13 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-04-21 09:05:11 +0300 |
| commit | 12ff49d4e1d9df09320b19a0c33477f9cc737baf (patch) | |
| tree | 3f5ce554aeb8f5561981de6f59d9419af4e10b7a | |
| parent | 463a4436d64e825b822c51277e3ed1ab7af741be (diff) | |
| download | linux-12ff49d4e1d9df09320b19a0c33477f9cc737baf.tar.xz | |
tools/sched_ext: Remove unused nr_cpus in scx_cpu0
The nr_cpus variable is defined in scx_cpu0.bpf.c but never used in
the BPF logic. Remove both in BPF and userspace side.
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
| -rw-r--r-- | tools/sched_ext/scx_cpu0.bpf.c | 2 | ||||
| -rw-r--r-- | tools/sched_ext/scx_cpu0.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/tools/sched_ext/scx_cpu0.bpf.c b/tools/sched_ext/scx_cpu0.bpf.c index 0b1a7ce879b0..909d1be1bfe3 100644 --- a/tools/sched_ext/scx_cpu0.bpf.c +++ b/tools/sched_ext/scx_cpu0.bpf.c @@ -18,8 +18,6 @@ char _license[] SEC("license") = "GPL"; -const volatile u32 nr_cpus = 32; /* !0 for veristat, set during init */ - UEI_DEFINE(uei); /* diff --git a/tools/sched_ext/scx_cpu0.c b/tools/sched_ext/scx_cpu0.c index a6fba9978b9c..4966e3d4c724 100644 --- a/tools/sched_ext/scx_cpu0.c +++ b/tools/sched_ext/scx_cpu0.c @@ -72,8 +72,6 @@ restart: optind = 1; skel = SCX_OPS_OPEN(cpu0_ops, scx_cpu0); - skel->rodata->nr_cpus = libbpf_num_possible_cpus(); - while ((opt = getopt(argc, argv, "vh")) != -1) { switch (opt) { case 'v': |
