Re: Can we kill f inb_p, outb_p and other random I/O on port 0x80, in 2.6?

From: Jamie Lokier
Date: Mon Sep 22 2003 - 16:48:33 EST


Arjan van de Ven wrote:
> > > The first person to complain about the extra branch miss in udelay for
> > > this will get laughed at by me ;)
> >
> > udelay(1) is too slow on a 386 even without the branch miss.
>
> ok we have ndelay() now as well in 2.6

I was sort of joking, but the point is that a function call might be
too slow on a 386.

On a 386, a function call for every byte transferred to/from the
floppy disk might show up as a real overhead - this occurred to me
because someone once thought it was worth rewriting the floppy data
transfer code in assembly language, and presumably it did improve
performance at the time.

Of course the answer is to not use udelay() on 386-optimised
configurations.

-- Jamie

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