Re: inw/outw performance

Jonathan Lundell (linux@lundell-bros.com)
Sun, 30 Mar 2003 12:32:06 -0800


At 7:23pm +0200 3/30/03, Pavel Machek wrote:
> > And actually what I have found that on my development P3/1GHz system
>> every inw() takes more that 3us. I wasn't measuring outw() yet - but
>> I do not expect its timing to be better.
>
>inw/outw *is* slow. Memory map your
>registers to speed it up.

Shouldn't be *that* slow, though, especially over PCI, unless the
device in question is taking that long to respond--in which case
memory mapping won't help.

-- 
/Jonathan Lundell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/