Re: Add prefetch switch stack hook in scheduler function

From: Ingo Molnar
Date: Fri Jul 29 2005 - 10:52:46 EST

* linux@xxxxxxxxxxx <linux@xxxxxxxxxxx> wrote:

> I think this pretty clearly points out the need for some arch-generic
> infrastructure in Linux. An awful lot of arch hooks are for one or
> two architectures with some peculiarities, and the other 90% of the
> implementations are identical.
> For example, this is 22 repetitions of
> with one different case.

this just primes all the architectures so that they build. Every
architecture should then adjust these parameters. Also, since the
patches are not final yet i didnt try to widen them too much.

> It would be awfully nice if there was a standard way to provide a
> default implementation that was automatically picked up by any
> architecture that didn't explicitly override it.

that used to be the ARCH_HAS_* flags & macros - but these days we prefer
clean inline functions defined per arch, no ifdefs.

If there is something that is truly shared between all arches then an
asm-generic/*.h file can be generated for it, and included from most
arches. I dont think the changes i did will necessiate that.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at