Skip to content

rust: time: seconds based Instant

FUJITA Tomonori rust-for-linux 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2rust: time: make Instant generic over the time unitrust/kernel/time.rs+32 -120 replies
2/2rust: time: add Instant in secondsrust/helpers/time.c rust/kernel/time.rs+85 -80 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBoqun FengAndreas Hindborg
SeriesA-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] rust: time: seconds based Instant

From: FUJITA Tomonori <[email protected]>

Mike's series added a free function ktime_get_real_seconds() [1]. Andreas and Boqun preferred a seconds based Instant instead. This series does that.

1/2 adds a unit type parameter to Instant, with no functional change. 2/2 adds the Sec unit and ClockId::ktime_get_seconds(). Instant<C, Sec> has only now() and as_secs(); there is no Delta<Sec>.

The now() doc comment in 1/2 changes the same line as [2]. Whichever is applied first, the other conflicts on that one line only.

Based on rust-next.

[1] https://lore.kernel.org/rust-for-linux/[email protected]/
[2] https://lore.kernel.org/rust-for-linux/[email protected]/

FUJITA Tomonori (2):
rust: time: make Instant generic over the time unit
rust: time: add Instant in seconds

 rust/helpers/time.c |  10 ++++
 rust/kernel/time.rs | 123 +++++++++++++++++++++++++++++++++++++-------
 2 files changed, 115 insertions(+), 18 deletions(-)

base-commit: d89e1d186ec9271bf78e62771779e9fc03bf0fc3

Signature · 1 line
2.43.0