rust: time: seconds based Instant
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rust: time: make Instant generic over the time unitrust/ | +32 | 0 replies | |
| 2/2 | rust: time: add Instant in secondsrust/ rust/ | +85 | 0 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.
| Patch | Boqun Feng | Andreas Hindborg |
|---|---|---|
| Series | A-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.
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