[PATCH 0/2] Arithmetic ops for Instant/Delta
From: Lyude Paul
Date: Thu Jul 24 2025 - 14:57:34 EST
When rebasing RVKMS against my hrtimer additions, which themselves were
rebased against Fujita's recent work for introducing Instant/Delta, I
needed to reintroduce the ability to perform some of the arithmetic that
rvkms uses for vblank emulation - so, this commit introduces such
arithmetic.
Example usage:
https://gitlab.freedesktop.org/lyudess/linux/-/blob/rvkms-slim/drivers/gpu/drm/rvkms/crtc.rs?ref_type=heads#L167
Lyude Paul (2):
rust: time: Implement Add<Delta>/Sub<Delta> for Instant
rust: time: Implement basic arithmetic operations for Delta
rust/kernel/time.rs | 115 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 114 insertions(+), 1 deletion(-)
base-commit: dff64b072708ffef23c117fa1ee1ea59eb417807
--
2.50.0