aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <[email protected]>2025-06-10 13:28:20 +0000
committerAndreas Hindborg <[email protected]>2025-06-24 13:12:19 +0000
commitced9ccd21fbc8ca941e6a0c2820c2df89239ccb9 (patch)
tree67c647bd83e6a25fc43c279af2485fc5acddca44 /rust/helpers/platform.c
parentrust: time: Add ktime_get() to ClockSource trait (diff)
downloadkernel-ced9ccd21fbc8ca941e6a0c2820c2df89239ccb9.tar.gz
kernel-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 <[email protected]> Signed-off-by: FUJITA Tomonori <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions