summaryrefslogtreecommitdiff
path: root/rust/helpers/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/time.c')
-rw-r--r--rust/helpers/time.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/helpers/time.c b/rust/helpers/time.c
index 08755db43fc2..a318e9fa4408 100644
--- a/rust/helpers/time.c
+++ b/rust/helpers/time.c
@@ -1,8 +1,14 @@
// SPDX-License-Identifier: GPL-2.0
+#include <linux/delay.h>
#include <linux/ktime.h>
#include <linux/timekeeping.h>
+void rust_helper_fsleep(unsigned long usecs)
+{
+ fsleep(usecs);
+}
+
ktime_t rust_helper_ktime_get_real(void)
{
return ktime_get_real();