Re: [patch 1/2] x86: define outb_pic and inb_pic to stop usingoutb_p and inb_p

From: Alan Cox
Date: Mon Feb 18 2008 - 10:55:11 EST


> +unsigned char inb_pic(unsigned int port)
> +{
> + /* delay for some accesses to PIC on motherboard or in chipset must be
> + at least one microsecond, but be safe here. */
> + unsigned char value = inb(port);
> + udelay(2);
> + return value;
> +}

inline it. Its almost no instructions
--
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/