public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] Micro-Second timers in kernel ?
@ 2002-03-16  0:48 Jean Tourrilhes
  2002-03-16  2:42 ` george anzinger
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Tourrilhes @ 2002-03-16  0:48 UTC (permalink / raw)
  To: Linux kernel mailing list, Alan Cox

	Hi,

	I'm wondering what is the lowest resolution of timers that can
be get in Linux across all platforms. The goal : I need to do
microsecond resolution delay in the hard_xmit function of the IrDA-USB
driver, and don't want to just grab the CPU.

	The function sys_nanosleep() seems to indicate that under 2ms,
we should not even bother using a timer. Well, on a modern CPU, 2ms is
a very long time (on the other hand, it seems OK for PDAs).
	The definition of "tick" in timer.c indicate that the timer_bh
is called at a maximum of HZ time per second (which is consistent with
the definition of jiffies). On i386, this would be one tick every
10ms.
	Well... I'm stuck. 10ms is a very long time at 4Mb/s. So, I
guess I'll continue to busy wait before sending each packet. Ugh !

	Regards,

	Jean

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-29  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-16  0:48 [QUESTION] Micro-Second timers in kernel ? Jean Tourrilhes
2002-03-16  2:42 ` george anzinger
2002-03-20 20:44   ` Kasper Dupont
2002-03-29  9:24     ` george anzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox