All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] Rust timekeeping for v7.1
@ 2026-03-30  9:28 Andreas Hindborg
  2026-04-08  9:08 ` Miguel Ojeda
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Hindborg @ 2026-03-30  9:28 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,

Pleas pull these changes for rust timekeeping.

This PR expands the example section of `HrTimer`, adds a constructor for
`Delta` and marks `ClockSource` as unsafe to ensure only valid values
are returned by `ClockSource::ktime_get`.

The following changes since commit c369299895a591d96745d6492d4888259b004a9e:

  Linux 7.0-rc5 (2026-03-22 14:42:17 -0700)

are available in the Git repository at:

  https://github.com/rust-for-linux/linux.git tags/rust-timekeeping-for-v7.1

for you to fetch changes up to ddb1444d3335129ae87d9796ab1debf41c0ee51b:

  hrtimer: add usage examples to documentation (2026-03-23 08:31:00 +0100)

----------------------------------------------------------------
Rust timekeeping changes for v7.1

 - Expand the example section in the `HrTimer` documentation.

 - Mark the `ClockSource` trait as unsafe to ensure valid values for `ktime_get()`.

 - Add `Delta::from_nanos()`.

----------------------------------------------------------------
Andreas Hindborg (1):
      hrtimer: add usage examples to documentation

FUJITA Tomonori (1):
      rust: time: make ClockSource unsafe trait

Lyude Paul (1):
      rust/time: Add Delta::from_nanos()

 rust/kernel/time.rs         |  32 ++++-
 rust/kernel/time/hrtimer.rs | 336 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 362 insertions(+), 6 deletions(-)


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

* Re: [GIT PULL] Rust timekeeping for v7.1
  2026-03-30  9:28 [GIT PULL] Rust timekeeping for v7.1 Andreas Hindborg
@ 2026-04-08  9:08 ` Miguel Ojeda
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Ojeda @ 2026-04-08  9:08 UTC (permalink / raw)
  To: Andreas Hindborg
  Cc: Miguel Ojeda, Boqun Feng, FUJITA Tomonori, Frederic Weisbecker,
	Lyude Paul, Thomas Gleixner, Anna-Maria Behnsen, John Stultz,
	Stephen Boyd, rust-for-linux@vger.kernel.org

On Mon, Mar 30, 2026 at 11:28 AM Andreas Hindborg <a.hindborg@kernel.org> wrote:
>
> Pleas pull these changes for rust timekeeping.

Merged into `rust-next` -- thanks!

As discussed offline, this counts as a back merge, so let's avoid it
in the future unless justified. For this time around, I provided this
context in the merge commit:

    This is a back merge since the pull request has a newer base -- we will
    avoid that in the future.

    And, given it is a back merge, it happens to resolve the "subtle" conflict
    around '--remap-path-{prefix,scope}' that I discussed in linux-next [1],
    plus a few other common conflicts. The result matches what we did for
    next-20260407.

    The actual diffstat (i.e. using a temporary merge of upstream first) is:

        rust/kernel/time.rs         |  32 ++++-
        rust/kernel/time/hrtimer.rs | 336
++++++++++++++++++++++++++++++++++++++++++++
        2 files changed, 362 insertions(+), 6 deletions(-)

    Link: https://lore.kernel.org/linux-next/CANiq72kdxB=W3_CV1U44oOK3SssztPo2wLDZt6LP94TEO+Kj4g@mail.gmail.com/
[1]

    * tag 'rust-timekeeping-for-v7.1' of
https://github.com/Rust-for-Linux/linux:
      hrtimer: add usage examples to documentation
      rust: time: make ClockSource unsafe trait
      rust/time: Add Delta::from_nanos()

Cheers,
Miguel

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

end of thread, other threads:[~2026-04-08  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30  9:28 [GIT PULL] Rust timekeeping for v7.1 Andreas Hindborg
2026-04-08  9:08 ` Miguel Ojeda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.