Skip to content

Add Delta::to_jiffies_timeout()

FUJITA Tomonori rust-for-linux 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 7 repliesApplied
  2. v32 patches 4 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Changes in v4 from the cover letter

- Use i64::max() and u64::min() instead of the method call syntax (Gary)
- Add Reviewed-by from Gary
v3: https://lore.kernel.org/rust-for-linux/[email protected]/
- Add the first patch to set bindings::HZ to CONFIG_HZ.
- Drop the CONFIG_HZ workaround.
v2: https://lore.kernel.org/rust-for-linux/[email protected]/
- Use mul_u64_add_u64_div_u64() instead of __msecs_to_jiffies().
- Dropped the as_millis_ceil() example and KUnit test patch; the conversion no longer uses as_millis_ceil(). Will send it separately.
v1: https://lore.kernel.org/rust-for-linux/[email protected]/

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2rust: bindings: set HZ to CONFIG_HZrust/bindings/lib.rs+5 -00 replies
2/2rust: time: add Delta::to_jiffies_timeout() for timeout conversionrust/helpers/helpers.c rust/helpers/math.c rust/kernel/Kconfig.test +1 more+124 -06 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGary Guo
1/2R-b
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] Add Delta::to_jiffies_timeout()

From: FUJITA Tomonori <[email protected]>

The first patch makes bindings::HZ resolve to CONFIG_HZ.

The second patch was previously posted as patch 4 of [1]; patches 1-3 of that series have been applied. It has been reworked.

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

---
v4:
- Use i64::max() and u64::min() instead of the method call syntax (Gary)
- Add Reviewed-by from Gary
v3: https://lore.kernel.org/rust-for-linux/[email protected]/
- Add the first patch to set bindings::HZ to CONFIG_HZ.
- Drop the CONFIG_HZ workaround.
v2: https://lore.kernel.org/rust-for-linux/[email protected]/
- Use mul_u64_add_u64_div_u64() instead of __msecs_to_jiffies().
- Dropped the as_millis_ceil() example and KUnit test patch; the conversion no longer uses as_millis_ceil(). Will send it separately.
v1: https://lore.kernel.org/rust-for-linux/[email protected]/

FUJITA Tomonori (2):
rust: bindings: set HZ to CONFIG_HZ
rust: time: add Delta::to_jiffies_timeout() for timeout conversion

 rust/bindings/lib.rs     |   5 ++
 rust/helpers/helpers.c   |   1 +
 rust/helpers/math.c      |   8 +++
 rust/kernel/Kconfig.test |  10 ++++
 rust/kernel/time.rs      | 105 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 129 insertions(+)
 create mode 100644 rust/helpers/math.c

base-commit: 93f51579e7df248780214094418f205253383cc5

Signature · 1 line
2.43.0