svn commit: r227541 - head/sys/dev/usb/controller
Hans Petter Selasky
hselasky at c2i.net
Tue Nov 15 21:11:04 UTC 2011
On Tuesday 15 November 2011 21:54:28 mdf at freebsd.org wrote:
> Is there some reason these functions aren't asking for a delay in
> terms of milli- or microseconds, and converting to hz internally?
There is no strong reason for this except, that when everything is computed in
system ticks, there is no need for further conversion when interfacing to the
pause(), cv_timedwait() etc. Integer division can be quite expensive on
embedded systems, and there are now several ports of my USB stack to other
platforms :-) where most of them don't have anything near GHz CPU's.
More information about the svn-src-all