Re: [PATCH x86] [7/16] Convert lockdep to use arch_early_alloc()if available for its large arrays
From: Ingo Molnar
Date: Fri Jan 04 2008 - 04:04:08 EST
* Andi Kleen <ak@xxxxxxx> wrote:
> +#ifndef ARCH_HAS_EARLY_ALLOC
> +#define LARGEVAR(x,y) { static typeof(*x) __ ## x[y]; x = __ ## x; }
> +#else
> +#define LARGEVAR(x,y) x = arch_early_alloc(sizeof(*x) * y)
> +#endif
your patch makes sense in principle, but please do this via the Kconfig
space - we dont introduce new ARCH_HAS flags anymore and try to get rid
of the existing ones as well.
Ingo
--
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/