]> Gentwo Git Trees - linux/.git/commit
rust: hrtimer: Add HrTimer::expires()
authorLyude Paul <lyude@redhat.com>
Thu, 21 Aug 2025 19:32:47 +0000 (15:32 -0400)
committerAndreas Hindborg <a.hindborg@kernel.org>
Thu, 4 Sep 2025 14:54:39 +0000 (16:54 +0200)
commit4b0147494275fdbea98305f4ddad7e2def7b556f
tree9c4b462782d03607bf7377d3a3874c997029204c
parent583802cc99bdac95d173aaf1fc58e99993aa1d1d
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>
rust/kernel/time.rs
rust/kernel/time/hrtimer.rs