summaryrefslogtreecommitdiff
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2025-06-22 21:54:03 -0700
committerNamhyung Kim <namhyung@kernel.org>2025-06-22 21:54:03 -0700
commitc833e8cc4dca7e3c0a9d0b9047a1b4822b229262 (patch)
tree7cfd4ca423884505425e7f473b280ba392fb6b7c /rust/helpers/cpu.c
parentedf2cadf01e8f2620af25b337d15ebc584911b46 (diff)
parent86731a2a651e58953fc949573895f2fa6d456841 (diff)
Merge tag 'v6.16-rc3' into perf-tools-next
To get the fixes in libbpf and perf tools. Signed-off-by: Namhyung Kim <namhyung@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();
+}