summaryrefslogtreecommitdiff
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-07-06 10:24:46 +0200
committerTakashi Iwai <tiwai@suse.de>2025-07-06 10:24:46 +0200
commitb228467e86fa7a12768680a5d12785034bb5b19c (patch)
tree7eb61dc856105f45dda814b5292dac4eaa9975d9 /rust/helpers/cpu.c
parent6eda9429501508196001845998bb8c73307d311a (diff)
parentcd4da713f99651e99fbce8ed6b6ec8f686c029a8 (diff)
Merge tag 'pm-runtime-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm into for-next
Runtime PM updates related to autosuspend for 6.17 Make several autosuspend functions mark last busy stamp and update the documentation accordingly (Sakari Ailus). Signed-off-by: Takashi Iwai <tiwai@suse.de>
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();
+}