aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-06-16 21:46:49 +0000
committersaturneric <[email protected]>2025-06-16 21:46:49 +0000
commit5a90d8addba52d4a64afcf7d8749cd2a56bf1619 (patch)
tree46ff99517ae7fb3acf77d0d5e34ba784f9cd1246 /rust/helpers/cpu.c
parentfix: force sync wireless drivers to v6.16-rc1 (diff)
parentLinux 6.16-rc2 (diff)
downloadkernel-5a90d8addba52d4a64afcf7d8749cd2a56bf1619.tar.gz
kernel-5a90d8addba52d4a64afcf7d8749cd2a56bf1619.zip
Merge tag 'v6.16-rc2'
Linux 6.16-rc2
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();
+}