Re: When should we use likely() / unlikely() / get_unaligned() ?

From: David Woodhouse
Date: Sun Feb 08 2004 - 18:08:33 EST


On Mon, 2004-02-09 at 10:00 +1100, Rusty Russell wrote:
> > we now support architectures in 2.6 where alignment fixups _cannot_ happen,
> > and the cost of the 'exception' case should be considered infinite.
>
> Um, we do? I thought it was compulsory in the kernel, otherwise
> networking breaks on packets w/ wierd hardware headers.

We do. It breaks. I'm trying to come up with a solution for it which
actually lets us optimise elsewhere too, and hence has at least a
whelk's chance in a supernova of being accepted... :)

--
dwmw2


-
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/