summaryrefslogtreecommitdiff
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-23 07:53:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-23 07:53:36 +0200
commit63dafeb392139b893a73b6331f347613f0929702 (patch)
tree44f928364b4e48c44b1ffe61d1578535de2a657a /rust/helpers/cpu.c
parentb29929b819f35503024c6a7e6ad442f6e36c68a0 (diff)
parent86731a2a651e58953fc949573895f2fa6d456841 (diff)
Merge 6.16-rc3 into driver-core-next
We need the driver-core fixes that are in 6.16-rc3 into here as well to build on top of. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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 0000000000000..824e0adb19d4c
--- /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();
+}