summaryrefslogtreecommitdiff
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2025-06-26 09:48:06 -0700
committerAlexei Starovoitov <ast@kernel.org>2025-06-26 09:49:39 -0700
commit886178a33a30fe685e926d84f531243982fb3c70 (patch)
tree23d0020f98ba1015593795ca957c55e5a306bd68 /rust/helpers/cpu.c
parent5046acc11382565c4a46818a5bc43bb65d20ed31 (diff)
parente34a79b96ab9d49ed8b605fee11099cf3efbb428 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf after rc3
Cross-merge BPF, perf and other fixes after downstream PRs. It restores BPF CI to green after critical fix commit bc4394e5e79c ("perf: Fix the throttle error of some clock events") No conflicts. Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/cpu.c')
-rw-r--r--rust/helpers/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/helpers/cpu.c b/rust/helpers/cpu.c
new file mode 100644
index 000000000000..824e0adb19d4
--- /dev/null
+++ b/rust/helpers/cpu.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/smp.h>
+
+unsigned int rust_helper_raw_smp_processor_id(void)
+{
+ return raw_smp_processor_id();
+}