Files
linux/kernel/sched
David Vernet 8a6c6b4b93 sched_ext: Make scx_bpf_cpuperf_set() @cpu arg signed
The scx_bpf_cpuperf_set() kfunc allows a BPF program to set the relative
performance target of a specified CPU. Commit d86adb4fc0 ("sched_ext: Add
cpuperf support") defined the @cpu argument to be unsigned. Let's update it
to be signed to match the norm for the rest of ext.c and the kernel.

Note that the kfunc declaration of scx_bpf_cpuperf_set() in the
common.bpf.h header in tools/sched_ext already listed the cpu as signed, so
this also fixes the build for tools/sched_ext and the sched_ext selftests
due to kfunc declarations now being emitted in vmlinux.h based on BTF (thus
causing the compiler to error due to observing conflicting types).

Fixes: d86adb4fc0 ("sched_ext: Add cpuperf support")
Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2024-06-23 07:53:15 -10:00
..
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2020-10-29 11:00:30 +01:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-06-21 12:37:22 -10:00
2024-06-18 10:09:17 -10:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-06-21 12:37:22 -10:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2024-05-27 17:00:21 +02:00
2023-10-18 14:34:18 -07:00