aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/rcu.c
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2025-04-05 06:04:35 +0000
committerDmitry Torokhov <[email protected]>2025-04-05 06:04:35 +0000
commit946661e3bef8efa11ba8079d4ebafe6fc3b0aaad (patch)
treea90605abb7bb65503a2d3f93a79e19a01aaa5e89 /rust/helpers/rcu.c
parentMAINTAINERS: Remove myself from the goodix touchscreen maintainers (diff)
parentInput: goodix_berlin - add support for Berlin-A series (diff)
downloadkernel-946661e3bef8efa11ba8079d4ebafe6fc3b0aaad.tar.gz
kernel-946661e3bef8efa11ba8079d4ebafe6fc3b0aaad.zip
Merge branch 'next' into for-linus
Prepare input updates for 6.15 merge window.
Diffstat (limited to 'rust/helpers/rcu.c')
-rw-r--r--rust/helpers/rcu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/helpers/rcu.c b/rust/helpers/rcu.c
new file mode 100644
index 000000000000..f1cec6583513
--- /dev/null
+++ b/rust/helpers/rcu.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/rcupdate.h>
+
+void rust_helper_rcu_read_lock(void)
+{
+ rcu_read_lock();
+}
+
+void rust_helper_rcu_read_unlock(void)
+{
+ rcu_read_unlock();
+}