diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2025-04-24 04:28:52 +0900 |
---|---|---|
committer | Andreas Hindborg <a.hindborg@kernel.org> | 2025-04-29 15:31:07 +0200 |
commit | 3caad57d29b5f64fa41cff0b12cc5d9144dacb04 (patch) | |
tree | 16bb39d9e8f7053d4adcaa34d2b8faf8f3a6a4f2 /scripts/generate_rust_analyzer.py | |
parent | 1116f0c5ff3385658ceb8ae2c5c4cb05bd7836d7 (diff) |
rust: time: Add PartialEq/Eq/PartialOrd/Ord trait to Ktime
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).
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Tested-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://lore.kernel.org/r/20250423192857.199712-3-fujita.tomonori@gmail.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions