Re: [PATCH v3 0/5] rust: time: Convert hrtimer to use Instant and Delta
From: Andreas Hindborg
Date: Tue Jun 24 2025 - 07:16:48 EST
Andreas Hindborg <a.hindborg@xxxxxxxxxx> writes:
> On Tue, 10 Jun 2025 22:28:18 +0900, FUJITA Tomonori wrote:
>> Convert hrtimer to use `Instant` and `Delta`; remove the use of
>> `Ktime` from the hrtimer code, which was originally introduced as a
>> temporary workaround.
>>
>> hrtimer uses either an `Instant` or a `Delta` as its expiration value,
>> depending on the mode specified at creation time. This patchset
>> replaces `HrTimerMode` enum with a trait-based abstraction and
>> associates each mode with either an `Instant` or a `Delta`. By
>> leveraging Rust's type system, this change enables `HrTimer` to be
>> statically associated with a specific `HrTimerMode`, the corresponding
>> `Instant` or `Delta`, and a `ClockSource`.
>>
>> [...]
>
> Applied, thanks!
>
> [1/5] rust: time: Rename Delta's methods from as_* to into_*
> commit: 2ed94606a0fea693e250e5b8fda11ff8fc240d37
I fixed up the application of this patch in timekeeping-next.
Best regards,
Andreas Hindborg