Re: 2.6.0-test3-mm1: scheduling while atomic (ext3?)

From: Andi Kleen
Date: Wed Aug 13 2003 - 06:22:03 EST


Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> writes:

> Put the likely(pos) in the asm/prefetch for Athlon until someone can
out what is going on with some specific Athlons, 2.6 and certain
> kernels (notably 4G/4G)

You can use the same workaround as x86-64. add an exception handler and
just jump back. Advantage is that it is completely outside the fast path.

But note you also have to add runtime sorting of __ex_table when you
do this, otherwise the __ex_table becomes unsorted when someone uses
list_for_each (which does prefetch) in a __init function

(all code is available in x86-64, just needs to be ported over)

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