Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add Delta::to_jiffies_timeout()
@ 2026-09-24 23:25 FUJITA Tomonori
  2026-09-24 23:25 ` [PATCH v4 1/2] rust: bindings: set HZ to CONFIG_HZ FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: FUJITA Tomonori @ 2026-09-24 23:25 UTC (permalink / raw)
  To: a.hindborg, gary, ojeda
  Cc: acourbot, aliceryhl, anna-maria, bjorn3_gh, boqun, dakr,
	daniel.almeida, frederic, jstultz, lossin, lyude, sboyd, tamird,
	tglx, tmgross, work, rust-for-linux, FUJITA Tomonori

From: FUJITA Tomonori <fujita.tomonori@gmail.com>

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/20260808062839.1159990-1-tomo@flapping.org/

---
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/20260908230445.2430296-1-tomo@flapping.org/
- Add the first patch to set bindings::HZ to CONFIG_HZ.
- Drop the CONFIG_HZ workaround.
v2: https://lore.kernel.org/rust-for-linux/20260907123524.2332118-1-tomo@flapping.org/
- 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/20260811150147.1360102-1-tomo@flapping.org/

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
-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-09-29 10:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-24 23:25 [PATCH v4 0/2] Add Delta::to_jiffies_timeout() FUJITA Tomonori
2026-09-24 23:25 ` [PATCH v4 1/2] rust: bindings: set HZ to CONFIG_HZ FUJITA Tomonori
2026-09-24 23:25 ` [PATCH v4 2/2] rust: time: add Delta::to_jiffies_timeout() for timeout conversion FUJITA Tomonori
2026-09-25  8:00   ` Andreas Hindborg
2026-09-25  9:39     ` FUJITA Tomonori
2026-09-25 14:48       ` Miguel Ojeda
2026-09-28  9:37         ` Andreas Hindborg
2026-09-28  9:45           ` Miguel Ojeda
2026-09-28  9:57             ` Andreas Hindborg
2026-09-29 10:15 ` [PATCH v4 0/2] Add Delta::to_jiffies_timeout() Andreas Hindborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox