[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wmchbg8d.fsf@kernel.org>
Date: Sat, 22 Mar 2025 09:51:30 +0100
From: Andreas Hindborg <a.hindborg@...nel.org>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: linux-kernel@...r.kernel.org, Daniel Almeida
<daniel.almeida@...labora.com>, Trevor Gross <tmgross@...ch.edu>, Alice
Ryhl <aliceryhl@...gle.com>, Gary Guo <gary@...yguo.net>, Fiona Behrens
<me@...enk.dev>, rust-for-linux@...r.kernel.org, netdev@...r.kernel.org,
andrew@...n.ch, hkallweit1@...il.com, ojeda@...nel.org,
alex.gaynor@...il.com, bjorn3_gh@...tonmail.com,
benno.lossin@...ton.me, a.hindborg@...sung.com,
anna-maria@...utronix.de, frederic@...nel.org, tglx@...utronix.de,
arnd@...db.de, jstultz@...gle.com, sboyd@...nel.org, mingo@...hat.com,
peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
vschneid@...hat.com, tgunders@...hat.com, david.laight.linux@...il.com
Subject: Re: [PATCH v11 2/8] rust: time: Add PartialEq/Eq/PartialOrd/Ord
trait to Ktime
FUJITA Tomonori <fujita.tomonori@...il.com> writes:
> Add PartialEq/Eq/PartialOrd/Ord trait to Ktime so two Ktime instances
> can be compared to determine whether a timeout is met or not.
>
> Use the derive implements; we directly touch C's ktime_t rather than
> using the C's accessors because it is more efficient and we already do
> in the existing code (Ktime::sub).
>
> Tested-by: Daniel Almeida <daniel.almeida@...labora.com>
> Reviewed-by: Trevor Gross <tmgross@...ch.edu>
> Reviewed-by: Alice Ryhl <aliceryhl@...gle.com>
> Reviewed-by: Gary Guo <gary@...yguo.net>
> Reviewed-by: Fiona Behrens <me@...enk.dev>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@...il.com>
Reviewed-by: Andreas Hindborg <a.hindborg@...nel.org>
Best regards,
Andreas Hindborg
Powered by blists - more mailing lists