rust: hrtimer: Add HrTimerInstant
authorLyude Paul <lyude@redhat.com>
Thu, 21 Aug 2025 19:32:42 +0000 (15:32 -0400)
committerAndreas Hindborg <a.hindborg@kernel.org>
Thu, 4 Sep 2025 14:54:39 +0000 (16:54 +0200)
commit0e2aab67f2d5716e8db73b6d0719208b44086ed5
treec2fdeb7b0f11f576370ae0ca23a76e684b2de15f
parenta984da24e7ac411c95bab7b6c127bae4927f9d03
rust: hrtimer: Add HrTimerInstant

Since we want to add HrTimer methods that can accept Instants, we will want
to make sure that for each method we are using the correct Clocksource for
the given HrTimer. This would get a bit overly-verbose, so add a simple
HrTimerInstant type-alias to handle this for us.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250821193259.964504-3-lyude@redhat.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
rust/kernel/time/hrtimer.rs