Use inb instead of outb for delays. v2 has already been converted in r3509 which was Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
I'm tempted to do the same here, but with signoff and ack switched.
Index: corebootv3-stuff3/arch/x86/udelay_io.c =================================================================== --- corebootv3-stuff3/arch/x86/udelay_io.c (Revision 798) +++ corebootv3-stuff3/arch/x86/udelay_io.c (Arbeitskopie) @@ -23,6 +23,7 @@ void udelay(unsigned int usecs) { unsigned int i; + /* let's hope this is not optimized out */ for (i = 0; i < usecs; i++) - outb(i & 0xff, 0x80); + (void) inb(0x80); }