[PATCH 0/2] Arithmetic ops for Instant/Delta

Lyude Paul posted 2 patches 2 months, 1 week ago
There is a newer version of this series
rust/kernel/time.rs | 115 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 114 insertions(+), 1 deletion(-)
[PATCH 0/2] Arithmetic ops for Instant/Delta
Posted by Lyude Paul 2 months, 1 week ago
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