[PATCH v1 0/2] rust: time: Add fsleep()

From: FUJITA Tomonori
Date: Tue Jun 17 2025 - 10:42:35 EST


Add wrapper for fsleep() function.

The first patch renames from the Delta's methods as_micros_ceil() and
as_millis() to into_micros_ceil() and into_millis() respectively to
maintain consistency with the other function names. I think that the
commit 2ed94606a0fe ("rust: time: Rename Delta's methods from as_* to
into_*"), wasn't applied as expected, due to the conflict with the
commit 1b7bbd597527 ("rust: time: Avoid 64-bit integer division on
32-bit architectures").

The second patch is effectively a resend of a previous patch in the
iopoll patchset. The last post was:

[PATCH v15 5/6] rust: time: Add wrapper for fsleep() function

https://lore.kernel.org/lkml/20250423192857.199712-6-fujita.tomonori@xxxxxxxxx/

This patch has already been reviewed by many developers. It was not
merged previously due to issues with 64-bit division on 32-bit
architectures. A patch addressing the division issue has already been
merged, so this patch can now be merged as well.


FUJITA Tomonori (2):
rust: time: Rename Delta's as_micros_ceil and as_millis
rust: time: Add wrapper for fsleep() function

rust/helpers/time.c | 6 +++++
rust/kernel/time.rs | 5 ++--
rust/kernel/time/delay.rs | 49 +++++++++++++++++++++++++++++++++++++++
3 files changed, 58 insertions(+), 2 deletions(-)
create mode 100644 rust/kernel/time/delay.rs


base-commit: 994393295c89711531583f6de8f296a30b0d944a
--
2.43.0