Re: [PATCH v4 1/7] rust: time: Add PartialEq/Eq/PartialOrd/Ord trait to Ktime
From: Trevor Gross
Date: Fri Oct 25 2024 - 00:29:23 EST
On Thu, Oct 24, 2024 at 10:34 PM FUJITA Tomonori
<fujita.tomonori@xxxxxxxxx> wrote:
>
> 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 more efficient and we already do in
"because more efficient" -> "because it is more efficient"
> the existing code (Ktime::sub).
>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>
Reviewed-by: Trevor Gross <tmgross@xxxxxxxxx>