diff options
| author | 2025-06-10 22:28:20 +0900 | |
|---|---|---|
| committer | 2025-06-24 15:12:19 +0200 | |
| commit | ced9ccd21fbc8ca941e6a0c2820c2df89239ccb9 (patch) | |
| tree | 67c647bd83e6a25fc43c279af2485fc5acddca44 /rust/helpers/err.c | |
| parent | rust: time: Add ktime_get() to ClockSource trait (diff) | |
| download | linux-rng-ced9ccd21fbc8ca941e6a0c2820c2df89239ccb9.tar.xz linux-rng-ced9ccd21fbc8ca941e6a0c2820c2df89239ccb9.zip | |
rust: time: Replace HrTimerMode enum with trait-based mode types
Replace the `HrTimerMode` enum with a trait-based approach that uses
zero-sized types to represent each mode of operation. Each mode now
implements the `HrTimerMode` trait.
This refactoring is a preparation for replacing raw `Ktime` in HrTimer
with the `Instant` and `Delta` types, and for making `HrTimer` generic
over a `ClockSource`.
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://lore.kernel.org/r/20250610132823.3457263-3-fujita.tomonori@gmail.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions
