> On Dec 31, 2019, at 9:35 AM, Martin Pieuchot <[email protected]> wrote:
> 
> I'd like to stop converting the given timespec to ticks and instead use
> nanoseconds.  This is part of the ongoing effort to reduce the use of
> `hz' through the kernel.
> 
> Since I don't know C I'd appreciate any pointer about the checks that
> should be added to TIMESPEC_TO_NSEC().
> 
> Then the conversions to {t,rw}sleep_nsec(9) become trivial, diff below.

We can't do this until timeouts have a tickless interface.  Otherwise
your timeouts will return early.  That's why I was saving the sys/kern
conversions until after resolving that issue.

You could convert the conversion code to use tstohz(9) to minimize
copy-paste in the kernel, but that's about all you can do until
timeouts have a tickless interface.

Reply via email to