Re: [PATCH v6 4/7] rust: time: add Delta::to_jiffies_timeout() for timeout conversion
Andreas Hindborg <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
FUJITA Tomonori <[email protected]> writes: > From: FUJITA Tomonori <[email protected]> > > Add Delta<Nsec>::to_jiffies_timeout() conversion that rounds up so the > resulting timeout is never shorter than the requested span, clamps a > negative span to an immediate timeout, and saturates an overlong span > to the kernel's MAX_JIFFY_OFFSET "wait forever" value. > > Reviewed-by: Gary Guo <[email protected]> > Signed-off-by: FUJITA Tomonori <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Best regards, Andreas Hindborg