rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] Rust timekeeping for v6.18
@ 2025-09-19 11:46 Andreas Hindborg
  2025-09-21 19:26 ` Miguel Ojeda
  2025-09-22 20:31 ` Miguel Ojeda
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Hindborg @ 2025-09-19 11:46 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Boqun Feng, FUJITA Tomonori, Frederic Weisbecker, Lyude Paul,
	Thomas Gleixner, Anna-Maria Behnsen, John Stultz, Stephen Boyd,
	rust-for-linux@vger.kernel.org, rust-for-linux

Hi Miguel,

Please pull these changes for the rust timekeeping subsystem.

This PR consists of three main parts:

 - Additional functionality for `HrTimer` that allows use of operations
   that can only be executed in timer callback context, or with
   exclusive access to a timer that is not armed.

 - Arithmetic operations for `Instant` and `Delta`.

 - A few other minor updates.

While these changes will benefit everyone in the long run, they have a
near future user in rvkms. The changes has been in linux-next for at
least a week.

The following changes since commit b320789d6883cc00ac78ce83bccbfe7ed58afcf0:

  Linux 6.17-rc4 (2025-08-31 15:33:07 -0700)

are available in the Git repository at:

  ssh://github.com/Rust-for-Linux/linux.git tags/rust-timekeeping-v6.18

for you to fetch changes up to 4521438fb076f8a6a52f45b0e508f6ef10ac0c49:

  rust: time: Implement basic arithmetic operations for Delta (2025-09-04 16:56:48 +0200)

Best regards,
Andreas

----------------------------------------------------------------
Rust timekeeping changes for v6.18

 - Add methods on `HrTimer` that can only be called with exclusive access to an
   unarmed timer, or form timer callback context.

 - Add arithmetic operations to `Instant` and `Delta`.

 - Add a few convenience and access methods to `HrTimer` and `Instant`.

----------------------------------------------------------------
Lyude Paul (9):
      rust: hrtimer: Document the return value for HrTimerHandle::cancel()
      rust: hrtimer: Add HrTimerInstant
      rust: hrtimer: Add HrTimer::raw_forward() and forward()
      rust: hrtimer: Add HrTimerCallbackContext and ::forward()
      rust: hrtimer: Add forward_now() to HrTimer and HrTimerCallbackContext
      rust: time: Add Instant::from_ktime()
      rust: hrtimer: Add HrTimer::expires()
      rust: time: Implement Add<Delta>/Sub<Delta> for Instant
      rust: time: Implement basic arithmetic operations for Delta

 rust/kernel/time.rs                 | 163 +++++++++++++++++++++++++++++++++++-
 rust/kernel/time/hrtimer.rs         | 152 ++++++++++++++++++++++++++++++++-
 rust/kernel/time/hrtimer/arc.rs     |   9 +-
 rust/kernel/time/hrtimer/pin.rs     |   9 +-
 rust/kernel/time/hrtimer/pin_mut.rs |  12 ++-
 rust/kernel/time/hrtimer/tbox.rs    |   9 +-
 6 files changed, 344 insertions(+), 10 deletions(-)


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

end of thread, other threads:[~2025-09-22 20:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19 11:46 [GIT PULL] Rust timekeeping for v6.18 Andreas Hindborg
2025-09-21 19:26 ` Miguel Ojeda
2025-09-22  8:22   ` Andreas Hindborg
2025-09-22  9:12     ` Miguel Ojeda
2025-09-22 20:31 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).