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>
This commit is contained in:
Cheng-Yang Chou
2026-04-21 13:31:13 +08:00
committed by Tejun Heo
parent 463a4436d6
commit 12ff49d4e1
2 changed files with 0 additions and 4 deletions

View File

@@ -18,8 +18,6 @@
char _license[] SEC("license") = "GPL";
const volatile u32 nr_cpus = 32; /* !0 for veristat, set during init */
UEI_DEFINE(uei);
/*

View File

@@ -72,8 +72,6 @@ int main(int argc, char **argv)
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':