All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Hindborg <a.hindborg@kernel.org>
To: Miguel Ojeda <ojeda@kernel.org>
Cc: Boqun Feng <boqun.feng@gmail.com>,
	FUJITA Tomonori <fujita.tomonori@gmail.com>,
	Frederic Weisbecker <frederic@kernel.org>,
	Lyude Paul <lyude@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Anna-Maria Behnsen <anna-maria@linutronix.de>,
	John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>,
	"rust-for-linux@vger.kernel.org" <rust-for-linux@vger.kernel.org>,
	rust-for-linux@vger.kernel.org,
Subject: [GIT PULL] Rust timekeeping for v6.17
Date: Mon, 07 Jul 2025 09:46:47 +0200	[thread overview]
Message-ID: <87qzysqw99.fsf@kernel.org> (raw)

Hi Miguel,

Please pull these changes for Rust timekeeping.

This batch of changes makes `Instant` generic over the clock source.
`HrTimer` also gets the generic treatment, allowing the API to type
check the time stamps passed to the API, to statically check whether a
relative or absolute time is required.

We also have a fix for 32-bit divisions on 64-bit architectures.

The commits have been in linux-next for at least a week.

The following changes since commit e04c78d86a9699d136910cfc0bdcf01087e3267e:

  Linux 6.16-rc2 (2025-06-15 13:49:41 -0700)

are available in the Git repository at:

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

for you to fetch changes up to d4b29ddf82a458935f1bd4909b8a7a13df9d3bdc:

  rust: time: Add wrapper for fsleep() function (2025-06-30 13:22:05 +0200)


Best regards,
Andreas Hindborg



----------------------------------------------------------------
rust-timekeeping for v6.17

----------------------------------------------------------------
FUJITA Tomonori (10):
      rust: time: Avoid 64-bit integer division on 32-bit architectures
      rust: time: Replace ClockId enum with ClockSource trait
      rust: time: Make Instant generic over ClockSource
      rust: time: Add ktime_get() to ClockSource trait
      rust: time: Replace HrTimerMode enum with trait-based mode types
      rust: time: Add HrTimerExpires trait
      rust: time: Make HasHrTimer generic over HrTimerMode
      rust: time: Remove Ktime in hrtimer
      rust: time: Seal the HrTimerMode trait
      rust: time: Add wrapper for fsleep() function

 rust/helpers/helpers.c              |   1 +
 rust/helpers/time.c                 |  35 +++++
 rust/kernel/time.rs                 | 233 ++++++++++++++++++----------
 rust/kernel/time/delay.rs           |  49 ++++++
 rust/kernel/time/hrtimer.rs         | 302 ++++++++++++++++++++++++------------
 rust/kernel/time/hrtimer/arc.rs     |   8 +-
 rust/kernel/time/hrtimer/pin.rs     |   8 +-
 rust/kernel/time/hrtimer/pin_mut.rs |   8 +-
 rust/kernel/time/hrtimer/tbox.rs    |   8 +-
 9 files changed, 466 insertions(+), 186 deletions(-)
 create mode 100644 rust/helpers/time.c
 create mode 100644 rust/kernel/time/delay.rs


             reply	other threads:[~2025-07-07  7:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07  7:46 Andreas Hindborg [this message]
2025-07-13 22:04 ` [GIT PULL] Rust timekeeping for v6.17 Miguel Ojeda
2025-07-15  7:57   ` Andreas Hindborg
2025-07-15 12:13     ` Miguel Ojeda
2025-07-17  0:02 ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87qzysqw99.fsf@kernel.org \
    --to=a.hindborg@kernel.org \
    --cc=anna-maria@linutronix.de \
    --cc=boqun.feng@gmail.com \
    --cc=frederic@kernel.org \
    --cc=fujita.tomonori@gmail.com \
    --cc=jstultz@google.com \
    --cc=lyude@redhat.com \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.