rust-for-linux.vger.kernel.org archive mirror
 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.16 From: Andreas Hindborg <a.hindborg@kernel.org>
Date: Tue, 06 May 2025 11:52:11 +0200	[thread overview]
Message-ID: <87v7qeqd6c.fsf@kernel.org> (raw)

Hi Miguel,

Please pull these changes for Rust timekeeping.

This PR morphs the rust hrtimer subsystem into the rust timekeeping subsystem
covering delay, sleep timekeeping, and timers.

We also add the `Delta` and `Instant` types to replace `Ktime`. We add `Ktime`
locally for `htrimer` while we rework `hrtimer` to use the new types.

In this iteration, `Instant` does not prevent subtracting instants based on
different clock sources. We plan to add this via generics in the next cycle.

The commits were in linux-next since next-20250501.

The following changes since commit 9c32cda43eb78f78c73aee4aa344b777714e259b:

  Linux 6.15-rc3 (2025-04-20 13:43:47 -0700)

are available in the Git repository at:

  https://github.com/rust-for-linux/linux.git tags/rust-timekeeping-for-v6.16-v2

for you to fetch changes up to 679185904972421c570a1c337a8266835045012d:

  MAINTAINERS: rust: Add a new section for all of the time stuff (2025-04-29 15:35:25 +0200)

Best regards,
Andreas

----------------------------------------------------------------
Rust timekeeping changes for v6.16

 - Morph the rust hrtimer subsystem into the rust timekeeping subsystem,
   covering delay, sleep, timekeeping, timers. This new subsystem has all the
   relevant timekeeping C maintainers listed in the entry.

 - Replace `Ktime` with `Delta` and `Instant` types to represent a duration of
   time and a point in time.

 - Temporarily add `Ktime` to `hrtimer` module to allow `hrtimer` to delay
   converting to `Instant` and `Delta`.

----------------------------------------------------------------
FUJITA Tomonori (5):
      rust: hrtimer: Add Ktime temporarily
      rust: time: Add PartialEq/Eq/PartialOrd/Ord trait to Ktime
      rust: time: Introduce Delta type
      rust: time: Introduce Instant type
      MAINTAINERS: rust: Add a new section for all of the time stuff

 MAINTAINERS                         |  11 ++-
 rust/kernel/time.rs                 | 167 +++++++++++++++++++++++++++---------
 rust/kernel/time/hrtimer.rs         |  18 +++-
 rust/kernel/time/hrtimer/arc.rs     |   2 +-
 rust/kernel/time/hrtimer/pin.rs     |   2 +-
 rust/kernel/time/hrtimer/pin_mut.rs |   4 +-
 rust/kernel/time/hrtimer/tbox.rs    |   2 +-
 7 files changed, 157 insertions(+), 49 deletions(-)


             reply	other threads:[~2025-05-06  9:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-06  9:52 Andreas Hindborg [this message]
2025-05-18 20:48 ` [GIT PULL] Rust timekeeping for v6.16 From: Andreas Hindborg <a.hindborg@kernel.org> 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=87v7qeqd6c.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 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).