diff options
author | Lyude Paul <lyude@redhat.com> | 2025-08-21 15:32:47 -0400 |
---|---|---|
committer | Andreas Hindborg <a.hindborg@kernel.org> | 2025-09-04 16:54:39 +0200 |
commit | 4b0147494275fdbea98305f4ddad7e2def7b556f (patch) | |
tree | 9c4b462782d03607bf7377d3a3874c997029204c /rust/kernel/time.rs | |
parent | 583802cc99bdac95d173aaf1fc58e99993aa1d1d (diff) |
rust: hrtimer: Add HrTimer::expires()
Add a simple callback for retrieving the current expiry time for an
HrTimer. In rvkms, we use the HrTimer expiry value in order to calculate
the approximate vblank timestamp during each emulated vblank interrupt.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250821193259.964504-8-lyude@redhat.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'rust/kernel/time.rs')
-rw-r--r-- | rust/kernel/time.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rust/kernel/time.rs b/rust/kernel/time.rs index 874a1023dcdf..7320d8715bcc 100644 --- a/rust/kernel/time.rs +++ b/rust/kernel/time.rs @@ -211,7 +211,6 @@ impl<C: ClockSource> Instant<C> { /// # Safety /// /// The caller promises that `ktime` is in the range from 0 to `KTIME_MAX`. - #[expect(unused)] #[inline] pub(crate) unsafe fn from_ktime(ktime: bindings::ktime_t) -> Self { debug_assert!(ktime >= 0); |