public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Sub jiffy delay?
@ 2005-11-23 20:39 Rick Niles
  2005-11-23 20:50 ` Lennart Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rick Niles @ 2005-11-23 20:39 UTC (permalink / raw)
  To: linux-kernel

I need to service a piece of hardware about every 400-500
microseconds, but I really don't want to change the value of HZ, which
in my version of the 2.6 kernel is 1000.  The hardware doesn't have an
interrupt so the nasty hack I've been doing is to service the hardware
repeatedly in a loop for about 600 microseconds by watching the
do_gettimeofday(), set a timer for the next jiffy and repeat.  This leaves less than 400 microseconds / millisecond for the kernel and anything else on the system to run.

Obviously, this sucks, but it does work. I am working with the
hardware guy to add an interrupt to the hardware.  However, I don't
want every user of the hardware without the interrupt to have to
rebuild the kernel with a different value of HZ.  So does anyone have
any better ideas on what I can do?

Thanks,
Rick Niles.

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

end of thread, other threads:[~2005-11-24 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 20:39 Sub jiffy delay? Rick Niles
2005-11-23 20:50 ` Lennart Sorensen
2005-11-23 21:20 ` Steven Rostedt
2005-11-23 22:07 ` linux-os (Dick Johnson)
2005-11-24 15:11   ` Rick Niles

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