[mythtv] Re: [mythtv-commits] mythtv commit: r7209 by danielk

Daniel Kristjansson danielk at cuymedia.net
Thu Sep 8 16:57:00 UTC 2005

On Thu, 2005-09-08 at 17:38 +0100, Stuart Auchterlonie wrote:

> Still not correct in 7211.
> You should stick with passing in 5000ms and do
I want 5 ms not 5000 ms. 5 ms is a LONG time for a computer running at
greater than about 4.7 Mhz... i.e. anything post 8086. :)

All we really want to do is wait for a context switch to the kernel
and back. As soon as we yield the backend driver should pick up the
frontend command and write to a few i/o ports on the card and then
return. The reason we don't just do a 50 ns sleep is because we want
a yield and not a busy wait loop. A 5 ms sleep also lets the kernel
do any other stuff it must do, such as set up DMA for disk writes,
reschedule the thread priorities, etc.

-- Daniel

More information about the mythtv-dev mailing list